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

[feat] 새로운 숙소 등록 #3

Open
Gyeongtaek12345 opened this issue Jun 4, 2024 · 0 comments
Open

[feat] 새로운 숙소 등록 #3

Gyeongtaek12345 opened this issue Jun 4, 2024 · 0 comments
Labels
feature New feature add

Comments

@Gyeongtaek12345
Copy link
Collaborator

Gyeongtaek12345 commented Jun 4, 2024

  • 유저는 새로운 숙소를 등록할 수 있습니다.
  • 숙소를 등록할 이러한 값들을 추가할 수 있습니다.
    (제목, 호스트, 설명글, 가격, 할인, 각각의 최대 인원수, 주소, 사진들, 옵션들)
  • 숙소를 등록했을 경우 유저의 역할이 호스트로 변경됩니다.

숙소 등록

  • URL: /api/accommodations

  • Method: POST

  • Request Body:

    {
      "title": "string",
      "content": "text",
      "price": "bigint",
      "discount": "integer",
      "max_adults": "integer",
      "max_childs": "integer",
      "max_infants": "integer",
      "max_pets": "integer",
      "address": "string",
      "latitude": "double",
      "longitude": "double",
      "images": [{"image_path" : "string"}],
      "user_id" : "string"
      "wireless_internet" : "bool"
      "TV" : "bool"
      "kitchen" : "bool"
      "washing_machine" : "bool"
      "free_parking" : "bool"
      "paid_parking" : "bool"
      "air_conditioning" : "bool"
      "dedicated_workspace" : "bool"
      "beds" : "bool"
      "bathrooms" : "bool"
    }
  • Responses:

    • 200 Created: 성공적으로 등록됨
    • 400 Bad Request: 입력 값이 유효하지 않음
@seondays seondays added the feature New feature add label Jun 4, 2024
@tmdgus717 tmdgus717 changed the title 새로운 숙소 등록 [feat] 새로운 숙소 등록 Jun 10, 2024
seondays added a commit that referenced this issue Jun 10, 2024
seondays added a commit that referenced this issue Jun 10, 2024
seondays added a commit that referenced this issue Jun 10, 2024
seondays added a commit that referenced this issue Jun 11, 2024
seondays added a commit that referenced this issue Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature add
Projects
Status: No status
Development

No branches or pull requests

2 participants