anitab-org / anitab-org/bridge-in-tech-backend
Feat: create POST /organizations /{organization_id} /programs/{program_id} /send_request
- 主要语言
- Python
- 星标
- 24
- 派生
- 80
- PR 合并指标
- 30 天内没有已合并 PR
描述
## Description
As a developer,
I need add POST /organizations /{organization_id} /programs/{program_id} /send_request API endpoint,
so that a mentor/mentee can apply to a program.
## Mocks
NA
## Acceptance Criteria
### Update [Required]
- [ ] add POST /organizations /{organization_id} /programs/{program_id} /send_request API endpoint
- [ ] this request must create 2 db instances, one for `MentorshipRelationModel` under public (MS) schema and the other is the `MentorshipRelationExtensionModel` under bitschema, each with its relevant information.
- [ ] include all possible http responses:
* Created (201): when the process completed successfully
* Bad Request (400): when the payload contains invalid fields
* Unauthorized (401): when the token is missing/invalid/expired
* Not Found (404): when the organization and/or program don't exist
* Conflict (409): when the user has already made the request to that program
* Internal server error (500): when either MS or BIT server is facing internal server error
### Enhancement to Update [Optional]
NA
## Definition of Done
- [ ] All of the required items are completed.
- [ ] Approval by 1 mentor.
## Estimation
2-3 days
贡献指南
评估
这个 Issue 还没有评估数据。