Access featured image URL based on media ID?
Access featured image URL based on media ID?
Access featured image URL based on media ID?
Okay, with some great examples from : https://restfulapi.net/resource-naming/ and http://www.restapitutorial.com/lessons/restfulresourcenaming.html I’m going to answer my own question. ESSENTIALLY, for my use case, I will NOT use PUT but rely on POST and DELETE to collection and singleton endpoints. Notes: I’ve omitted the wp-json/my-site-namespace/v1 prepending examples for clarity I’ve used query strings in POST requests but … Read more
The only way you can do this my friend is by using the REST API. In you ionic app you will make a post request to the api. You will need to go through Oauth for authentication and so forth, but that’s what the REST api is made for.
You can let the client to upload csv file. After upload you can read csv file with a php function (maybe fgetcsv) and put columns and rows to table (maybe with dataTables jQuery plugin). If you let the user to edit table, you can use these information for create a form After that you can … Read more
Why wp_set_password not working within a api endpoint?
WordPress PHP error getting posts from another wordpress blog
wp rest api (v2) filter not working (404 error – rest_no_route)
Accessing secure endpoint with X-WP-Nonce?
It is a bad API design to return different structure based on “external data” not passed in the request itself. Either construct different API for logged in users and use a different end point for it, or return a “filler” when the user do not have permission to access the data. (and it is always … Read more
Showing added mime types in REST media response