Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucasplopes/crud-project
Basic CRUD project
https://github.com/lucasplopes/crud-project
h2 hacktoberfest java jpa jwt postman querydsl security spring-boot web
Last synced: about 2 months ago
JSON representation
Basic CRUD project
- Host: GitHub
- URL: https://github.com/lucasplopes/crud-project
- Owner: LucasPLopes
- License: gpl-3.0
- Created: 2020-10-25T16:28:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-26T17:40:50.000Z (about 4 years ago)
- Last Synced: 2023-03-02T20:31:56.290Z (almost 2 years ago)
- Topics: h2, hacktoberfest, java, jpa, jwt, postman, querydsl, security, spring-boot, web
- Language: Java
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Projeto básico de CRUD
## Usando as seguintes dependências
* H2(in-disk), JPA, WEB, DEV, QueryDSL, JWT, Security
* JDK 11, Maven
**. Inicializar**
+ ./mvnw spring-boot:run
**. Processo de autenticação**
+ Acessos de ADMIN, usar *admin* e senha *adminpw*
+ Acessos de USER, usar *user* e senha *userpw*
curl --location --request POST 'http://localhost:8080/api/authenticate' \
--header 'Content-Type: application/json' \
--data-raw '{
"username":"admin",
"password" : "adminpw"
}'O app disponibilizado nesse endereço .
## Explore as APIs
A aplicação define as APIs abaixo.
GET /api/product
POST /api/product
GET /api/product/querydsl?search=propriedade:valor Ex.: name:car
GET /api/product/{Id} -- ADMIN --
PUT /api/product/
DELETE /api/product/{Id}** Coleção POSTMAN disponibilizada no repositório