{"openapi":"3.1.0","info":{"title":"Plum Recipes service","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"version":"v0.0.1"},"externalDocs":{"description":"README","url":"https://github.com/hmcts/cnp-plum-recipes-service"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"paths":{"/recipes":{"get":{"tags":["recipe-controller"],"summary":"Find all your drafts","description":"Returns an empty array when no drafts were found","operationId":"readAll","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeList"}}}}}}},"/recipes/{id}":{"get":{"tags":["recipe-controller"],"summary":"Find recipe by ID","operationId":"read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipe"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipe"}}}}}}}},"components":{"schemas":{"Recipe":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"ingredients":{"type":"string"},"method":{"type":"string"}}},"RecipeList":{"type":"object","properties":{"recipes":{"type":"array","items":{"$ref":"#/components/schemas/Recipe"}}}}}}}
