Keyword


Get Keyword List

url

https://api.pycon.shop/users/

method

GET

Data Params

Key required value
Authorization true Token

Success Response

[
    {
        "keyword": "SSD",
        "alarm": true,
        "update_link": null
    },
    {
        "keyword": "특가",
        "alarm": true,
        "update_link": null
    }
]

Error response

  • 토큰 누락
{
    "detail": "Authentication credentials were not provided."
}
  • 인증되지 않은 토큰
{
    "detail": "Invalid token."
}

Insert Keyword

url

https://api.pycon.shop/keywords/

method

POST

Data Params

key required type value
keyword true char 키워드
alarm false boolean 알람 여부
Authorization true token token

Success Response

{
    "keyword": "카카오",
    "alarm": false,
    "update_link": null
}

Error Response

  • 토큰 누락
{
    "detail": "Authentication credentials were not provided."
}
  • 인증되지 않은 토큰
{
    "detail": "Invalid token."
}
  • 키워드 누락
{
    "keyword": [
        "This field is required."
    ]
}

Keyword Update

url

https://api.pycon.shop/keywords/<pk>/

method

PATCH

Data Params

key required type value
keyword true char 키워드
alarm false boolean 알람 여부

Success Response

{
    "keyword": "네이버",
    "alarm": true,
    "update_link": null
}

Error Response

  • 인증되지 않은 토큰
{
    "detail": "Invalid token."
}

Keyword Delete

url

https://api.pycon.shop/keywords/<pk>/

method

DELETE

Error Response

  • 토큰 누락
{
    "detail": "Authentication credentials were not provided."
}
  • 인증되지 않은 토큰
{
    "detail": "Invalid token."
}

results matching ""

    No results matching ""