Answer

Answer과 관련된 API 모음입니다.

  • Answer Create
  • Answer List
  • Answer List - Main Feed
  • Answer Detail
  • Answer Destroy
  • Answer Update

Common Header

Key Value
Authorization Token(로그인 성공했을 때 받은 Token key값)

모든 페이지에는 Token 형태의 Header가 전달이 되어야 작업을 수행할 수 있습니다.

Token이 존재하지 않을 경우 다음 에러가 반환됩니다.

Unauthorized Error

HTTP Status Code

401

{
    "detail": "자격 인증데이터(authentication credentials)가 제공되지 않았습니다."
}

Quill JS Content

.getcontent()를 해서 받은 QuillJS Content의 형태는 다음과 같습니다.

{"ops":[
    {"insert":"The itertools is a very versatile set of tools for creating iterators. You can "},
    {"attributes":{"bold":true},"insert":"use"},
    {"insert":" them to create your own iterators all by themselves or in \
     combination with each other. \n\nThe Python documentation has a lot \
     of great examples that you can study to give you ideas of what can be done with this "},
    {"attributes":{"italic":true},"insert":"valuable library"},
    {"insert":".\n\n하나"},
    {"attributes":{"list":"bullet"},"insert":"\n"},
    {"insert":"둘"},
    {"attributes":{"list":"bullet"},"insert":"\n"},
    {"insert":"셋"},
    {"attributes":{"list":"bullet"},"insert":"\n"},
    {"insert":"\n이런 Bullet 포인트도 가능하고, {}\n하나"},
    {"attributes":{"list":"ordered"},"insert":"\n"},
    {"insert":"둘 "},
    {"attributes":{"list":"ordered"},"insert":"\n"},
    {"insert":"셋"},{"attributes":{"list":"ordered"},"insert":"\n"},
    {"insert":"\n과 같은 numbering도 가능합니다. \n\n"}
    ]
}

results matching ""

    No results matching ""