From 0bfdc971c3c678eef499483a6ea3c9bae58b91c9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Apr 2026 12:06:03 +0000 Subject: [PATCH 1/2] Initial plan From d3c8aa5ee2253f9ec489eed464bef86a6652cadf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Apr 2026 12:11:15 +0000 Subject: [PATCH 2/2] chore: restructure repo - src/, tests/, docs/v1-v3, CONTRIBUTING.md, expanded mkdocs nav Agent-Logs-Url: https://github.com/wp-net/WordPressPCL/sessions/ac04d282-f5a7-4d4e-8b8d-b91b36cf9a07 Co-authored-by: ThomasPe <4225039+ThomasPe@users.noreply.github.com> --- .github/workflows/integration-tests.yml | 2 +- .github/workflows/publish-nuget.yml | 2 +- .gitignore | 2 +- CONTRIBUTING.md | 81 ++++++++++++++++++ README.md | 22 +++-- WordPressPCL.sln | 6 +- docs/index.md | 6 +- .../customization/customHttpClient.md | 0 .../customJsonSerializationSettings.md | 0 .../customization/customRequest.md | 0 .../httpResponsePreProcessing.md | 0 .../entities/categories.md | 0 .../entities/comments.md | 0 .../entities/customPostType.md | 0 .../{III version 1.x => v1}/entities/media.md | 0 .../{III version 1.x => v1}/entities/pages.md | 0 .../{III version 1.x => v1}/entities/posts.md | 0 .../entities/poststatuses.md | 0 .../entities/posttypes.md | 0 .../entities/settings.md | 0 docs/{III version 1.x => v1}/entities/tags.md | 0 .../entities/taxonomies.md | 0 .../{III version 1.x => v1}/entities/users.md | 0 docs/{III version 1.x => v1}/index.md | 0 .../troubleshooting.md | 0 .../breaking-changes.md | 0 .../customization/customHttpClient.md | 0 .../customJsonSerializationSettings.md | 0 .../customization/customRequest.md | 0 .../httpResponsePreProcessing.md | 0 .../entities/categories.md | 0 .../entities/comments.md | 0 .../entities/customPostType.md | 0 docs/{II version 2.x => v2}/entities/media.md | 0 docs/{II version 2.x => v2}/entities/pages.md | 0 docs/{II version 2.x => v2}/entities/posts.md | 0 .../entities/poststatuses.md | 0 .../entities/posttypes.md | 0 .../entities/settings.md | 0 docs/{II version 2.x => v2}/entities/tags.md | 0 .../entities/taxonomies.md | 0 docs/{II version 2.x => v2}/entities/users.md | 0 docs/{II version 2.x => v2}/index.md | 0 .../{II version 2.x => v2}/troubleshooting.md | 0 .../{I version 3.x => v3}/breaking-changes.md | 0 .../customization/customHttpClient.md | 0 .../customJsonSerializationSettings.md | 0 .../customization/customRequest.md | 0 .../httpResponsePreProcessing.md | 0 .../endpoint-coverage.md | 0 .../entities/categories.md | 0 .../entities/comments.md | 0 .../entities/customPostType.md | 0 docs/{I version 3.x => v3}/entities/media.md | 0 docs/{I version 3.x => v3}/entities/pages.md | 0 docs/{I version 3.x => v3}/entities/posts.md | 0 .../entities/poststatuses.md | 0 .../entities/posttypes.md | 0 .../entities/settings.md | 0 docs/{I version 3.x => v3}/entities/tags.md | 0 .../entities/taxonomies.md | 0 docs/{I version 3.x => v3}/entities/users.md | 0 docs/{I version 3.x => v3}/index.md | 0 docs/{I version 3.x => v3}/troubleshooting.md | 0 mkdocs.yml | 70 ++++++++++++++- .../WordPressPCL}/Client/Auth.cs | 0 .../WordPressPCL}/Client/CRUDOperation.cs | 0 .../WordPressPCL}/Client/Categories.cs | 0 .../WordPressPCL}/Client/Comments.cs | 0 .../WordPressPCL}/Client/CustomRequest.cs | 0 .../WordPressPCL}/Client/Media.cs | 0 .../WordPressPCL}/Client/Pages.cs | 0 .../WordPressPCL}/Client/Plugins.cs | 0 .../WordPressPCL}/Client/PostRevisions.cs | 0 .../WordPressPCL}/Client/PostStatuses.cs | 0 .../WordPressPCL}/Client/PostTypes.cs | 0 .../WordPressPCL}/Client/Posts.cs | 0 .../WordPressPCL}/Client/Settings.cs | 0 .../WordPressPCL}/Client/Tags.cs | 0 .../WordPressPCL}/Client/Taxonomies.cs | 0 .../WordPressPCL}/Client/Themes.cs | 0 .../WordPressPCL}/Client/Users.cs | 0 .../WordPressServiceCollectionExtensions.cs | 0 .../WordPressPCL}/Images/icon.png | Bin .../Interfaces/ICountOperation.cs | 0 .../Interfaces/ICreateOperation.cs | 0 .../Interfaces/IDeleteOperation.cs | 0 .../Interfaces/IQueryOperation.cs | 0 .../Interfaces/IReadOperation.cs | 0 .../Interfaces/IUpdateOperation.cs | 0 .../Models/ApplicationPassword.cs | 0 .../WordPressPCL}/Models/AuthMethod.cs | 0 .../WordPressPCL}/Models/AvatarURL.cs | 0 .../WordPressPCL}/Models/BadRequest.cs | 0 .../WordPressPCL}/Models/Base.cs | 0 .../WordPressPCL}/Models/Category.cs | 0 .../WordPressPCL}/Models/Comment.cs | 0 .../WordPressPCL}/Models/CommentThreaded.cs | 0 .../WordPressPCL}/Models/Embedded.cs | 0 .../WordPressPCL}/Models/Enums.cs | 0 .../Models/Exceptions/WPException.cs | 0 .../Exceptions/WPUnexpectedException.cs | 0 .../WordPressPCL}/Models/ImageMeta.cs | 0 .../WordPressPCL}/Models/JWTData.cs | 0 .../WordPressPCL}/Models/JWTPlugin.cs | 0 .../WordPressPCL}/Models/JWTResponse.cs | 0 .../WordPressPCL}/Models/JWTUser.cs | 0 .../WordPressPCL}/Models/Links.cs | 0 .../WordPressPCL}/Models/MediaDetails.cs | 0 .../WordPressPCL}/Models/MediaItem.cs | 0 .../WordPressPCL}/Models/MediaSize.cs | 0 .../WordPressPCL}/Models/Page.cs | 0 .../WordPressPCL}/Models/PagedResult.cs | 0 .../WordPressPCL}/Models/Plugin.cs | 0 .../WordPressPCL}/Models/Post.cs | 0 .../WordPressPCL}/Models/PostRevision.cs | 0 .../WordPressPCL}/Models/PostStatus.cs | 0 .../WordPressPCL}/Models/PostType.cs | 0 .../WordPressPCL}/Models/Settings.cs | 0 .../WordPressPCL}/Models/Subclasses.cs | 0 .../WordPressPCL}/Models/Tag.cs | 0 .../WordPressPCL}/Models/Taxonomy.cs | 0 .../WordPressPCL}/Models/Term.cs | 0 .../WordPressPCL}/Models/Theme.cs | 0 .../WordPressPCL}/Models/User.cs | 0 .../Utility/CategoriesQueryBuilder.cs | 0 .../Utility/CommentsQueryBuilder.cs | 0 .../CustomCapabilitiesJsonConverter.cs | 0 .../Utility/ExcludeQueryTextAttribute.cs | 0 .../WordPressPCL}/Utility/HttpHelper.cs | 0 .../Utility/JsonStringEnumMemberConverter.cs | 0 .../Utility/MediaQueryBuilder.cs | 0 .../WordPressPCL}/Utility/MimeTypeHelper.cs | 0 .../Utility/PagesQueryBuilder.cs | 0 .../Utility/PluginsQueryBuilder.cs | 0 .../Utility/PostsQueryBuilder.cs | 0 .../WordPressPCL}/Utility/QueryBuilder.cs | 0 .../Utility/QueryTextAttribute.cs | 0 .../WordPressPCL}/Utility/TagsQueryBuilder.cs | 0 .../Utility/TaxonomiesQueryBuilder.cs | 0 .../Utility/ThemesQueryBuilder.cs | 0 .../Utility/ThreadedCommentsHelper.cs | 0 .../WordPressPCL}/Utility/UrlHelper.cs | 0 .../Utility/UsersQueryBuilder.cs | 0 .../WordPressPCL}/WordPressClient.cs | 0 .../WordPressPCL}/WordPressPCL.csproj | 6 +- .../WordPressPCL}/WordPressPCL.xml | 0 .../WordPressPCL.Tests.Hosted}/Basic_Tests.cs | 0 .../Utility/ApiCredentials.cs | 0 .../Utility/ClientHelper.cs | 0 .../Utility/HttpHelper_Tests.cs | 0 .../WordPressClient_DI_Tests.cs | 0 .../WordPressClient_Logger_Tests.cs | 0 .../WordPressPCL.Tests.Hosted.csproj | 2 +- .../ApplicationPasswords_Tests.cs | 0 .../Assets/cat.jpg | Bin .../Assets/img_exif_error.jpg | Bin .../Basic_Tests.cs | 0 .../CancellationToken_Tests.cs | 0 .../Categories_Tests.cs | 0 .../CommentsThreaded_Tests.cs | 0 .../Comments_Tests.cs | 0 .../CustomRequests_Tests.cs | 0 .../ExceptionTests.cs | 0 .../Exception_Unexpected_Tests.cs | 0 .../HttpClient_Tests.cs | 0 .../ListPosts_QueryBuilder_Tests.cs | 0 .../Media_Tests.cs | 0 .../MimeTypeHelper_Tests.cs | 0 .../NullHandling_Tests.cs | 0 .../Pages_Tests.cs | 0 .../Plugins_Tests.cs | 0 .../PostRevisions_Tests.cs | 0 .../PostStatuses_Tests.cs | 0 .../PostTypes_Tests.cs | 0 .../Posts_Tests.cs | 0 .../QueryBuilder_Tests.cs | 0 .../Settings_Tests.cs | 0 .../Tag_Tests.cs | 0 .../Taxonomies_Tests.cs | 0 .../Themes_Tests.cs | 0 .../User_Tests.cs | 0 .../Utility/ApiCredentials.cs | 0 .../CapabilitiesJsonConverter_Tests.cs | 0 .../Utility/ClientHelper.cs | 0 .../Utility/HttpHelper_Tests.cs | 0 .../Utility/ThreadedCommentsHelper_Tests.cs | 0 .../Utility/UrlHelper_Tests.cs | 0 .../WordPressPCL.Tests.Selfhosted.csproj | 2 +- .../jwt.runsettings | 0 .../jwtauth.runsettings | 0 191 files changed, 174 insertions(+), 27 deletions(-) create mode 100644 CONTRIBUTING.md rename docs/{III version 1.x => v1}/customization/customHttpClient.md (100%) rename docs/{III version 1.x => v1}/customization/customJsonSerializationSettings.md (100%) rename docs/{III version 1.x => v1}/customization/customRequest.md (100%) rename docs/{I version 3.x => v1}/customization/httpResponsePreProcessing.md (100%) rename docs/{III version 1.x => v1}/entities/categories.md (100%) rename docs/{III version 1.x => v1}/entities/comments.md (100%) rename docs/{III version 1.x => v1}/entities/customPostType.md (100%) rename docs/{III version 1.x => v1}/entities/media.md (100%) rename docs/{III version 1.x => v1}/entities/pages.md (100%) rename docs/{III version 1.x => v1}/entities/posts.md (100%) rename docs/{III version 1.x => v1}/entities/poststatuses.md (100%) rename docs/{III version 1.x => v1}/entities/posttypes.md (100%) rename docs/{III version 1.x => v1}/entities/settings.md (100%) rename docs/{III version 1.x => v1}/entities/tags.md (100%) rename docs/{III version 1.x => v1}/entities/taxonomies.md (100%) rename docs/{III version 1.x => v1}/entities/users.md (100%) rename docs/{III version 1.x => v1}/index.md (100%) rename docs/{III version 1.x => v1}/troubleshooting.md (100%) rename docs/{II version 2.x => v2}/breaking-changes.md (100%) rename docs/{II version 2.x => v2}/customization/customHttpClient.md (100%) rename docs/{II version 2.x => v2}/customization/customJsonSerializationSettings.md (100%) rename docs/{II version 2.x => v2}/customization/customRequest.md (100%) rename docs/{II version 2.x => v2}/customization/httpResponsePreProcessing.md (100%) rename docs/{II version 2.x => v2}/entities/categories.md (100%) rename docs/{II version 2.x => v2}/entities/comments.md (100%) rename docs/{II version 2.x => v2}/entities/customPostType.md (100%) rename docs/{II version 2.x => v2}/entities/media.md (100%) rename docs/{II version 2.x => v2}/entities/pages.md (100%) rename docs/{II version 2.x => v2}/entities/posts.md (100%) rename docs/{II version 2.x => v2}/entities/poststatuses.md (100%) rename docs/{II version 2.x => v2}/entities/posttypes.md (100%) rename docs/{II version 2.x => v2}/entities/settings.md (100%) rename docs/{II version 2.x => v2}/entities/tags.md (100%) rename docs/{II version 2.x => v2}/entities/taxonomies.md (100%) rename docs/{II version 2.x => v2}/entities/users.md (100%) rename docs/{II version 2.x => v2}/index.md (100%) rename docs/{II version 2.x => v2}/troubleshooting.md (100%) rename docs/{I version 3.x => v3}/breaking-changes.md (100%) rename docs/{I version 3.x => v3}/customization/customHttpClient.md (100%) rename docs/{I version 3.x => v3}/customization/customJsonSerializationSettings.md (100%) rename docs/{I version 3.x => v3}/customization/customRequest.md (100%) rename docs/{III version 1.x => v3}/customization/httpResponsePreProcessing.md (100%) rename docs/{I version 3.x => v3}/endpoint-coverage.md (100%) rename docs/{I version 3.x => v3}/entities/categories.md (100%) rename docs/{I version 3.x => v3}/entities/comments.md (100%) rename docs/{I version 3.x => v3}/entities/customPostType.md (100%) rename docs/{I version 3.x => v3}/entities/media.md (100%) rename docs/{I version 3.x => v3}/entities/pages.md (100%) rename docs/{I version 3.x => v3}/entities/posts.md (100%) rename docs/{I version 3.x => v3}/entities/poststatuses.md (100%) rename docs/{I version 3.x => v3}/entities/posttypes.md (100%) rename docs/{I version 3.x => v3}/entities/settings.md (100%) rename docs/{I version 3.x => v3}/entities/tags.md (100%) rename docs/{I version 3.x => v3}/entities/taxonomies.md (100%) rename docs/{I version 3.x => v3}/entities/users.md (100%) rename docs/{I version 3.x => v3}/index.md (100%) rename docs/{I version 3.x => v3}/troubleshooting.md (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Auth.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/CRUDOperation.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Categories.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Comments.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/CustomRequest.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Media.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Pages.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Plugins.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/PostRevisions.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/PostStatuses.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/PostTypes.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Posts.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Settings.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Tags.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Taxonomies.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Themes.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Client/Users.cs (100%) rename {WordPressPCL => src/WordPressPCL}/DependencyInjection/WordPressServiceCollectionExtensions.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Images/icon.png (100%) rename {WordPressPCL => src/WordPressPCL}/Interfaces/ICountOperation.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Interfaces/ICreateOperation.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Interfaces/IDeleteOperation.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Interfaces/IQueryOperation.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Interfaces/IReadOperation.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Interfaces/IUpdateOperation.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/ApplicationPassword.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/AuthMethod.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/AvatarURL.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/BadRequest.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Base.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Category.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Comment.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/CommentThreaded.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Embedded.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Enums.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Exceptions/WPException.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Exceptions/WPUnexpectedException.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/ImageMeta.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/JWTData.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/JWTPlugin.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/JWTResponse.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/JWTUser.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Links.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/MediaDetails.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/MediaItem.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/MediaSize.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Page.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/PagedResult.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Plugin.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Post.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/PostRevision.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/PostStatus.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/PostType.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Settings.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Subclasses.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Tag.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Taxonomy.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Term.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/Theme.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Models/User.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/CategoriesQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/CommentsQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/CustomCapabilitiesJsonConverter.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/ExcludeQueryTextAttribute.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/HttpHelper.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/JsonStringEnumMemberConverter.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/MediaQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/MimeTypeHelper.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/PagesQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/PluginsQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/PostsQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/QueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/QueryTextAttribute.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/TagsQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/TaxonomiesQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/ThemesQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/ThreadedCommentsHelper.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/UrlHelper.cs (100%) rename {WordPressPCL => src/WordPressPCL}/Utility/UsersQueryBuilder.cs (100%) rename {WordPressPCL => src/WordPressPCL}/WordPressClient.cs (100%) rename {WordPressPCL => src/WordPressPCL}/WordPressPCL.csproj (93%) rename {WordPressPCL => src/WordPressPCL}/WordPressPCL.xml (100%) rename {WordPressPCL.Tests.Hosted => tests/WordPressPCL.Tests.Hosted}/Basic_Tests.cs (100%) rename {WordPressPCL.Tests.Hosted => tests/WordPressPCL.Tests.Hosted}/Utility/ApiCredentials.cs (100%) rename {WordPressPCL.Tests.Hosted => tests/WordPressPCL.Tests.Hosted}/Utility/ClientHelper.cs (100%) rename {WordPressPCL.Tests.Hosted => tests/WordPressPCL.Tests.Hosted}/Utility/HttpHelper_Tests.cs (100%) rename {WordPressPCL.Tests.Hosted => tests/WordPressPCL.Tests.Hosted}/WordPressClient_DI_Tests.cs (100%) rename {WordPressPCL.Tests.Hosted => tests/WordPressPCL.Tests.Hosted}/WordPressClient_Logger_Tests.cs (100%) rename {WordPressPCL.Tests.Hosted => tests/WordPressPCL.Tests.Hosted}/WordPressPCL.Tests.Hosted.csproj (84%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/ApplicationPasswords_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Assets/cat.jpg (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Assets/img_exif_error.jpg (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Basic_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/CancellationToken_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Categories_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/CommentsThreaded_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Comments_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/CustomRequests_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/ExceptionTests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Exception_Unexpected_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/HttpClient_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/ListPosts_QueryBuilder_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Media_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/MimeTypeHelper_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/NullHandling_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Pages_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Plugins_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/PostRevisions_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/PostStatuses_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/PostTypes_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Posts_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/QueryBuilder_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Settings_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Tag_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Taxonomies_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Themes_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/User_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Utility/ApiCredentials.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Utility/CapabilitiesJsonConverter_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Utility/ClientHelper.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Utility/HttpHelper_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Utility/ThreadedCommentsHelper_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/Utility/UrlHelper_Tests.cs (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/WordPressPCL.Tests.Selfhosted.csproj (89%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/jwt.runsettings (100%) rename {WordPressPCL.Tests.Selfhosted => tests/WordPressPCL.Tests.Selfhosted}/jwtauth.runsettings (100%) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 03401ae2..b44d2255 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -50,4 +50,4 @@ jobs: curl --fail http://localhost:8080/wp-json - name: 'Run Tests: Selfhosted WordPress with JWT-AUTH' - run: dotnet test -l "console;verbosity=detailed" WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj -s WordPressPCL.Tests.Selfhosted/jwtauth.runsettings + run: dotnet test -l "console;verbosity=detailed" tests/WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj -s tests/WordPressPCL.Tests.Selfhosted/jwtauth.runsettings diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index 001f20ec..33f2fcfc 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest env: solution: WordPressPCL.sln - project: WordPressPCL/WordPressPCL.csproj + project: src/WordPressPCL/WordPressPCL.csproj release_tag: ${{ github.event.release.tag_name }} steps: diff --git a/.gitignore b/.gitignore index 681682bf..5a8626d5 100644 --- a/.gitignore +++ b/.gitignore @@ -254,4 +254,4 @@ WordPressPCL.Tests.Selfhosted/Utility/ApiCredentials.cs WordPressPCL.Tests.Selfhosted/Utility/ApiCredentials.cs WordPressPCL.Tests.Hosted/Utility/ApiCredentials.cs WordPressPCL.Tests.Selfhosted/Utility/ApiCredentials.cs -WordPressPCL.Tests.Selfhosted/Utility/ApiCredentials.cs \ No newline at end of file +WordPressPCL.Tests.Selfhosted/Utility/ApiCredentials.cssite/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..53544928 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,81 @@ +# Contributing to WordPressPCL + +Thank you for your interest in contributing! This guide explains how to set up a development environment, run the tests, and submit changes. + +## Repository layout + +``` +WordPressPCL/ +├── src/ +│ └── WordPressPCL/ # Library source code +├── tests/ +│ ├── WordPressPCL.Tests.Selfhosted/ # Integration tests against a local Docker WordPress +│ └── WordPressPCL.Tests.Hosted/ # Smoke tests against a live WordPress instance +├── docs/ +│ ├── v3/ # Reference docs for version 3.x +│ ├── v2/ # Reference docs for version 2.x +│ └── v1/ # Reference docs for version 1.x +├── dev/ # Docker Compose setup for local WordPress +├── WordPressPCL.sln +├── Directory.Build.props +├── Directory.Packages.props +├── CHANGELOG.md +└── mkdocs.yml +``` + +## Prerequisites + +- [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0) +- [Docker and Docker Compose](https://docs.docker.com/get-docker/) (for self-hosted integration tests) + +## Building + +```bash +dotnet restore WordPressPCL.sln --disable-parallel +dotnet build WordPressPCL.sln -c Release --no-restore +``` + +## Running tests + +### Self-hosted integration tests (recommended for most changes) + +The self-hosted tests spin up a local WordPress instance via Docker Compose and run the full test suite against it. + +```bash +# Start the test environment +cd dev +docker compose up -d + +# Wait for WordPress to be ready (the container creates .wp-tests-ready when done) +# Then run the tests from the repository root +cd .. +dotnet test tests/WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj \ + -s tests/WordPressPCL.Tests.Selfhosted/jwtauth.runsettings \ + -l "console;verbosity=detailed" +``` + +For full setup instructions, including plugin requirements and run-settings options, see [`dev/install.md`](dev/install.md). + +### Hosted tests + +The hosted tests run against a live WordPress site. They depend on specific content and credentials and may fail for environment reasons unrelated to your change. They are mainly used in CI and are not required for local development. + +## Code style + +Please follow the [Microsoft C# coding guidelines](https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions). Nullable reference types are enabled solution-wide — do not suppress nullable warnings without a clear justification. + +## Submitting a pull request + +1. **Open an issue first.** Describe the feature or bug so we can discuss whether it is in scope and avoid duplicate work. +2. Fork the repository and create a branch from `main`. +3. Make your changes. Add or update tests to cover any new or modified behaviour. +4. Run the build and self-hosted tests to verify nothing is broken. +5. Open a pull request against `main`. Reference the related issue in the description. + +## Reporting bugs + +Please [open an issue](https://github.com/wp-net/WordPressPCL/issues) with a clear description, the version of WordPressPCL you are using, and a minimal reproduction. + +## Code of conduct + +This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating you agree to abide by its terms. diff --git a/README.md b/README.md index 2ddbd21f..05c30f50 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,9 @@ WordPressPCL uses GitHub Releases as the source of truth for publishing new pack WordPressPCL 3.0 targets .NET 10 only. Upgrading from 2.x is a breaking change and requires applications and test environments to move to the .NET 10 SDK/runtime before restoring, building, or running tests. ## Versioned Reference Docs -- [Version 3.x reference docs](docs/I%20version%203.x/index.md) -- [Version 2.x reference docs](docs/II%20version%202.x/index.md) -- [Version 1.x reference docs](docs/III%20version%201.x/index.md) +- [Version 3.x reference docs](docs/v3/index.md) +- [Version 2.x reference docs](docs/v2/index.md) +- [Version 1.x reference docs](docs/v1/index.md) ## Supported Platforms WordPressPCL 3.0 targets .NET 10 and is intended for applications running on the current .NET platform: @@ -195,7 +195,7 @@ dynamic searchResults = await client.CustomRequest.GetAsync("search?sea dynamic customEndpoint = await client.CustomRequest.GetAsync("wc/v3/products", useAuth: true); ``` -For a fuller endpoint-by-endpoint summary, see [docs/I version 3.x/endpoint-coverage.md](docs/I%20version%203.x/endpoint-coverage.md). +For a fuller endpoint-by-endpoint summary, see [docs/v3/endpoint-coverage.md](docs/v3/endpoint-coverage.md). ## Additional Features @@ -204,12 +204,10 @@ For a fuller endpoint-by-endpoint summary, see [docs/I version 3.x/endpoint-cove - [HttpResponsePreProcessing](https://github.com/wp-net/WordPressPCL/wiki/HttpResponsePreProcessing): manipulate the API response before deserializing it ## Contribution Guidelines -We're very happy to get input from the community on this project! To keep the code clean we ask you to follow a few simple contribution guidelines. +We're very happy to get input from the community on this project! See [CONTRIBUTING.md](CONTRIBUTING.md) for full details on setting up a development environment, running tests, and submitting pull requests. -First, create an issue describing what feature you want to add or what problem you're trying to solve, just to make sure no one is already working on that. That also gives us a chance to debate whether a feature is within the scope of this project. - -Second, please try to stick to the official C# coding guidelines. https://msdn.microsoft.com/en-us/library/ms229002(v=vs.110).aspx - -Also, make sure to write some tests covering your new or modified code. - -In order to run the tests on local machine please refer to the **install.md** file in the dev directory of the repository. Docker and Docker Compose will be required to run the tests. +In brief: +- Open an issue before starting work so we can discuss scope and avoid duplicate effort. +- Follow the [Microsoft C# coding guidelines](https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions). +- Add or update tests to cover your change. +- In order to run the tests locally, refer to the [`dev/install.md`](dev/install.md) file and use Docker Compose. diff --git a/WordPressPCL.sln b/WordPressPCL.sln index 1efaa336..eb632724 100644 --- a/WordPressPCL.sln +++ b/WordPressPCL.sln @@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.31613.86 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WordPressPCL", "WordPressPCL\WordPressPCL.csproj", "{E34E9B5D-0086-47D8-86A0-359B7D812CFC}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WordPressPCL", "src\WordPressPCL\WordPressPCL.csproj", "{E34E9B5D-0086-47D8-86A0-359B7D812CFC}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WordPressPCL.Tests.Selfhosted", "WordPressPCL.Tests.Selfhosted\WordPressPCL.Tests.Selfhosted.csproj", "{ECE2EA35-0152-4A27-80A8-567E192832E1}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WordPressPCL.Tests.Selfhosted", "tests\WordPressPCL.Tests.Selfhosted\WordPressPCL.Tests.Selfhosted.csproj", "{ECE2EA35-0152-4A27-80A8-567E192832E1}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WordPressPCL.Tests.Hosted", "WordPressPCL.Tests.Hosted\WordPressPCL.Tests.Hosted.csproj", "{885149FB-8AE8-42F8-BBFE-59FD5C6B6BBF}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WordPressPCL.Tests.Hosted", "tests\WordPressPCL.Tests.Hosted\WordPressPCL.Tests.Hosted.csproj", "{885149FB-8AE8-42F8-BBFE-59FD5C6B6BBF}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{58C7E88F-517F-49D0-B9D1-60ABF23B1686}" ProjectSection(SolutionItems) = preProject diff --git a/docs/index.md b/docs/index.md index f45519ca..f6874512 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,9 +25,9 @@ The WordPressPCL API Wrapper is avaiable through [NuGet](https://www.nuget.org/p WordPressPCL 3.0 targets .NET 10 only. Upgrading from 2.x is a breaking change and requires applications and test environments to move to the .NET 10 SDK/runtime before restoring, building, or running tests. ## Versioned Reference Docs -- [Version 3.x reference docs](I%20version%203.x/index.md) -- [Version 2.x reference docs](II%20version%202.x/index.md) -- [Version 1.x reference docs](III%20version%201.x/index.md) +- [Version 3.x reference docs](v3/index.md) +- [Version 2.x reference docs](v2/index.md) +- [Version 1.x reference docs](v1/index.md) ## Supported Platforms WordPressPCL 3.0 targets .NET 10 and is intended for applications running on the current .NET platform: diff --git a/docs/III version 1.x/customization/customHttpClient.md b/docs/v1/customization/customHttpClient.md similarity index 100% rename from docs/III version 1.x/customization/customHttpClient.md rename to docs/v1/customization/customHttpClient.md diff --git a/docs/III version 1.x/customization/customJsonSerializationSettings.md b/docs/v1/customization/customJsonSerializationSettings.md similarity index 100% rename from docs/III version 1.x/customization/customJsonSerializationSettings.md rename to docs/v1/customization/customJsonSerializationSettings.md diff --git a/docs/III version 1.x/customization/customRequest.md b/docs/v1/customization/customRequest.md similarity index 100% rename from docs/III version 1.x/customization/customRequest.md rename to docs/v1/customization/customRequest.md diff --git a/docs/I version 3.x/customization/httpResponsePreProcessing.md b/docs/v1/customization/httpResponsePreProcessing.md similarity index 100% rename from docs/I version 3.x/customization/httpResponsePreProcessing.md rename to docs/v1/customization/httpResponsePreProcessing.md diff --git a/docs/III version 1.x/entities/categories.md b/docs/v1/entities/categories.md similarity index 100% rename from docs/III version 1.x/entities/categories.md rename to docs/v1/entities/categories.md diff --git a/docs/III version 1.x/entities/comments.md b/docs/v1/entities/comments.md similarity index 100% rename from docs/III version 1.x/entities/comments.md rename to docs/v1/entities/comments.md diff --git a/docs/III version 1.x/entities/customPostType.md b/docs/v1/entities/customPostType.md similarity index 100% rename from docs/III version 1.x/entities/customPostType.md rename to docs/v1/entities/customPostType.md diff --git a/docs/III version 1.x/entities/media.md b/docs/v1/entities/media.md similarity index 100% rename from docs/III version 1.x/entities/media.md rename to docs/v1/entities/media.md diff --git a/docs/III version 1.x/entities/pages.md b/docs/v1/entities/pages.md similarity index 100% rename from docs/III version 1.x/entities/pages.md rename to docs/v1/entities/pages.md diff --git a/docs/III version 1.x/entities/posts.md b/docs/v1/entities/posts.md similarity index 100% rename from docs/III version 1.x/entities/posts.md rename to docs/v1/entities/posts.md diff --git a/docs/III version 1.x/entities/poststatuses.md b/docs/v1/entities/poststatuses.md similarity index 100% rename from docs/III version 1.x/entities/poststatuses.md rename to docs/v1/entities/poststatuses.md diff --git a/docs/III version 1.x/entities/posttypes.md b/docs/v1/entities/posttypes.md similarity index 100% rename from docs/III version 1.x/entities/posttypes.md rename to docs/v1/entities/posttypes.md diff --git a/docs/III version 1.x/entities/settings.md b/docs/v1/entities/settings.md similarity index 100% rename from docs/III version 1.x/entities/settings.md rename to docs/v1/entities/settings.md diff --git a/docs/III version 1.x/entities/tags.md b/docs/v1/entities/tags.md similarity index 100% rename from docs/III version 1.x/entities/tags.md rename to docs/v1/entities/tags.md diff --git a/docs/III version 1.x/entities/taxonomies.md b/docs/v1/entities/taxonomies.md similarity index 100% rename from docs/III version 1.x/entities/taxonomies.md rename to docs/v1/entities/taxonomies.md diff --git a/docs/III version 1.x/entities/users.md b/docs/v1/entities/users.md similarity index 100% rename from docs/III version 1.x/entities/users.md rename to docs/v1/entities/users.md diff --git a/docs/III version 1.x/index.md b/docs/v1/index.md similarity index 100% rename from docs/III version 1.x/index.md rename to docs/v1/index.md diff --git a/docs/III version 1.x/troubleshooting.md b/docs/v1/troubleshooting.md similarity index 100% rename from docs/III version 1.x/troubleshooting.md rename to docs/v1/troubleshooting.md diff --git a/docs/II version 2.x/breaking-changes.md b/docs/v2/breaking-changes.md similarity index 100% rename from docs/II version 2.x/breaking-changes.md rename to docs/v2/breaking-changes.md diff --git a/docs/II version 2.x/customization/customHttpClient.md b/docs/v2/customization/customHttpClient.md similarity index 100% rename from docs/II version 2.x/customization/customHttpClient.md rename to docs/v2/customization/customHttpClient.md diff --git a/docs/II version 2.x/customization/customJsonSerializationSettings.md b/docs/v2/customization/customJsonSerializationSettings.md similarity index 100% rename from docs/II version 2.x/customization/customJsonSerializationSettings.md rename to docs/v2/customization/customJsonSerializationSettings.md diff --git a/docs/II version 2.x/customization/customRequest.md b/docs/v2/customization/customRequest.md similarity index 100% rename from docs/II version 2.x/customization/customRequest.md rename to docs/v2/customization/customRequest.md diff --git a/docs/II version 2.x/customization/httpResponsePreProcessing.md b/docs/v2/customization/httpResponsePreProcessing.md similarity index 100% rename from docs/II version 2.x/customization/httpResponsePreProcessing.md rename to docs/v2/customization/httpResponsePreProcessing.md diff --git a/docs/II version 2.x/entities/categories.md b/docs/v2/entities/categories.md similarity index 100% rename from docs/II version 2.x/entities/categories.md rename to docs/v2/entities/categories.md diff --git a/docs/II version 2.x/entities/comments.md b/docs/v2/entities/comments.md similarity index 100% rename from docs/II version 2.x/entities/comments.md rename to docs/v2/entities/comments.md diff --git a/docs/II version 2.x/entities/customPostType.md b/docs/v2/entities/customPostType.md similarity index 100% rename from docs/II version 2.x/entities/customPostType.md rename to docs/v2/entities/customPostType.md diff --git a/docs/II version 2.x/entities/media.md b/docs/v2/entities/media.md similarity index 100% rename from docs/II version 2.x/entities/media.md rename to docs/v2/entities/media.md diff --git a/docs/II version 2.x/entities/pages.md b/docs/v2/entities/pages.md similarity index 100% rename from docs/II version 2.x/entities/pages.md rename to docs/v2/entities/pages.md diff --git a/docs/II version 2.x/entities/posts.md b/docs/v2/entities/posts.md similarity index 100% rename from docs/II version 2.x/entities/posts.md rename to docs/v2/entities/posts.md diff --git a/docs/II version 2.x/entities/poststatuses.md b/docs/v2/entities/poststatuses.md similarity index 100% rename from docs/II version 2.x/entities/poststatuses.md rename to docs/v2/entities/poststatuses.md diff --git a/docs/II version 2.x/entities/posttypes.md b/docs/v2/entities/posttypes.md similarity index 100% rename from docs/II version 2.x/entities/posttypes.md rename to docs/v2/entities/posttypes.md diff --git a/docs/II version 2.x/entities/settings.md b/docs/v2/entities/settings.md similarity index 100% rename from docs/II version 2.x/entities/settings.md rename to docs/v2/entities/settings.md diff --git a/docs/II version 2.x/entities/tags.md b/docs/v2/entities/tags.md similarity index 100% rename from docs/II version 2.x/entities/tags.md rename to docs/v2/entities/tags.md diff --git a/docs/II version 2.x/entities/taxonomies.md b/docs/v2/entities/taxonomies.md similarity index 100% rename from docs/II version 2.x/entities/taxonomies.md rename to docs/v2/entities/taxonomies.md diff --git a/docs/II version 2.x/entities/users.md b/docs/v2/entities/users.md similarity index 100% rename from docs/II version 2.x/entities/users.md rename to docs/v2/entities/users.md diff --git a/docs/II version 2.x/index.md b/docs/v2/index.md similarity index 100% rename from docs/II version 2.x/index.md rename to docs/v2/index.md diff --git a/docs/II version 2.x/troubleshooting.md b/docs/v2/troubleshooting.md similarity index 100% rename from docs/II version 2.x/troubleshooting.md rename to docs/v2/troubleshooting.md diff --git a/docs/I version 3.x/breaking-changes.md b/docs/v3/breaking-changes.md similarity index 100% rename from docs/I version 3.x/breaking-changes.md rename to docs/v3/breaking-changes.md diff --git a/docs/I version 3.x/customization/customHttpClient.md b/docs/v3/customization/customHttpClient.md similarity index 100% rename from docs/I version 3.x/customization/customHttpClient.md rename to docs/v3/customization/customHttpClient.md diff --git a/docs/I version 3.x/customization/customJsonSerializationSettings.md b/docs/v3/customization/customJsonSerializationSettings.md similarity index 100% rename from docs/I version 3.x/customization/customJsonSerializationSettings.md rename to docs/v3/customization/customJsonSerializationSettings.md diff --git a/docs/I version 3.x/customization/customRequest.md b/docs/v3/customization/customRequest.md similarity index 100% rename from docs/I version 3.x/customization/customRequest.md rename to docs/v3/customization/customRequest.md diff --git a/docs/III version 1.x/customization/httpResponsePreProcessing.md b/docs/v3/customization/httpResponsePreProcessing.md similarity index 100% rename from docs/III version 1.x/customization/httpResponsePreProcessing.md rename to docs/v3/customization/httpResponsePreProcessing.md diff --git a/docs/I version 3.x/endpoint-coverage.md b/docs/v3/endpoint-coverage.md similarity index 100% rename from docs/I version 3.x/endpoint-coverage.md rename to docs/v3/endpoint-coverage.md diff --git a/docs/I version 3.x/entities/categories.md b/docs/v3/entities/categories.md similarity index 100% rename from docs/I version 3.x/entities/categories.md rename to docs/v3/entities/categories.md diff --git a/docs/I version 3.x/entities/comments.md b/docs/v3/entities/comments.md similarity index 100% rename from docs/I version 3.x/entities/comments.md rename to docs/v3/entities/comments.md diff --git a/docs/I version 3.x/entities/customPostType.md b/docs/v3/entities/customPostType.md similarity index 100% rename from docs/I version 3.x/entities/customPostType.md rename to docs/v3/entities/customPostType.md diff --git a/docs/I version 3.x/entities/media.md b/docs/v3/entities/media.md similarity index 100% rename from docs/I version 3.x/entities/media.md rename to docs/v3/entities/media.md diff --git a/docs/I version 3.x/entities/pages.md b/docs/v3/entities/pages.md similarity index 100% rename from docs/I version 3.x/entities/pages.md rename to docs/v3/entities/pages.md diff --git a/docs/I version 3.x/entities/posts.md b/docs/v3/entities/posts.md similarity index 100% rename from docs/I version 3.x/entities/posts.md rename to docs/v3/entities/posts.md diff --git a/docs/I version 3.x/entities/poststatuses.md b/docs/v3/entities/poststatuses.md similarity index 100% rename from docs/I version 3.x/entities/poststatuses.md rename to docs/v3/entities/poststatuses.md diff --git a/docs/I version 3.x/entities/posttypes.md b/docs/v3/entities/posttypes.md similarity index 100% rename from docs/I version 3.x/entities/posttypes.md rename to docs/v3/entities/posttypes.md diff --git a/docs/I version 3.x/entities/settings.md b/docs/v3/entities/settings.md similarity index 100% rename from docs/I version 3.x/entities/settings.md rename to docs/v3/entities/settings.md diff --git a/docs/I version 3.x/entities/tags.md b/docs/v3/entities/tags.md similarity index 100% rename from docs/I version 3.x/entities/tags.md rename to docs/v3/entities/tags.md diff --git a/docs/I version 3.x/entities/taxonomies.md b/docs/v3/entities/taxonomies.md similarity index 100% rename from docs/I version 3.x/entities/taxonomies.md rename to docs/v3/entities/taxonomies.md diff --git a/docs/I version 3.x/entities/users.md b/docs/v3/entities/users.md similarity index 100% rename from docs/I version 3.x/entities/users.md rename to docs/v3/entities/users.md diff --git a/docs/I version 3.x/index.md b/docs/v3/index.md similarity index 100% rename from docs/I version 3.x/index.md rename to docs/v3/index.md diff --git a/docs/I version 3.x/troubleshooting.md b/docs/v3/troubleshooting.md similarity index 100% rename from docs/I version 3.x/troubleshooting.md rename to docs/v3/troubleshooting.md diff --git a/mkdocs.yml b/mkdocs.yml index ed4b2cef..3f2d3f7c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,3 +1,71 @@ site_name: WordPressPCL site_url: https://wp-net.github.io/WordPressPCL/ -theme: readthedocs \ No newline at end of file +theme: readthedocs +nav: + - Home: index.md + - Version 3.x: + - Overview: v3/index.md + - Breaking Changes: v3/breaking-changes.md + - Endpoint Coverage: v3/endpoint-coverage.md + - Troubleshooting: v3/troubleshooting.md + - Customization: + - Custom HttpClient & DI: v3/customization/customHttpClient.md + - Custom JSON Settings: v3/customization/customJsonSerializationSettings.md + - Custom Request: v3/customization/customRequest.md + - HTTP Response Pre-Processing: v3/customization/httpResponsePreProcessing.md + - Entities: + - Posts: v3/entities/posts.md + - Pages: v3/entities/pages.md + - Comments: v3/entities/comments.md + - Categories: v3/entities/categories.md + - Tags: v3/entities/tags.md + - Users: v3/entities/users.md + - Media: v3/entities/media.md + - Taxonomies: v3/entities/taxonomies.md + - Post Types: v3/entities/posttypes.md + - Post Statuses: v3/entities/poststatuses.md + - Settings: v3/entities/settings.md + - Custom Post Type: v3/entities/customPostType.md + - Version 2.x: + - Overview: v2/index.md + - Breaking Changes: v2/breaking-changes.md + - Troubleshooting: v2/troubleshooting.md + - Customization: + - Custom HttpClient & DI: v2/customization/customHttpClient.md + - Custom JSON Settings: v2/customization/customJsonSerializationSettings.md + - Custom Request: v2/customization/customRequest.md + - HTTP Response Pre-Processing: v2/customization/httpResponsePreProcessing.md + - Entities: + - Posts: v2/entities/posts.md + - Pages: v2/entities/pages.md + - Comments: v2/entities/comments.md + - Categories: v2/entities/categories.md + - Tags: v2/entities/tags.md + - Users: v2/entities/users.md + - Media: v2/entities/media.md + - Taxonomies: v2/entities/taxonomies.md + - Post Types: v2/entities/posttypes.md + - Post Statuses: v2/entities/poststatuses.md + - Settings: v2/entities/settings.md + - Custom Post Type: v2/entities/customPostType.md + - Version 1.x: + - Overview: v1/index.md + - Troubleshooting: v1/troubleshooting.md + - Customization: + - Custom HttpClient: v1/customization/customHttpClient.md + - Custom JSON Settings: v1/customization/customJsonSerializationSettings.md + - Custom Request: v1/customization/customRequest.md + - HTTP Response Pre-Processing: v1/customization/httpResponsePreProcessing.md + - Entities: + - Posts: v1/entities/posts.md + - Pages: v1/entities/pages.md + - Comments: v1/entities/comments.md + - Categories: v1/entities/categories.md + - Tags: v1/entities/tags.md + - Users: v1/entities/users.md + - Media: v1/entities/media.md + - Taxonomies: v1/entities/taxonomies.md + - Post Types: v1/entities/posttypes.md + - Post Statuses: v1/entities/poststatuses.md + - Settings: v1/entities/settings.md + - Custom Post Type: v1/entities/customPostType.md \ No newline at end of file diff --git a/WordPressPCL/Client/Auth.cs b/src/WordPressPCL/Client/Auth.cs similarity index 100% rename from WordPressPCL/Client/Auth.cs rename to src/WordPressPCL/Client/Auth.cs diff --git a/WordPressPCL/Client/CRUDOperation.cs b/src/WordPressPCL/Client/CRUDOperation.cs similarity index 100% rename from WordPressPCL/Client/CRUDOperation.cs rename to src/WordPressPCL/Client/CRUDOperation.cs diff --git a/WordPressPCL/Client/Categories.cs b/src/WordPressPCL/Client/Categories.cs similarity index 100% rename from WordPressPCL/Client/Categories.cs rename to src/WordPressPCL/Client/Categories.cs diff --git a/WordPressPCL/Client/Comments.cs b/src/WordPressPCL/Client/Comments.cs similarity index 100% rename from WordPressPCL/Client/Comments.cs rename to src/WordPressPCL/Client/Comments.cs diff --git a/WordPressPCL/Client/CustomRequest.cs b/src/WordPressPCL/Client/CustomRequest.cs similarity index 100% rename from WordPressPCL/Client/CustomRequest.cs rename to src/WordPressPCL/Client/CustomRequest.cs diff --git a/WordPressPCL/Client/Media.cs b/src/WordPressPCL/Client/Media.cs similarity index 100% rename from WordPressPCL/Client/Media.cs rename to src/WordPressPCL/Client/Media.cs diff --git a/WordPressPCL/Client/Pages.cs b/src/WordPressPCL/Client/Pages.cs similarity index 100% rename from WordPressPCL/Client/Pages.cs rename to src/WordPressPCL/Client/Pages.cs diff --git a/WordPressPCL/Client/Plugins.cs b/src/WordPressPCL/Client/Plugins.cs similarity index 100% rename from WordPressPCL/Client/Plugins.cs rename to src/WordPressPCL/Client/Plugins.cs diff --git a/WordPressPCL/Client/PostRevisions.cs b/src/WordPressPCL/Client/PostRevisions.cs similarity index 100% rename from WordPressPCL/Client/PostRevisions.cs rename to src/WordPressPCL/Client/PostRevisions.cs diff --git a/WordPressPCL/Client/PostStatuses.cs b/src/WordPressPCL/Client/PostStatuses.cs similarity index 100% rename from WordPressPCL/Client/PostStatuses.cs rename to src/WordPressPCL/Client/PostStatuses.cs diff --git a/WordPressPCL/Client/PostTypes.cs b/src/WordPressPCL/Client/PostTypes.cs similarity index 100% rename from WordPressPCL/Client/PostTypes.cs rename to src/WordPressPCL/Client/PostTypes.cs diff --git a/WordPressPCL/Client/Posts.cs b/src/WordPressPCL/Client/Posts.cs similarity index 100% rename from WordPressPCL/Client/Posts.cs rename to src/WordPressPCL/Client/Posts.cs diff --git a/WordPressPCL/Client/Settings.cs b/src/WordPressPCL/Client/Settings.cs similarity index 100% rename from WordPressPCL/Client/Settings.cs rename to src/WordPressPCL/Client/Settings.cs diff --git a/WordPressPCL/Client/Tags.cs b/src/WordPressPCL/Client/Tags.cs similarity index 100% rename from WordPressPCL/Client/Tags.cs rename to src/WordPressPCL/Client/Tags.cs diff --git a/WordPressPCL/Client/Taxonomies.cs b/src/WordPressPCL/Client/Taxonomies.cs similarity index 100% rename from WordPressPCL/Client/Taxonomies.cs rename to src/WordPressPCL/Client/Taxonomies.cs diff --git a/WordPressPCL/Client/Themes.cs b/src/WordPressPCL/Client/Themes.cs similarity index 100% rename from WordPressPCL/Client/Themes.cs rename to src/WordPressPCL/Client/Themes.cs diff --git a/WordPressPCL/Client/Users.cs b/src/WordPressPCL/Client/Users.cs similarity index 100% rename from WordPressPCL/Client/Users.cs rename to src/WordPressPCL/Client/Users.cs diff --git a/WordPressPCL/DependencyInjection/WordPressServiceCollectionExtensions.cs b/src/WordPressPCL/DependencyInjection/WordPressServiceCollectionExtensions.cs similarity index 100% rename from WordPressPCL/DependencyInjection/WordPressServiceCollectionExtensions.cs rename to src/WordPressPCL/DependencyInjection/WordPressServiceCollectionExtensions.cs diff --git a/WordPressPCL/Images/icon.png b/src/WordPressPCL/Images/icon.png similarity index 100% rename from WordPressPCL/Images/icon.png rename to src/WordPressPCL/Images/icon.png diff --git a/WordPressPCL/Interfaces/ICountOperation.cs b/src/WordPressPCL/Interfaces/ICountOperation.cs similarity index 100% rename from WordPressPCL/Interfaces/ICountOperation.cs rename to src/WordPressPCL/Interfaces/ICountOperation.cs diff --git a/WordPressPCL/Interfaces/ICreateOperation.cs b/src/WordPressPCL/Interfaces/ICreateOperation.cs similarity index 100% rename from WordPressPCL/Interfaces/ICreateOperation.cs rename to src/WordPressPCL/Interfaces/ICreateOperation.cs diff --git a/WordPressPCL/Interfaces/IDeleteOperation.cs b/src/WordPressPCL/Interfaces/IDeleteOperation.cs similarity index 100% rename from WordPressPCL/Interfaces/IDeleteOperation.cs rename to src/WordPressPCL/Interfaces/IDeleteOperation.cs diff --git a/WordPressPCL/Interfaces/IQueryOperation.cs b/src/WordPressPCL/Interfaces/IQueryOperation.cs similarity index 100% rename from WordPressPCL/Interfaces/IQueryOperation.cs rename to src/WordPressPCL/Interfaces/IQueryOperation.cs diff --git a/WordPressPCL/Interfaces/IReadOperation.cs b/src/WordPressPCL/Interfaces/IReadOperation.cs similarity index 100% rename from WordPressPCL/Interfaces/IReadOperation.cs rename to src/WordPressPCL/Interfaces/IReadOperation.cs diff --git a/WordPressPCL/Interfaces/IUpdateOperation.cs b/src/WordPressPCL/Interfaces/IUpdateOperation.cs similarity index 100% rename from WordPressPCL/Interfaces/IUpdateOperation.cs rename to src/WordPressPCL/Interfaces/IUpdateOperation.cs diff --git a/WordPressPCL/Models/ApplicationPassword.cs b/src/WordPressPCL/Models/ApplicationPassword.cs similarity index 100% rename from WordPressPCL/Models/ApplicationPassword.cs rename to src/WordPressPCL/Models/ApplicationPassword.cs diff --git a/WordPressPCL/Models/AuthMethod.cs b/src/WordPressPCL/Models/AuthMethod.cs similarity index 100% rename from WordPressPCL/Models/AuthMethod.cs rename to src/WordPressPCL/Models/AuthMethod.cs diff --git a/WordPressPCL/Models/AvatarURL.cs b/src/WordPressPCL/Models/AvatarURL.cs similarity index 100% rename from WordPressPCL/Models/AvatarURL.cs rename to src/WordPressPCL/Models/AvatarURL.cs diff --git a/WordPressPCL/Models/BadRequest.cs b/src/WordPressPCL/Models/BadRequest.cs similarity index 100% rename from WordPressPCL/Models/BadRequest.cs rename to src/WordPressPCL/Models/BadRequest.cs diff --git a/WordPressPCL/Models/Base.cs b/src/WordPressPCL/Models/Base.cs similarity index 100% rename from WordPressPCL/Models/Base.cs rename to src/WordPressPCL/Models/Base.cs diff --git a/WordPressPCL/Models/Category.cs b/src/WordPressPCL/Models/Category.cs similarity index 100% rename from WordPressPCL/Models/Category.cs rename to src/WordPressPCL/Models/Category.cs diff --git a/WordPressPCL/Models/Comment.cs b/src/WordPressPCL/Models/Comment.cs similarity index 100% rename from WordPressPCL/Models/Comment.cs rename to src/WordPressPCL/Models/Comment.cs diff --git a/WordPressPCL/Models/CommentThreaded.cs b/src/WordPressPCL/Models/CommentThreaded.cs similarity index 100% rename from WordPressPCL/Models/CommentThreaded.cs rename to src/WordPressPCL/Models/CommentThreaded.cs diff --git a/WordPressPCL/Models/Embedded.cs b/src/WordPressPCL/Models/Embedded.cs similarity index 100% rename from WordPressPCL/Models/Embedded.cs rename to src/WordPressPCL/Models/Embedded.cs diff --git a/WordPressPCL/Models/Enums.cs b/src/WordPressPCL/Models/Enums.cs similarity index 100% rename from WordPressPCL/Models/Enums.cs rename to src/WordPressPCL/Models/Enums.cs diff --git a/WordPressPCL/Models/Exceptions/WPException.cs b/src/WordPressPCL/Models/Exceptions/WPException.cs similarity index 100% rename from WordPressPCL/Models/Exceptions/WPException.cs rename to src/WordPressPCL/Models/Exceptions/WPException.cs diff --git a/WordPressPCL/Models/Exceptions/WPUnexpectedException.cs b/src/WordPressPCL/Models/Exceptions/WPUnexpectedException.cs similarity index 100% rename from WordPressPCL/Models/Exceptions/WPUnexpectedException.cs rename to src/WordPressPCL/Models/Exceptions/WPUnexpectedException.cs diff --git a/WordPressPCL/Models/ImageMeta.cs b/src/WordPressPCL/Models/ImageMeta.cs similarity index 100% rename from WordPressPCL/Models/ImageMeta.cs rename to src/WordPressPCL/Models/ImageMeta.cs diff --git a/WordPressPCL/Models/JWTData.cs b/src/WordPressPCL/Models/JWTData.cs similarity index 100% rename from WordPressPCL/Models/JWTData.cs rename to src/WordPressPCL/Models/JWTData.cs diff --git a/WordPressPCL/Models/JWTPlugin.cs b/src/WordPressPCL/Models/JWTPlugin.cs similarity index 100% rename from WordPressPCL/Models/JWTPlugin.cs rename to src/WordPressPCL/Models/JWTPlugin.cs diff --git a/WordPressPCL/Models/JWTResponse.cs b/src/WordPressPCL/Models/JWTResponse.cs similarity index 100% rename from WordPressPCL/Models/JWTResponse.cs rename to src/WordPressPCL/Models/JWTResponse.cs diff --git a/WordPressPCL/Models/JWTUser.cs b/src/WordPressPCL/Models/JWTUser.cs similarity index 100% rename from WordPressPCL/Models/JWTUser.cs rename to src/WordPressPCL/Models/JWTUser.cs diff --git a/WordPressPCL/Models/Links.cs b/src/WordPressPCL/Models/Links.cs similarity index 100% rename from WordPressPCL/Models/Links.cs rename to src/WordPressPCL/Models/Links.cs diff --git a/WordPressPCL/Models/MediaDetails.cs b/src/WordPressPCL/Models/MediaDetails.cs similarity index 100% rename from WordPressPCL/Models/MediaDetails.cs rename to src/WordPressPCL/Models/MediaDetails.cs diff --git a/WordPressPCL/Models/MediaItem.cs b/src/WordPressPCL/Models/MediaItem.cs similarity index 100% rename from WordPressPCL/Models/MediaItem.cs rename to src/WordPressPCL/Models/MediaItem.cs diff --git a/WordPressPCL/Models/MediaSize.cs b/src/WordPressPCL/Models/MediaSize.cs similarity index 100% rename from WordPressPCL/Models/MediaSize.cs rename to src/WordPressPCL/Models/MediaSize.cs diff --git a/WordPressPCL/Models/Page.cs b/src/WordPressPCL/Models/Page.cs similarity index 100% rename from WordPressPCL/Models/Page.cs rename to src/WordPressPCL/Models/Page.cs diff --git a/WordPressPCL/Models/PagedResult.cs b/src/WordPressPCL/Models/PagedResult.cs similarity index 100% rename from WordPressPCL/Models/PagedResult.cs rename to src/WordPressPCL/Models/PagedResult.cs diff --git a/WordPressPCL/Models/Plugin.cs b/src/WordPressPCL/Models/Plugin.cs similarity index 100% rename from WordPressPCL/Models/Plugin.cs rename to src/WordPressPCL/Models/Plugin.cs diff --git a/WordPressPCL/Models/Post.cs b/src/WordPressPCL/Models/Post.cs similarity index 100% rename from WordPressPCL/Models/Post.cs rename to src/WordPressPCL/Models/Post.cs diff --git a/WordPressPCL/Models/PostRevision.cs b/src/WordPressPCL/Models/PostRevision.cs similarity index 100% rename from WordPressPCL/Models/PostRevision.cs rename to src/WordPressPCL/Models/PostRevision.cs diff --git a/WordPressPCL/Models/PostStatus.cs b/src/WordPressPCL/Models/PostStatus.cs similarity index 100% rename from WordPressPCL/Models/PostStatus.cs rename to src/WordPressPCL/Models/PostStatus.cs diff --git a/WordPressPCL/Models/PostType.cs b/src/WordPressPCL/Models/PostType.cs similarity index 100% rename from WordPressPCL/Models/PostType.cs rename to src/WordPressPCL/Models/PostType.cs diff --git a/WordPressPCL/Models/Settings.cs b/src/WordPressPCL/Models/Settings.cs similarity index 100% rename from WordPressPCL/Models/Settings.cs rename to src/WordPressPCL/Models/Settings.cs diff --git a/WordPressPCL/Models/Subclasses.cs b/src/WordPressPCL/Models/Subclasses.cs similarity index 100% rename from WordPressPCL/Models/Subclasses.cs rename to src/WordPressPCL/Models/Subclasses.cs diff --git a/WordPressPCL/Models/Tag.cs b/src/WordPressPCL/Models/Tag.cs similarity index 100% rename from WordPressPCL/Models/Tag.cs rename to src/WordPressPCL/Models/Tag.cs diff --git a/WordPressPCL/Models/Taxonomy.cs b/src/WordPressPCL/Models/Taxonomy.cs similarity index 100% rename from WordPressPCL/Models/Taxonomy.cs rename to src/WordPressPCL/Models/Taxonomy.cs diff --git a/WordPressPCL/Models/Term.cs b/src/WordPressPCL/Models/Term.cs similarity index 100% rename from WordPressPCL/Models/Term.cs rename to src/WordPressPCL/Models/Term.cs diff --git a/WordPressPCL/Models/Theme.cs b/src/WordPressPCL/Models/Theme.cs similarity index 100% rename from WordPressPCL/Models/Theme.cs rename to src/WordPressPCL/Models/Theme.cs diff --git a/WordPressPCL/Models/User.cs b/src/WordPressPCL/Models/User.cs similarity index 100% rename from WordPressPCL/Models/User.cs rename to src/WordPressPCL/Models/User.cs diff --git a/WordPressPCL/Utility/CategoriesQueryBuilder.cs b/src/WordPressPCL/Utility/CategoriesQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/CategoriesQueryBuilder.cs rename to src/WordPressPCL/Utility/CategoriesQueryBuilder.cs diff --git a/WordPressPCL/Utility/CommentsQueryBuilder.cs b/src/WordPressPCL/Utility/CommentsQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/CommentsQueryBuilder.cs rename to src/WordPressPCL/Utility/CommentsQueryBuilder.cs diff --git a/WordPressPCL/Utility/CustomCapabilitiesJsonConverter.cs b/src/WordPressPCL/Utility/CustomCapabilitiesJsonConverter.cs similarity index 100% rename from WordPressPCL/Utility/CustomCapabilitiesJsonConverter.cs rename to src/WordPressPCL/Utility/CustomCapabilitiesJsonConverter.cs diff --git a/WordPressPCL/Utility/ExcludeQueryTextAttribute.cs b/src/WordPressPCL/Utility/ExcludeQueryTextAttribute.cs similarity index 100% rename from WordPressPCL/Utility/ExcludeQueryTextAttribute.cs rename to src/WordPressPCL/Utility/ExcludeQueryTextAttribute.cs diff --git a/WordPressPCL/Utility/HttpHelper.cs b/src/WordPressPCL/Utility/HttpHelper.cs similarity index 100% rename from WordPressPCL/Utility/HttpHelper.cs rename to src/WordPressPCL/Utility/HttpHelper.cs diff --git a/WordPressPCL/Utility/JsonStringEnumMemberConverter.cs b/src/WordPressPCL/Utility/JsonStringEnumMemberConverter.cs similarity index 100% rename from WordPressPCL/Utility/JsonStringEnumMemberConverter.cs rename to src/WordPressPCL/Utility/JsonStringEnumMemberConverter.cs diff --git a/WordPressPCL/Utility/MediaQueryBuilder.cs b/src/WordPressPCL/Utility/MediaQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/MediaQueryBuilder.cs rename to src/WordPressPCL/Utility/MediaQueryBuilder.cs diff --git a/WordPressPCL/Utility/MimeTypeHelper.cs b/src/WordPressPCL/Utility/MimeTypeHelper.cs similarity index 100% rename from WordPressPCL/Utility/MimeTypeHelper.cs rename to src/WordPressPCL/Utility/MimeTypeHelper.cs diff --git a/WordPressPCL/Utility/PagesQueryBuilder.cs b/src/WordPressPCL/Utility/PagesQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/PagesQueryBuilder.cs rename to src/WordPressPCL/Utility/PagesQueryBuilder.cs diff --git a/WordPressPCL/Utility/PluginsQueryBuilder.cs b/src/WordPressPCL/Utility/PluginsQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/PluginsQueryBuilder.cs rename to src/WordPressPCL/Utility/PluginsQueryBuilder.cs diff --git a/WordPressPCL/Utility/PostsQueryBuilder.cs b/src/WordPressPCL/Utility/PostsQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/PostsQueryBuilder.cs rename to src/WordPressPCL/Utility/PostsQueryBuilder.cs diff --git a/WordPressPCL/Utility/QueryBuilder.cs b/src/WordPressPCL/Utility/QueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/QueryBuilder.cs rename to src/WordPressPCL/Utility/QueryBuilder.cs diff --git a/WordPressPCL/Utility/QueryTextAttribute.cs b/src/WordPressPCL/Utility/QueryTextAttribute.cs similarity index 100% rename from WordPressPCL/Utility/QueryTextAttribute.cs rename to src/WordPressPCL/Utility/QueryTextAttribute.cs diff --git a/WordPressPCL/Utility/TagsQueryBuilder.cs b/src/WordPressPCL/Utility/TagsQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/TagsQueryBuilder.cs rename to src/WordPressPCL/Utility/TagsQueryBuilder.cs diff --git a/WordPressPCL/Utility/TaxonomiesQueryBuilder.cs b/src/WordPressPCL/Utility/TaxonomiesQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/TaxonomiesQueryBuilder.cs rename to src/WordPressPCL/Utility/TaxonomiesQueryBuilder.cs diff --git a/WordPressPCL/Utility/ThemesQueryBuilder.cs b/src/WordPressPCL/Utility/ThemesQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/ThemesQueryBuilder.cs rename to src/WordPressPCL/Utility/ThemesQueryBuilder.cs diff --git a/WordPressPCL/Utility/ThreadedCommentsHelper.cs b/src/WordPressPCL/Utility/ThreadedCommentsHelper.cs similarity index 100% rename from WordPressPCL/Utility/ThreadedCommentsHelper.cs rename to src/WordPressPCL/Utility/ThreadedCommentsHelper.cs diff --git a/WordPressPCL/Utility/UrlHelper.cs b/src/WordPressPCL/Utility/UrlHelper.cs similarity index 100% rename from WordPressPCL/Utility/UrlHelper.cs rename to src/WordPressPCL/Utility/UrlHelper.cs diff --git a/WordPressPCL/Utility/UsersQueryBuilder.cs b/src/WordPressPCL/Utility/UsersQueryBuilder.cs similarity index 100% rename from WordPressPCL/Utility/UsersQueryBuilder.cs rename to src/WordPressPCL/Utility/UsersQueryBuilder.cs diff --git a/WordPressPCL/WordPressClient.cs b/src/WordPressPCL/WordPressClient.cs similarity index 100% rename from WordPressPCL/WordPressClient.cs rename to src/WordPressPCL/WordPressClient.cs diff --git a/WordPressPCL/WordPressPCL.csproj b/src/WordPressPCL/WordPressPCL.csproj similarity index 93% rename from WordPressPCL/WordPressPCL.csproj rename to src/WordPressPCL/WordPressPCL.csproj index 44b255c0..bb358a3e 100644 --- a/WordPressPCL/WordPressPCL.csproj +++ b/src/WordPressPCL/WordPressPCL.csproj @@ -32,12 +32,12 @@ Always - - + + True \ - + True \ diff --git a/WordPressPCL/WordPressPCL.xml b/src/WordPressPCL/WordPressPCL.xml similarity index 100% rename from WordPressPCL/WordPressPCL.xml rename to src/WordPressPCL/WordPressPCL.xml diff --git a/WordPressPCL.Tests.Hosted/Basic_Tests.cs b/tests/WordPressPCL.Tests.Hosted/Basic_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Hosted/Basic_Tests.cs rename to tests/WordPressPCL.Tests.Hosted/Basic_Tests.cs diff --git a/WordPressPCL.Tests.Hosted/Utility/ApiCredentials.cs b/tests/WordPressPCL.Tests.Hosted/Utility/ApiCredentials.cs similarity index 100% rename from WordPressPCL.Tests.Hosted/Utility/ApiCredentials.cs rename to tests/WordPressPCL.Tests.Hosted/Utility/ApiCredentials.cs diff --git a/WordPressPCL.Tests.Hosted/Utility/ClientHelper.cs b/tests/WordPressPCL.Tests.Hosted/Utility/ClientHelper.cs similarity index 100% rename from WordPressPCL.Tests.Hosted/Utility/ClientHelper.cs rename to tests/WordPressPCL.Tests.Hosted/Utility/ClientHelper.cs diff --git a/WordPressPCL.Tests.Hosted/Utility/HttpHelper_Tests.cs b/tests/WordPressPCL.Tests.Hosted/Utility/HttpHelper_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Hosted/Utility/HttpHelper_Tests.cs rename to tests/WordPressPCL.Tests.Hosted/Utility/HttpHelper_Tests.cs diff --git a/WordPressPCL.Tests.Hosted/WordPressClient_DI_Tests.cs b/tests/WordPressPCL.Tests.Hosted/WordPressClient_DI_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Hosted/WordPressClient_DI_Tests.cs rename to tests/WordPressPCL.Tests.Hosted/WordPressClient_DI_Tests.cs diff --git a/WordPressPCL.Tests.Hosted/WordPressClient_Logger_Tests.cs b/tests/WordPressPCL.Tests.Hosted/WordPressClient_Logger_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Hosted/WordPressClient_Logger_Tests.cs rename to tests/WordPressPCL.Tests.Hosted/WordPressClient_Logger_Tests.cs diff --git a/WordPressPCL.Tests.Hosted/WordPressPCL.Tests.Hosted.csproj b/tests/WordPressPCL.Tests.Hosted/WordPressPCL.Tests.Hosted.csproj similarity index 84% rename from WordPressPCL.Tests.Hosted/WordPressPCL.Tests.Hosted.csproj rename to tests/WordPressPCL.Tests.Hosted/WordPressPCL.Tests.Hosted.csproj index 5b639167..de87b325 100644 --- a/WordPressPCL.Tests.Hosted/WordPressPCL.Tests.Hosted.csproj +++ b/tests/WordPressPCL.Tests.Hosted/WordPressPCL.Tests.Hosted.csproj @@ -12,7 +12,7 @@ - + diff --git a/WordPressPCL.Tests.Selfhosted/ApplicationPasswords_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/ApplicationPasswords_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/ApplicationPasswords_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/ApplicationPasswords_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Assets/cat.jpg b/tests/WordPressPCL.Tests.Selfhosted/Assets/cat.jpg similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Assets/cat.jpg rename to tests/WordPressPCL.Tests.Selfhosted/Assets/cat.jpg diff --git a/WordPressPCL.Tests.Selfhosted/Assets/img_exif_error.jpg b/tests/WordPressPCL.Tests.Selfhosted/Assets/img_exif_error.jpg similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Assets/img_exif_error.jpg rename to tests/WordPressPCL.Tests.Selfhosted/Assets/img_exif_error.jpg diff --git a/WordPressPCL.Tests.Selfhosted/Basic_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Basic_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Basic_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Basic_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/CancellationToken_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/CancellationToken_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/CancellationToken_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/CancellationToken_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Categories_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Categories_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Categories_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Categories_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/CommentsThreaded_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/CommentsThreaded_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/CommentsThreaded_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/CommentsThreaded_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Comments_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Comments_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Comments_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Comments_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/CustomRequests_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/CustomRequests_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/CustomRequests_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/CustomRequests_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/ExceptionTests.cs b/tests/WordPressPCL.Tests.Selfhosted/ExceptionTests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/ExceptionTests.cs rename to tests/WordPressPCL.Tests.Selfhosted/ExceptionTests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Exception_Unexpected_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Exception_Unexpected_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Exception_Unexpected_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Exception_Unexpected_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/HttpClient_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/HttpClient_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/HttpClient_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/HttpClient_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/ListPosts_QueryBuilder_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/ListPosts_QueryBuilder_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/ListPosts_QueryBuilder_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/ListPosts_QueryBuilder_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Media_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Media_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Media_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Media_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/MimeTypeHelper_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/MimeTypeHelper_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/MimeTypeHelper_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/MimeTypeHelper_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/NullHandling_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/NullHandling_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/NullHandling_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/NullHandling_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Pages_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Pages_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Pages_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Pages_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Plugins_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Plugins_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Plugins_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Plugins_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/PostRevisions_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/PostRevisions_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/PostRevisions_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/PostRevisions_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/PostStatuses_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/PostStatuses_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/PostStatuses_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/PostStatuses_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/PostTypes_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/PostTypes_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/PostTypes_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/PostTypes_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Posts_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Posts_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Posts_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Posts_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/QueryBuilder_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/QueryBuilder_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/QueryBuilder_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/QueryBuilder_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Settings_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Settings_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Settings_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Settings_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Tag_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Tag_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Tag_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Tag_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Taxonomies_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Taxonomies_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Taxonomies_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Taxonomies_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Themes_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Themes_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Themes_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Themes_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/User_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/User_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/User_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/User_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Utility/ApiCredentials.cs b/tests/WordPressPCL.Tests.Selfhosted/Utility/ApiCredentials.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Utility/ApiCredentials.cs rename to tests/WordPressPCL.Tests.Selfhosted/Utility/ApiCredentials.cs diff --git a/WordPressPCL.Tests.Selfhosted/Utility/CapabilitiesJsonConverter_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Utility/CapabilitiesJsonConverter_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Utility/CapabilitiesJsonConverter_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Utility/CapabilitiesJsonConverter_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Utility/ClientHelper.cs b/tests/WordPressPCL.Tests.Selfhosted/Utility/ClientHelper.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Utility/ClientHelper.cs rename to tests/WordPressPCL.Tests.Selfhosted/Utility/ClientHelper.cs diff --git a/WordPressPCL.Tests.Selfhosted/Utility/HttpHelper_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Utility/HttpHelper_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Utility/HttpHelper_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Utility/HttpHelper_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Utility/ThreadedCommentsHelper_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Utility/ThreadedCommentsHelper_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Utility/ThreadedCommentsHelper_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Utility/ThreadedCommentsHelper_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/Utility/UrlHelper_Tests.cs b/tests/WordPressPCL.Tests.Selfhosted/Utility/UrlHelper_Tests.cs similarity index 100% rename from WordPressPCL.Tests.Selfhosted/Utility/UrlHelper_Tests.cs rename to tests/WordPressPCL.Tests.Selfhosted/Utility/UrlHelper_Tests.cs diff --git a/WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj b/tests/WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj similarity index 89% rename from WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj rename to tests/WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj index 4854bb29..2f83c61c 100644 --- a/WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj +++ b/tests/WordPressPCL.Tests.Selfhosted/WordPressPCL.Tests.Selfhosted.csproj @@ -11,7 +11,7 @@ - + diff --git a/WordPressPCL.Tests.Selfhosted/jwt.runsettings b/tests/WordPressPCL.Tests.Selfhosted/jwt.runsettings similarity index 100% rename from WordPressPCL.Tests.Selfhosted/jwt.runsettings rename to tests/WordPressPCL.Tests.Selfhosted/jwt.runsettings diff --git a/WordPressPCL.Tests.Selfhosted/jwtauth.runsettings b/tests/WordPressPCL.Tests.Selfhosted/jwtauth.runsettings similarity index 100% rename from WordPressPCL.Tests.Selfhosted/jwtauth.runsettings rename to tests/WordPressPCL.Tests.Selfhosted/jwtauth.runsettings