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

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

Ouverte
#161 27 commentaires 0 réactions 1 personne assignée Réclamée par @decon-harsh Voir sur GitHub
Category: Coding Type: Enhancement
Langage dominant
Python
Étoiles
24
Forks
80
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

## 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.