Build REST endpoint to receive data #3

Closed
opened 2020-02-17 19:11:31 +00:00 by ardouglass · 0 comments
ardouglass commented 2020-02-17 19:11:31 +00:00 (Migrated from github.com)

https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/

  • Accepts post request at /wp-json/address-mapper/v1/points in the structure below:
  • Checks user has permission to edit posts
  • Puts data into database
[
  {
    "id": "d131dd02c5e6eec4",
    "lat": 0.00,
    "lng": 0.00,
    "data": {...}
  }
]
https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/ - [x] Accepts post request at `/wp-json/address-mapper/v1/points` in the structure below: - [x] Checks user has permission to edit posts - [x] Puts data into database ```js [ { "id": "d131dd02c5e6eec4", "lat": 0.00, "lng": 0.00, "data": {...} } ] ```
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ardouglass/address-mapper-wp#3
No description provided.