swsnu / swppfall2018

22 stars 21 forks source link

HW3 Django 질문 #129

Open leesoojeong opened 5 years ago

leesoojeong commented 5 years ago
  1. README에 GET api/article Response with a JSON having a list of dictionaries for each article's title, content, and author. The value of the author must be the id of the author but not her username. 라고 나와있는데, list of dictionaries면 [{'title': '', 'content': '', 'author': ''}, {'title': '', 'content': '', 'author': ''}] 이런식으로 response가 나오면 되는 것일까요?

  2. json을 Response로 반환하는 api들의 경우 (ex. get api/article) status는 200이면 될까요?

  3. signin하고 나서 signout하지 않은 상태로 또다시 signin을 요청하는 상황도 고려해야 할까요?

  4. 현재 skeleton/blog 안에 있는 test 파이썬 파일이 tests.py로 되어있는데, README의 tips에 For more detail, see test_csrf of the blog/test.py file in the skeleton code. 라고 되어있습니다. tests.py의 이름을 굳이 test.py로 바꾸지 않고 계속 진행해도 될까요?

sanha commented 5 years ago
  1. 네, 맞습니다.

  2. 네.

  3. 아니요, 자유롭게 구현하시면 됩니다.

  4. 아니요, blog/tests.py로 README를 수정하겠습니다. tests.py로 두어주세요.