Build REST endpoint to prevent duplicate data #4

Closed
opened 2020-02-18 19:53:25 +00:00 by ardouglass · 0 comments
ardouglass commented 2020-02-18 19:53:25 +00:00 (Migrated from github.com)

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

  • Accepts get request at /wp-json/address-mapper/v1/points/ids
  • Checks user has permission to edit posts
  • Returns an array of the ids (which should be a hash of the content of the CSV row)
[
  "ac23b123fa",
  "b2f3bac2fc",
  ...
]
https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/ - [x] Accepts get request at `/wp-json/address-mapper/v1/points/ids` - [x] Checks user has permission to edit posts - [x] Returns an array of the ids (which should be a hash of the content of the CSV row) ```js [ "ac23b123fa", "b2f3bac2fc", ... ] ```
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#4
No description provided.