Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ttrzcinski/viasecuremongo
POC REST API project for Spring Boot 3.2 (LATEST) using MongoDB as UserRepo.
https://github.com/ttrzcinski/viasecuremongo
Last synced: 7 days ago
JSON representation
POC REST API project for Spring Boot 3.2 (LATEST) using MongoDB as UserRepo.
- Host: GitHub
- URL: https://github.com/ttrzcinski/viasecuremongo
- Owner: ttrzcinski
- Created: 2024-05-08T22:00:47.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-08T23:07:11.000Z (8 months ago)
- Last Synced: 2024-05-08T23:25:11.712Z (8 months ago)
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Via Secure Mongo
Simple Spring Boot 3.2 project connecting Spring Boot 3.2 REST API to MongoDB in order to process credentials of entitled users.
# To run it
How to build it:
mvn clean compile install packageHow to run it:
mvn spring-boot:runHow to test it:
mvn test-compile testHow to read all users:
curl http://localhost:8080/usersHow to find one user:
curl http://localhost:8080/users/search/findByRoleName?name=McCaineHow to add new user:
curl -i -X POST -H "Content-Type:application/json" -d "{ \"username\" : \"Tomasso\", \"roleName\" : \"McCaine\" }" http://localhost:8080/users# Used:
- Spring Boot 3.2
- MongoDB 7.0.2
- TestContainers
- Maven 3.9.6# Contributors