Skip to content

Commit d2a440f

Browse files
committed
The WordPress API Client for Java
1 parent 9a6d4e3 commit d2a440f

File tree

176 files changed

+91462
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+91462
-2
lines changed

.gitignore

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
22+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23+
hs_err_pid*
24+
replay_pid*
25+
26+
# Maven
27+
target/
28+
pom.xml.tag
29+
pom.xml.releaseBackup
30+
pom.xml.versionsBackup
31+
pom.xml.next
32+
release.properties
33+
dependency-reduced-pom.xml
34+
buildNumber.properties
35+
.mvn/timing.properties
36+
.mvn/wrapper/maven-wrapper.jar
37+
38+
# IntelliJ IDEA
39+
.idea/
40+
*.iws
41+
*.iml
42+
*.ipr
43+
44+
# Eclipse
45+
.classpath
46+
.project
47+
.settings/
48+
49+
# VS Code
50+
.vscode/
51+
52+
# Mac
53+
.DS_Store
54+
55+
# Windows
56+
Thumbs.db
57+
ehthumbs.db
58+
Desktop.ini
59+
60+
# GPG
61+
*.asc
62+
*.gpg
63+
private.key
64+
65+
# Eclipse
66+
.classpath
67+
.project
68+
.settings/
69+
.factorypath
70+
bin/
71+
.metadata/
72+
*.launch
73+
.apt_generated
74+
.classpath
75+
.factorypath
76+
.project
77+
.settings
78+
.springBeans
79+
.sts4-cache
80+
81+
# VS Code
82+
.vscode/
83+
*.code-workspace
84+
85+
# Mac OS
86+
.DS_Store
87+
88+
# Windows
89+
Thumbs.db
90+
ehthumbs.db
91+
Desktop.ini
92+
93+
# Logs
94+
*.log
95+
logs/

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.0.0] - 2026-04-02
9+
10+
### Added
11+
12+
- Initial release: Java client for WordPress **REST API** (`wp/v2`), generated from the [OpenAPI specification](https://github.com/wtx-labs/wordpress-api-openapi-specification) (OkHttp + Gson).
13+
- Facade `WordPressApiClient` with optional HTTP body logging (`WordPressApiClient(true)`).
14+
- `WordPressApiClientUsageDemo` listing posts via `PostsApi`.
15+
- API facades for core resources, including: `PostsApi`, `PagesApi`, `MediaApi`, `CommentsApi`, `UsersApi`, `CategoriesApi`, `TagsApi`, `TaxonomiesApi`, `PostTypesApi`, `PostStatusesApi`, `SettingsApi`, `ThemesApi`, `PluginsApi`, `MenusApi`, `MenuItemsApi`, `MenuLocationsApi`, `NavigationApi`, `TemplatesApi`, `TemplatePartsApi`, `BlocksApi`, `BlockTypesApi`, `BlockPatternsApi`, `BlockDirectoryApi`, `PatternDirectoryApi`, `PatternCategoriesApi`, `FontFamiliesApi`, `FontCollectionsApi`, `SearchApi`, `SidebarsApi`, `WidgetsApi`, `WidgetTypesApi`, and `OtherApi`.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 🚀 WTX Labs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)