Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carloshenriquefs/dscommerce-java
✅💲🏷️ - Desafio 5 Java Spring Essential: DevSuperior
https://github.com/carloshenriquefs/dscommerce-java
crud-application jacoco java junit jwt-authentication spring-boot testes-integracao
Last synced: about 2 months ago
JSON representation
✅💲🏷️ - Desafio 5 Java Spring Essential: DevSuperior
- Host: GitHub
- URL: https://github.com/carloshenriquefs/dscommerce-java
- Owner: carloshenriquefs
- License: mit
- Created: 2023-07-20T23:36:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-27T04:19:48.000Z (10 months ago)
- Last Synced: 2024-02-28T04:24:34.674Z (10 months ago)
- Topics: crud-application, jacoco, java, junit, jwt-authentication, spring-boot, testes-integracao
- Language: Java
- Homepage:
- Size: 185 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :construction: - Desafio: Projeto Spring Boot estruturado
- Projeto DSCommerce estruturado e com todas as funcionalidades implementadas;
- Projeto implementado com Java e Spring Boot, usando banco de dados H2;##
## :desktop_computer: - Layout:
![image](https://github.com/carloshenriquefs/dscommerce-java/assets/54969405/cb6bada3-b6f3-4950-a27c-fdfe808824d7)
![image](https://github.com/carloshenriquefs/dscommerce-java/assets/54969405/3a4cd519-b95f-40f4-b751-720b891fac38)##
## :clipboard: - Diagrama:
![dscommerce drawio](https://github.com/carloshenriquefs/dscommerce-java/assets/54969405/bec2b868-5997-4668-957a-8d621f48c715)
##
## :gear: - Endpoints:
* :label: - Category:
```GET``` - findAll
##
* :bellhop_bell: - Order:
```GET``` - /{id} - findById
```POST``` - insert##
* :package: - Product:
```GET``` - /{id} - findById
```GET``` - findAll
```POST``` - insert
```PUT``` - /{id} - update
```DELETE``` - /{id} - delete##
* :bust_in_silhouette: - User:
```GET``` - /me - getME
##
### :white_check_mark: - Critérios:
##
- [x] - Endpoints públicos GET /produts e GET /products/{id} funcionam sem necessidade de login;
- [x] - Endpoint de login funcionando e retornando o token de acesso;
- [x] - Endpoints privados de produto (POST/PUT/DELETE) funcionam somente para usuário ADMIN;
- [x] - Endpoint GET /users/me retorna usuário logado;
- [x] - Endpoints GET /orders/{id} e POST /orders funcionando;
- [x] - Usuário que não é ADMIN não consegue acessar pedido que não é dele em GET /orders/{id};
- [x] - Endpoint GET /categories retorna todas categorias;