Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dinbtechit/nitriteinjetty


https://github.com/dinbtechit/nitriteinjetty

Last synced: 15 days ago
JSON representation

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
```