anitab-org / anitab-org/bridge-in-tech-backend

Feat: create POST /organizations /{organization_id} /programs/{program_id} /send_request

未关闭
#161 27 条评论 0 个 reaction 已指派 1 人 已被 @decon-harsh 认领 在 GitHub 查看
Category: Coding Type: Enhancement
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。