• Resolved mrblab24

    (@mrblab24)


    Hi there, I am working with an app which is based on a wordpress site with the wp recipe maker plugin. My client is an elite member of this plugin.

    The problem is you are providing only one rest api endpoints.

    Here it is: https://demo.wprecipemaker.com/wp-json/wp/v2/wprm_recipe/41

    With that how can I categories the data? This api doesn’t provide any category and comments information. Also the recipe id doesn’t match with post id.

    With this single endpoint, I can only list the recipes. I can’t categories the data.

    Also your rating api is not working. https://bootstrapped.ventures/wp-json/wp-recipe-maker/v1/rating/123

    I tried on my site too, this is not working.

    I need to know about how can I categories the data, Is there any other endpoints?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brecht

    (@brechtvds)

    I just answered your email to our support address and will copy the same answer here. Let’s continue the conversation via email as it’s easier to handle support there.
    ?
    ?We make use of the regular WordPress REST API. Recipes are a custom post type with their own Recipe Taxonomies so they can be accessed through the endpoints that WordPress provides.
    ?
    ?This gives you access to the recipe fields, but the idea of WP Recipe Maker is that you add recipes as part of a regular post. So I’d use the endpoints to get a list of those posts (and their categories) and then check what recipe ID is inside.
    ?
    ?The rating endpoint should work fine to access individual ratings. Make sure the ID is correct and that you are authenticated. 123 is just an example.

    Thread Starter mrblab24

    (@mrblab24)

    Hi there, I can’t find any recipe id from a post with wp rest API and can’t find the post id from your custom endpoints.
    https://metukimil.co.il/wp-json/wp/v2/posts/15681

    You can check this URL and let me know where is the recipe id.

    Thanks

    Plugin Author Brecht

    (@brechtvds)

    The ID of the recipe in that post is 799687, which you can get from the wprm-recipe-container class which has a data-recipe-id.

    You can also get it programmatically like this: https://help.bootstrapped.ventures/article/110-access-recipes-in-a-post-via-code

    Thread Starter mrblab24

    (@mrblab24)

    Hi there, The link you are sharing for getting the recipes in a post via code is not showing where to put them or use them. I am not an php developer. So, I don’t know where to put the codes and how to use them. Can you please help me with that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems with REST API’ is closed to new replies.