Skip to content

New REST API Endpoints for the block editor #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 82 commits into
base: feature/helpers
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
04ec34f
Bump minimist and mkdirp
dependabot[bot] Mar 1, 2023
efb6236
Fix format
s3rgiosan Nov 16, 2024
3536dee
Add route abstract for extensibility
s3rgiosan Nov 16, 2024
9f3e714
Add relationships endpoint
s3rgiosan Nov 18, 2024
97d3c40
Bump the npm_and_yarn group with 10 updates
dependabot[bot] Dec 5, 2024
4b4f2b5
Fix $post variable override
s3rgiosan Dec 6, 2024
fe9c655
Code alignment with PostToPost
s3rgiosan Dec 6, 2024
c90f294
Use constants instead of outdated Plugin properties
s3rgiosan Dec 6, 2024
a6dfd2a
Add filter phpdoc
s3rgiosan Dec 6, 2024
b9c6f99
Expose post relationships as REST fields
s3rgiosan Dec 6, 2024
847d9ec
Add editorconfig file
s3rgiosan Feb 7, 2025
2f67d66
Update composer
s3rgiosan Feb 7, 2025
efc1b81
Add phpcs.xml file
s3rgiosan Feb 7, 2025
7a9ad5d
Update version
s3rgiosan Feb 7, 2025
36380e4
Small tweaks
s3rgiosan Feb 7, 2025
f613f60
Small tweaks
s3rgiosan Feb 7, 2025
d08cd90
Merge branch 'dependabot-68' into feature/apply-final-post-user-filte…
s3rgiosan Feb 7, 2025
77f23cd
Merge branch 'dependabot-70' into develop
s3rgiosan Feb 7, 2025
f64f8b5
Merge branch 'dependabot-71' into develop
s3rgiosan Feb 7, 2025
beb1364
Merge branch 'dependabot-72' into develop
s3rgiosan Feb 7, 2025
5489361
Merge branch 'dependabot-73' into develop
s3rgiosan Feb 7, 2025
ff32ba6
Merge branch 'dependabot-81' into develop
s3rgiosan Feb 7, 2025
14a42b5
Merge branch 'feature/apply-final-post-user-filters-on-search' into d…
s3rgiosan Feb 7, 2025
de97b15
Merge branch 'feature/helpers' into develop
s3rgiosan Feb 7, 2025
c97e0a8
Update assets
s3rgiosan Feb 7, 2025
36c44f1
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Feb 7, 2025
78dc227
Merge branch 'feature/update-6-7' into develop
s3rgiosan Feb 7, 2025
ad444e5
Merge branch 'develop' into feature/rest-api-endpoint
s3rgiosan Feb 8, 2025
76d55d8
Add REST API endpoints versioning
s3rgiosan Feb 8, 2025
a83104c
Add scaffold for new search REST API endpoint
s3rgiosan Feb 8, 2025
b71abb2
Update post relationships REST attribute
s3rgiosan Feb 8, 2025
b171cfd
Update phpdoc
s3rgiosan Feb 8, 2025
53c9fa3
Validate relationship name
s3rgiosan Feb 8, 2025
a25f595
Expose post relationships data in a REST endpoint
s3rgiosan Feb 10, 2025
0b0a092
Improve docblocks
s3rgiosan Feb 10, 2025
814f2e3
Improve dobblocks
s3rgiosan Feb 10, 2025
a69332b
Add optional post_type request parameter to filter relationships for …
s3rgiosan Feb 10, 2025
40fe3c2
Fix get_post_relationship_data to return all post and user relationsh…
s3rgiosan Feb 10, 2025
0d8b6bf
Return all relationships for a post and allow for reltype and post ty…
s3rgiosan Feb 10, 2025
f3c645b
Add route to return post related posts or users
s3rgiosan Feb 11, 2025
90acaf2
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Feb 11, 2025
d4f5934
Update filter usage
s3rgiosan Feb 11, 2025
b18795c
Move things around and organize by routes and fields
s3rgiosan Feb 14, 2025
02ab2f5
Add route to update related posts and users for a post
s3rgiosan Feb 15, 2025
677e913
Added documentation tweaks and decomposition
s3rgiosan Feb 15, 2025
5c06cec
Fix wrong function call
s3rgiosan Feb 15, 2025
85d5365
Add routes to add and delete individual memberships
s3rgiosan Feb 15, 2025
5b11764
Use relationship key instead of relationship name
s3rgiosan Feb 15, 2025
2d572f9
Merge branch '10up:develop' into feature/rest-api-endpoint
s3rgiosan Feb 15, 2025
ca9ee43
Merge branch 'master' into feature/rest-api-endpoint
s3rgiosan Feb 15, 2025
56e0752
Minor updates
s3rgiosan Feb 15, 2025
98ed767
Minor updates
s3rgiosan Feb 15, 2025
fd308ea
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Feb 17, 2025
6ffa138
Add support for context param
s3rgiosan Feb 17, 2025
750dfdf
Add context support for REST field
s3rgiosan Feb 17, 2025
1db09af
Remove post_type request param. Infer from the relationship to post t…
s3rgiosan Feb 17, 2025
91aef2f
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Feb 17, 2025
fa1b703
Add endpoint to search for posts or users
s3rgiosan Feb 18, 2025
d6ad7f7
Allow empty related_ids for updating posts and users
s3rgiosan Feb 18, 2025
74029d9
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Feb 18, 2025
f3d22c6
Return same format regardless of field used to query
s3rgiosan Feb 21, 2025
cae527e
Minor variable renaming for readability
s3rgiosan Feb 21, 2025
5ee0a19
Fix labels for from and to relationships
s3rgiosan Feb 21, 2025
306a06f
Fix post type used for from and to related posts queries
s3rgiosan Feb 21, 2025
1ed691f
Fix returned post type depending if it's a from or to relationship
s3rgiosan Feb 21, 2025
815e412
Fix check for post type in to relationships
s3rgiosan Feb 21, 2025
022b6eb
Fix check for other post type filter
s3rgiosan Feb 21, 2025
52d1bd1
Add enable ui flag for post to user relationships
s3rgiosan Feb 21, 2025
bd2f2ee
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Feb 21, 2025
1dc36e7
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Feb 21, 2025
eb762b1
Tag deprecations
s3rgiosan Feb 21, 2025
59268cd
Update docblock
s3rgiosan Feb 21, 2025
3bf31f1
Update docblock
s3rgiosan Feb 21, 2025
8188ebf
Remove unused variable
s3rgiosan Mar 14, 2025
744a992
Updates for the 10up Content Picker
s3rgiosan Mar 14, 2025
1da467f
Fix relationship return format for Content Picker
s3rgiosan Mar 14, 2025
15852ca
Fix post type for REST related entities queries
s3rgiosan Mar 14, 2025
dfcf7d7
Fix related entities queries
s3rgiosan Mar 14, 2025
fde2b8c
Fix save sort data
s3rgiosan Mar 14, 2025
ac252d3
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Mar 14, 2025
20ccd4c
Define plugin constants in plugin class for library usage
s3rgiosan Mar 18, 2025
27cb2bc
Use __DIR__
s3rgiosan Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{*.json,*.yml,.babelrc,.bowerrc,.browserslistrc,.postcssrc, .eslintrc, .stylelintrc}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ config.codekit

/assets/js/content-connect.js
/assets/js/content-connect.min.js

22,921 changes: 12,868 additions & 10,053 deletions assets/js/content-connect.js

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"composer/installers": "^1.2"
"php": ">=7.4",
"composer/installers": "^2.3"
},
"autoload": {
"psr-4": {
Expand All @@ -31,7 +33,14 @@
]
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"10up/wp_mock": "0.2.0"
"10up/phpcs-composer": "^3.0",
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99",
"phpunit/phpunit": "^12.0"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading