Skip to content

JSON formats for adding recipe via API #2264

Closed Answered by michael-genson
jecorn asked this question in Q&A
Discussion options

You must be logged in to vote

Be sure to check out the API docs at https://your-url.com/docs (if you're using the omni image this is currently bugged, you need to navigate to your backend url which is https://your-ip-address:9000/docs)

When you create the recipe, you only supply the name. To edit everything else you do a PUT (replace all) or PATCH (replace some) request. The reason the POST returns just the slug (as a raw string) is because you need it for the subsequent update request.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jecorn
Comment options

@michael-genson
Comment options

@jecorn
Comment options

@mrfenyx
Comment options

Answer selected by jecorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants