recipe

post recipe

POST https://muggerbar.ml/recipe

Headers

Name
Type
Description

Authentication

string

JWT

Request Body

Name
Type
Description

recipe_title

string

recipe_subtitle

string

recipe_photo

string

recipe_content

string

{ 
  data: { 
    recipe : { 
        "id" : 1, 
        "user_id" : 100,
        "recipe_title" : "kim", 
        "recipe_subtitle" : "coding", 
        "recipe_photo" : "http://abc.def", 
        "recipe_content" : "codestates is very hard", 
        "createdAt" : "2021-10-6T14:52:03.000Z",
        "updatedAt" : "2021-10-6T14:52:03.000Z"
      }
   },
  message: "ok"
}

get recipe

GET https://muggerbar.ml/recipe

Query Parameters

Name
Type
Description

user_id

string

for mypage (๋‚ด๊ฐ€ ์“ด ๊ฒŒ์‹œ๋ฌผ ๋ชฉ๋ก)

recipe_title

string

for main (์ œ๋ชฉ๋กœ ๊ฒ€์ƒ‰ํ•˜์—ฌ ํ•„ํ„ฐ๋ง)

delete recipe

DELETE https://muggerbar.ml/recipe/{:id}

ex) https://MuggerBar.ml/recipe/10

Path Parameters

Name
Type
Description

id

string

id of recipe

Headers

Name
Type
Description

Authentication

string

JWT

like recipe

POST https://muggerbar.ml/recipe/{:id}/like

Path Parameters

Name
Type
Description

id

string

id of recipe

Headers

Name
Type
Description

Authentication

string

JWT

Last updated

Was this helpful?