Fix api contract for Post /requests endpoint of OOO requests#223
Conversation
Summary by CodeRabbit
WalkthroughThe pull request updates the API documentation in Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant S as Server API
C->>S: POST /requests (with "reason")
alt Valid Request
S-->>C: 200 Success (includes comment, status, lastModifiedBy)
else Duplicate Request
S-->>C: 409 Conflict Response
else Forbidden Action (e.g., already OOO)
S-->>C: 403 Forbidden Response
else User Status Not Found
S-->>C: 404 Not Found Response
end
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
65f716a to
988ab2c
Compare
|
Hi @surajmaity1, can you provide a screenshot of the request and its response (either from rough implementation or design doc) to verify the structure |
Date: 12 Mar, 2025
Developer Name: Suraj Maity ( @surajmaity1 )
Issue Ticket Number
Description
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Screenshot 1
Test Coverage
Screenshot 1
Additional Notes