Build REST endpoints to store and retrieve the Google Maps API key #8

Closed
opened 2020-02-25 19:12:28 +00:00 by ardouglass · 0 comments
ardouglass commented 2020-02-25 19:12:28 +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/settings/google-maps-api-key in the form below
  • Accepts get request at /wp-json/address-mapper/v1/settings/google-maps-api-key that return the value in the form below

{"google-maps-api-key": key}

https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/ - [x] Accepts post request at `/wp-json/address-mapper/v1/settings/google-maps-api-key` in the form below - [x] Accepts get request at `/wp-json/address-mapper/v1/settings/google-maps-api-key` that return the value in the form below `{"google-maps-api-key": key}`
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#8
No description provided.