service-architecture/README.md

43 lines
1.4 KiB
Markdown

# service-architecture
Course Exercice : Application to help others
```bash
./init.sh
./service.sh compile
./service.sh start
```
## Roadmap
### Functionnalities
- We have `users` which could be either _volunteers_, _user_ or _admin_
- Requests that can have multiple status: _Waiting_, _Validated_, _Rejected_, _Chosen_, _Realized_
- Requests can be done by `users` only
- Feedback can be done by `volunteers` and `users`
### APIs
- [X] `Rest` Create user
- [X] `Rest` Login with user and password
- [X] `Rest` Make sure admin can do everything and users don't
- [X] `Rest` Create a Help Request
- [X] `Rest` Modify the Help Request status
- [ ] `Rest` Create a User Feedback
- [ ] `Rest` Gather User Feedbacks
## Check `SOAP` Requests
Please install the following application for ease of use SoapUI:
```bash
flatpak install flathub org.soapui.SoapUI
```
Then in the application create a new project with the endpoint of your choice, one might be `http://localhost:8080/ws/countries.wsdl`. Then modify the given request with the corresponding Country if you use the simple example given by SpringBoot.
## Check `REST` Requests
Use this time the HTTPie application, it can be either in fully CLI or with a great UI, you can install it with flathub using this command:
```bash
flatpak install flathub io.httpie.Httpie
```
Just run the command `http POST localhost:8080 hello=world` to test the REST api.