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

DELETE /reserve/{reservation_id} : 刪除預約資料 #25

Closed
Chun-Cheng opened this issue Feb 28, 2024 — with Linear · 0 comments · Fixed by #40
Closed

DELETE /reserve/{reservation_id} : 刪除預約資料 #25

Chun-Cheng opened this issue Feb 28, 2024 — with Linear · 0 comments · Fixed by #40
Assignees
Labels

Comments

Copy link
Contributor

Chun-Cheng commented Feb 28, 2024

輸入與輸出

  • parameters
    • reservation_id (path)
      預約紀錄 ID
      string, required
      format: Object ID /^[a-fA-F0-9]{24}$/
      example: "652038af1b2271aa002c0a09"
  • response
    • status: 200 OK
      content: application/json

      If the server found the reservation data and delete it, the following content will be returned:

      {
        "code": "R_SUCCESS",
        "message": "Delete success!"
      }

      If the reservation data not exist, the following content will be returned:

      {
        "code": "R_ID_NOT_FOUND",
        "message": "Reservation ID not found"
      }

檔案

  • /server/routes/reserve/DELETE_reservation.js

資料庫 collection

  • reservations
  • items_reserved_time
  • spaces_reserved_time
@Chun-Cheng Chun-Cheng added the Feature label Feb 28, 2024 — with Linear
@Chun-Cheng Chun-Cheng self-assigned this Feb 28, 2024
@Chun-Cheng Chun-Cheng linked a pull request May 3, 2024 that will close this issue
@Chun-Cheng Chun-Cheng changed the title 刪除預約紀錄 DELETE /reserve/{reservation_id} : 刪除預約資料 May 3, 2024
@Chun-Cheng Chun-Cheng assigned Barney9211 and unassigned Chun-Cheng May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants