Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dinbtechit/nitriteinjetty
https://github.com/dinbtechit/nitriteinjetty
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dinbtechit/nitriteinjetty
- Owner: dinbtechit
- Created: 2019-12-04T19:14:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T23:53:17.000Z (about 2 years ago)
- Last Synced: 2024-10-31T18:23:17.337Z (2 months ago)
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- 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
```