Item

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

Add Item

POST http://15.165.197.67:5000/item

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

Headers

NameTypeDescription

token

string

Authentication token to track down who is emptying our stocks.

Request Body

NameTypeDescription

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

NameTypeDescription

item_id

integer

Headers

NameTypeDescription

token

string

Request Body

NameTypeDescription

season

array

image

string

type

string

category

string

buydate

string

price

number

brand

string

storage

string

{ "message": "Successful update item data with season" }
or
{ "message": "Successful update item data" }

Delete Item

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

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

Path Parameters

NameTypeDescription

item_id

integer

Headers

NameTypeDescription

token

string

{ "message": "Successful" }

Last updated