Task #804
openConfirm lại api của rakuichi
0%
Description
・Create Place、Update Place
こちらは管理システム側の修正をしましたので、再度、ご確認ください。
-> cái này jp sửa rồi, call lại thử đc chưa
・Update Place Calendar
パスパラメータの場所IDが管理システム用ではないので不正動作になっていそうです。
オーナーシステム側で管理システム用に変換できるか水曜に確認させてください。
※API仕様では、管理システムのリソースへのリクエストなので管理側のIDとしていますが、オーナーシステム側で管理システムのIDを意識させるのも微妙・・・ どちらのIDにしても微妙なので決めの問題になると思います。
-> cái này để bàn lại
・Create order、Update order
ユニットテストで成功していて原因不明です。
ログの増強をしたので、お手すきの際、再度、リクエストをお願いします。
リクエストの日時も教えてもらえると助かります。
-> cái này thì e request lại, rồi báo thời gian request để jp check log
Updated by Nghia Nguyen about 2 months ago
- API Create/Update Place
API Create Place OK, đã call đc và có trả về placeId
API Update Place còn bị lỗi, dùng placeId vừa được tạo để call API Update [PUT] https://develop-owner-admin.rakuichi-space.com/api/v1/facility/place/11 nhưng bị lỗi. Lỗi xảy ra 2 trường hợp:
-
Trường hợp payload update có field placeId (giống tài liệu):
{
"placeId": 11,
"facilityId": 10,
...
}
=> Bị lỗi 500 Internal Server Error. Lỗi trả về là HTML của laravel, chỉ ghi Server Error -
Trường hợp payload update không có field placeId, placeId đã được ghi trên route path
{
"facilityId": 10,
...
}
=> Trả về 302 Found, Redirecting to https://develop-owner-admin.rakuichi-space.com
Updated by Nghia Nguyen about 2 months ago
- API Create/Update Order
- API Create Order ko hoạt động
E dùng placeId vừa tạo ở trên để call API này ko đc, thử dùng placeId trong hệ thống cũng ko đc.
[POST] https://develop-owner-admin.rakuichi-space.com/api/v1/order
Payload:
{
"orderId": 10,
"facilityId": 10,
"placeId": 11,
"startDate": "2025-07-11",
"endDate": "2025-07-15",
"ownerId": 1,
"orderStatus": 1,
"commodity": "au",
"commodityDetail": "スマホの新規契約申込を受付",
"shopName": "XX店",
"shopTel": "000-000-0000",
"staffName": "相沢、池野",
"staffNum": 2,
"managerName": "須藤",
"managerTel": "000-000-0000",
"handout": "パンフレット",
"carryInTime": "08:00",
"carryOutTime": "19:00",
"carry": 1,
"carryRemark": "わ123-456",
"power": 1,
"powerDetail": "パソコン3台を利用する",
"desk": 1,
"deskDetail": "机3台を利用する",
"chair": 1,
"chairDetail": "椅子3脚を利用する",
"remark": "早めに利用可否の回答が欲しい"
}
=> Trả về lỗi 500 Intarnal Server Error. Ko ghi rõ message.
- API Update Order:
https://develop-owner-admin.rakuichi-space.com/api/v1/order/1
Payload:
{
{
"orderId": 1,
"orderStatus": 1
}
Call trả về status 200, ko có message.
Nhưng khi get order có id là 1, thì orderStatus chưa đúng:
{
"orderId": 1,
"facilityId": null,
"placeId": null,
"startDate": "2025-12-17",
"endDate": "2025-12-18",
"ownerId": null,
"commodity": "その他鑑定(金銭授受なし)",
"commodityDetail": "テスト商材",
"shopName": "テスト店舗",
"shopTel": null,
"staffName": null,
"staffNum": 3,
"managerName": "テスト責任者",
"managerTel": "000-000-0001",
"handout": null,
"carryInTime": "09:00",
"carryOutTime": "19:00",
"carry": 1,
"carryRemark": null,
"power": 1,
"powerDetail": null,
"desk": 2,
"deskDetail": null,
"chair": 2,
"chairDetail": null,
"remark": null,
"orderStatus": 5,
"place": null,
"facilityParentName": "テスト施設1",
"ownerOrganizationName": "オーナー企業1"
}
=> orderStatus là 5 => sai
Updated by Nghia Nguyen 10 days ago
- Assignee changed from Nghia Nguyen to dang dao