Comments (2)
URB-31 POST `/reserve` : 新增預約資料
from api.reserve.utsa.
測試資料(測試前請先刪除資料庫):
新增預約
場地 2024-05-21T07:21 ~ 2024-05-22T08:19
物品 2024-04-21T07:21 ~ 2024-04-22T08:19
-> 預約成功
查詢 integral
場地 2024-05-21T06:00 ~ 07:00 -> 可借
場地 2024-05-21T07:00 ~ 08:00 -> 不可借
場地 2024-05-22T08:00 ~ 09:00 -> 不可借
場地 2024-05-22T09:00 ~ 10:00 -> 可借
物品 2024-04-21T06:00 ~ 07:00 -> 可借
物品 2024-04-21T07:00 ~ 08:00 -> 不可借
物品 2024-04-22T08:00 ~ 09:00 -> 不可借
物品 2024-04-22T09:00 ~ 10:00 -> 可借
新增預約
場地 2024-05-20T23:59 ~ 2024-03-21T07:00
物品 2024-04-20T23:59 ~ 2024-02-21T07:00
-> 預約成功
新增借用
場地 2024-05-21T07:00 ~ 09:00
物品 2024-04-21T07:00 ~ 09:00
-> 時段已被預約,預約失敗
新增借用
場地 2024-05-22T08:00 ~ 12:00
物品 2024-04-22T08:00 ~ 12:00
-> 時段已被預約,預約失敗
新增借用
場地 2024-05-22T09:00 ~ 21:00
物品 2024-04-22T09:00 ~ 21:00
-> 預約成功
新增借用
場地
- 2024-05-25T08:00 ~ 12:00
- 2024-05-25T10:00 ~ 14:00
物品
- 2024-04-25T08:00 ~ 12:00
- 2024-04-25T10:00 ~ 14:00
-> 時段重複,預約失敗
新增借用
場地 2024-02-25T08:00 ~ 17:00
物品 2024-02-25T08:00 ~ 17:00
-> 預約成功,已預約過去的時間
from api.reserve.utsa.
Related Issues (20)
- Patch_verify bug HOT 2
- DELETE /reserve DB key 名稱錯誤 HOT 1
- 限制日期範圍 HOT 1
- PUT /reserve 可以預約小數個物品 HOT 1
- PATCH /verify 存入 spaces_reserved_time / items_reserved_time 的 reservations 欄位型別應為 Array<ObjectId> HOT 1
- 查詢特定日期的預約紀錄 ID HOT 1
- GitHub 程式檢測 HOT 1
- API 在輸入的JSON缺少某些key時會crash HOT 1
- 預先檢測輸入欄位是否傳入 HOT 1
- Fix GET /reserve HOT 1
- GET item/space_available_time 需要限制查詢時間防止CPU使用過高 HOT 1
- refactor all HOT 1
- Space available time search error HOT 1
- Item available time search error HOT 1
- Email timezone error HOT 1
- email fail problem HOT 1
- 預約的時間因該要自動補成00分00秒 HOT 1
- 將所有輸入驗證移到utils HOT 1
- API 的 DB 操作改為 repository pattern HOT 1
- 放入docker後會有有時間問題 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.reserve.utsa.