Item

유저의 아이템 등록 , 수정, 삭제에 관한 API 정보를 제공합니다.

Add Item

POST http://15.165.197.67:5000/item

이 엔드포인트에서는 아이템을 등록합니다.

Headers

Name
Type
Description

token

string

Authentication token to track down who is emptying our stocks.

Request Body

Name
Type
Description

season

array

ex) season : [sp, sm, f, w ]

image

string

type

string

category

string

buydate

string

입력 데이터가 없을 시 null

price

number

입력데이터가 없을 시 null

brand

string

입력 데이터가 없을 시 null

storage

string

입력 데이터가 없을 시 null

{    "message": "Successful",    "item_id": 44 }

Update Item

PATCH http://15.165.197.67:5000/item/:item_id

이 엔드포인트에서는 아이템을 수정합니다. 변경하고자 하는 데이터 정보가 필요합니다.

Path Parameters

Name
Type
Description

item_id

integer

Headers

Name
Type
Description

token

string

Request Body

Name
Type
Description

season

array

image

string

type

string

category

string

buydate

string

price

number

brand

string

storage

string

Delete Item

DELETE http://15.165.197.67:5000/item/:item_id

이 엔드포인트에서는 아이템을 삭제합니다.

Path Parameters

Name
Type
Description

item_id

integer

Headers

Name
Type
Description

token

string

Last updated

Was this helpful?