List
저장한 별점 리스트를 반환하는 API
Request (요청)
URL
https://soobook.devlim.net/api/book/star/
Method
GET
Params
URL Params
None
Data Params
None
Header
name | value | type |
---|---|---|
Authorization | Token <발급받은 토큰 key> | string |
Response (응답)
Success Response
- Code: 200
- Content :
[
{
"star_id": 11,
"content": 3.5,
"updated_date": "2017-04-18T09:11:30.506285Z",
"book_id": 2008
},
{ ... },
{ ... },
{ ... },
{ ... },
{ ... },
{ ... },
{ ... },
{ ... },
{ ... },
{ ... },
{ ... }
]
- results 배열안에 12개의 딕셔너리를 반환합니다.
Error Response
- Code: 401
- Reason: 헤더에
Authorization: Token
이 없는 경우 - Content
{
"detail": "Authentication credentials were not provided."
}
- Code: 401
- Reason: 유효하지 않은 토큰 키를 입력하는 경우
- Content:
{
"detail": "Invalid token."
}