• Feature: Create and update recipes via REST API
    is this documented any where? in not, how to do this?

Viewing 1 replies (of 1 total)
  • Plugin Author Brecht

    (@brechtvds)

    We just updated the documentation over here:
    https://bootstrapped.ventures/wp-recipe-maker/wordpress-rest-api/

    Basically you’d send a POST request to the /wprm_recipe/ endpoint with a recipe array as JSON body:

    {
      "recipe": {
            "name": "My New REST API Recipe",
            "summary": "Delicious and not created in a traditional way."
      }
    }

    The recipe array should have the same structure as what you’re getting when doing a GET request to /wprm_recipe/<id>

    Updating a recipe would be similar but then doing a PUT request to the correct /wprm_recipe/<id> endpoint.

    Brecht

Viewing 1 replies (of 1 total)
  • The topic ‘Create and update recipes via REST API’ is closed to new replies.