자몽 웹사이트 API
  • Welcome!
  • Reference
    • API Reference
      • User
      • Volunteer
      • Post
      • Application
Powered by GitBook
On this page
  • POST
  • 신청서 등록
  • GET
  • 전체 신청서 조회
  • 신청서 조회
  • PATCH
  • 신청서 정보 변경
  • DELETE
  • 신청서 삭제
  1. Reference
  2. API Reference

Application

신청서 관련 API 요청

POST

신청서 등록

POST URL/v1/applications

새로운 신청서 등록합니다.

Request Body

Name
Type
Description

question1*

string

질문 1

question3*

질문 3

question4*

질문 4

question5*

String

질문 5

question6*

String

질문 6

question2*

String

질문 2

question7*

String

질문 7

file*

String

첨부파일

{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}

GET

전체 신청서 조회

GET URL/v1/applications

데이터 베이스에있는 신청서들을 페이지에 맞게 조회합니다. page_number 파라미터값을 입력하지 않는다면, 자동으로 1부터 10까지의 신청서 조회합니다.

Request Body

Name
Type
Description

page_number

String

페이지 넘버 (default = 1)

{
    // Response
}
{
    // Response
}

PageNo는 1이면 1 -10, 2이면 11-20과 같이 페이지에 맞는 봉사활동을 10개씩 가져옵니다.

신청서 조회

GET URL/v1/applications/{id}

id에 해당하는 게시물을 조회합니다.

{
    // Response
}
{
    // Response
}

PATCH

신청서 정보 변경

PATCH URL/v1/applications/{id}

신청서의 정보를 변합니다.

Request Body

Name
Type
Description

question1*

string

질문 1

question3*

질문 3

question4*

질문 4

question5*

String

질문 5

question6*

String

질문 6

question2*

String

질문 2

question7*

String

질문 7

file*

String

첨부파일

{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}

DELETE

DELETE 요청은 신청서 작성자 혹은 운영진 등급의 사용자만이 삭제할 수 있습니다.

신청서 삭제

DELETE URL/v1/applications/{id}

id에 해당하는 신청서의 정보를 데이터베이스에서 삭제합니다.

{
    // Response
}
{
    // Response
}
PreviousPost

Last updated 3 years ago