Comments (3)
Perhaps the entire set of REST API schema files need to be generated from OPTIONS requests to the actual endpoints, and this library provides transformation rules on a per-endpoint basis for adjustments.
from wp-json-schemas.
For naming conventions, the HTTP verbs can't be used because POST can be used for both creating and updating.
- Create: POST
- Read: GET
- Update: POST, PUT, PATCH
- Delete: DELETE
from wp-json-schemas.
Actually that might not be true, because to create an entity you POST to the collection endpoint and to update an entity you POST to the single item endpoint, and these have different schemas (although currently the collection schema is just an array of the single schemas).
from wp-json-schemas.
Related Issues (20)
- Optional properties in object raise compile error TS2411 HOT 8
- Fix the deployment action
- Add definition for enveloped REST API responses HOT 1
- Check the REST API schemas when the `edit` context is used
- Add definition for WP_Block
- Add a scheduled workflow to run tests against nightly
- Add definition for REST API root
- Add definition for REST API batch requests
- Add definition for REST API oembed requests
- Add definition for REST API site health requests
- Add a test for identifying new REST API routes HOT 1
- Add definition for REST API menus HOT 1
- Namespaced Schemas per Context HOT 3
- Version numbering strategy
- `mime_type` / `media_type` incorrect/missing for `WP_REST_API_Attachment` HOT 2
- Add a test for `WP_Taxonomy_Labels` and `WP_Post_Type_Labels`
- Add a test for `WP_Http_Status_Code`
- Update `WP_Post_Type_Name` and `WP_Taxonomy_Name`
- Add a test for the REST API revisions schema HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-json-schemas.