https://github.com/dinbtechit/nitriteinjetty
https://github.com/dinbtechit/nitriteinjetty
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dinbtechit/nitriteinjetty
- Owner: dinbtechit
- Created: 2019-12-04T19:14:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T23:53:17.000Z (over 3 years ago)
- Last Synced: 2025-04-06T02:44:03.106Z (about 1 year ago)
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jetty REST API using Nitrite NoSql DB (in-memory vs File)
A sample project demonstrates Jetty (Jersey REST API) and Nitrite NoSQL DB integration.
To run project
```bash
mvn jetty:run
```
Access Rest in cURL. (Alternatively, you can also use a browser or a REST client.)
#### Inserting
Insert into memory
```
curl -v -X GET http://localhost:8080/api/db/memory/insert
```
Insert into file
```bash
curl -v -X GET http://localhost:8080/api/db/file/insert
```
#### Finding
Find from memory
```
curl -v -X GET http://localhost:8080/api/db/memory/find/0/10000
```
Find from file
```bash
curl -v -X GET http://localhost:8080/api/db/file/find/0/10000
```