... | ... | @@ -68,5 +68,98 @@ O padrão arquitetural *Layers* (Camadas) foi adotado por cada microsserviço co |
|
|
|
|
|
Cada microsserviço oferece todas as funcionalidades CRUD (*Create, Read, Update, Delete*) que são expostas via uma interface de aplicação (API) no formato REST (portanto, uma API RESTful). Para isso, foram definidas as rotas que serão expostas para que o cliente consiga realizar requisições, listadas abaixo de acordo com o microsserviço ao qual se referentem.
|
|
|
|
|
|
**<< TBD >>**
|
|
|
#### Volunteer
|
|
|
|
|
|
**Login**
|
|
|
|
|
|
POST /volunteer/auth/login _US02_
|
|
|
|
|
|
|
|
|
**SignUP**
|
|
|
|
|
|
POST /volunteer/auth/signup _US02, US04_
|
|
|
|
|
|
|
|
|
**Account Management**
|
|
|
|
|
|
PUT /volunteer/auth/mgmt?email=x _US02_
|
|
|
|
|
|
DELETE /volunteer/auth/mgmt?email=x _US02_
|
|
|
|
|
|
|
|
|
**Profile**
|
|
|
|
|
|
GET /volunteer?email=x _US16, US09_
|
|
|
|
|
|
GET /volunteers/{id} _US16, US09_
|
|
|
|
|
|
POST /volunteers _US04_
|
|
|
|
|
|
PUT /volunteers/{id} _US04_
|
|
|
|
|
|
DELETE /volunteers/{id} _US04_
|
|
|
|
|
|
|
|
|
**Interests**
|
|
|
|
|
|
PATCH /volunteer/interests/{id} _US08_
|
|
|
|
|
|
DELETE /volunteer/interests/{id} _US08_
|
|
|
|
|
|
|
|
|
#### Opportunity
|
|
|
|
|
|
**List**
|
|
|
|
|
|
GET /opportunities?city=x&type=y _US05, US11, US12_
|
|
|
|
|
|
**Management**
|
|
|
|
|
|
GET /opportunity/{id} _US10, US18_
|
|
|
|
|
|
POST /opportunity _US10 (roteado por instituições)_
|
|
|
|
|
|
PUT /opportunity/{id} _US10 (roteado por instituições)_
|
|
|
|
|
|
DELETE /opportunity/{id} _US10 (roteado por instituições)_
|
|
|
|
|
|
|
|
|
#### Institution
|
|
|
|
|
|
**Login**
|
|
|
|
|
|
POST /institution/auth/login _US01_
|
|
|
|
|
|
**SignUP**
|
|
|
|
|
|
POST /institution/auth/signup _US01_
|
|
|
|
|
|
**Account Management**
|
|
|
|
|
|
PUT /institution/auth/mgmt?email=x _US01_
|
|
|
|
|
|
DELETE /institution/auth/mgmt?email=x _US01_
|
|
|
|
|
|
|
|
|
**Profile**
|
|
|
|
|
|
GET /institution?email=x _US15_
|
|
|
|
|
|
GET /institutions/{id} _US15, US19_
|
|
|
|
|
|
POST /institutions _US03_
|
|
|
|
|
|
PUT /institutions/{id} _US03_
|
|
|
|
|
|
DELETE /institutions/{id} _US03_
|
|
|
|
|
|
|
|
|
**Opportunity Management**
|
|
|
|
|
|
GET /institution/opportunity/{id} _US10_
|
|
|
|
|
|
POST /institution/opportunity _US10_
|
|
|
|
|
|
PUT /institution/opportunity/{id} _US10_
|
|
|
|
|
|
DELETE /institution/opportunity/{id} _US10_ |
|
|
\ No newline at end of file |