Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

문서 내용 작성 API SPEC #99

Open
pyg410 opened this issue Oct 13, 2023 · 0 comments
Open

문서 내용 작성 API SPEC #99

pyg410 opened this issue Oct 13, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@pyg410
Copy link
Collaborator

pyg410 commented Oct 13, 2023

문서 내용 수정 API SPEC

  • 문서의 기본정보가 아닌 내용을 작성 또는 수정한다.

Request

HTTP Method URI
PUT /docs/{docs_id}
{
	"docsContent": "문서내용"
}

Response

Success

  • Status: 200 OK
  • Header
Name Value Description
content-type application/json  JSON

400 BAD_REQUEST

{
	"success" : "false",
	"response" : null,
        "error": null
}

401 UNAUTHORIZED

{
	"success" : "false",
	"response" : null,
	"error": {
	    "message": "인증되지 않은 토큰입니다.",
	    "code": 401
	}
}

403 FORBIDDEN

{
	"success" : false,
	"response" : null,
	"error": {
		"message" : "회원가입 후 15일이 지난 회원만 요청이 가능합니다.",
	        "status" : 403
	}
}
@pyg410 pyg410 added the documentation Improvements or additions to documentation label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant