issues
search
swsnu
/
swppfall2019
31
stars
23
forks
source link
[HW3] Non-existing article and comment 관련 질문
#138
Open
cube-c
opened
4 years ago
cube-c
commented
4 years ago
HW3의 Readme.md에 따르면
For all requests about non-existing article and comment, response with 404 (and any information must not be modified).
이라고 되어 있습니다. 그렇다면 이 때
Article이 하나도 존재하는 상황에서 GET /api/article의 code는 404인가요, 아니면 200과 함께 빈 리스트를 가져와야 하는 것인가요, 아니면 204(No Content)인가요?
1과 유사하게, 만약 article(id=1)이 존재하지만 comment는 존재하지 않는 형태라면 GET /api/article/1/comment의 code는 404, 200, 204 중에 무엇인가요?
감사합니다.
ktaebum
commented
4 years ago
하나도 존재하지 않는 상황이죠? 이 경우에는 빈 리스트가 올건데 status는 200입니다
마찬가지로 200과 빈 리스트입니다
HW3의 Readme.md에 따르면
이라고 되어 있습니다. 그렇다면 이 때
감사합니다.