localstack-samples / localstack-samples/serverless-python-rest-api-with-dynamodb
Can't run all the different endpoints successfully
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 21
- 分支
- 9
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I was able to:
- list all the todo items
- create a todo item
However, I got 5xx errors when doing at least:
- update a todo item
- delete a todo item
- show a todo item (don't remember if I did or not)
I think the documentation might be old, as the curl commands don't work out-of-the-box after replacing the placeholder id with the actual id. So I used Postman instead, which included the application/json in the header and it worked for listing todos and creating todos.
It seems like the resources are provisioned correctly since todo items are stored and retrieved from dynamodb. However, the other ones wouldn't.
What could be the reason?
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,使用文件中記載的 curl 指令和 Postman 重現 update、delete 和 show todo 請求,並比較它們的 headers 和路徑參數。檢查 CRUD 端點的行為以及與 DynamoDB 的互動,以找出 5xx 回應的來源。當原因已記錄,且受影響的端點或 curl 範例能夠成功運作時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- api, backend, databases
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100