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

https://github.com/munene-m/notes-api

Notes api that saves to JSON file
https://github.com/munene-m/notes-api

deno hono

Last synced: about 2 months ago
JSON representation

Notes api that saves to JSON file

Awesome Lists containing this project

README

          

## Deno x Hono Notes API

Simple notes api that saves notes to json file

Install dependencies

```
deno install
```

To start the server run the following command

```
deno task dev
```

To create a note make a POST request to `http://localhost:8000/create-note` with the following req body:

```
{
"title": "Example title",
"content": "Example content"
}
```

To get all notes make a GET request to `http://localhost:8000/notes`

To get a single note make a GET request to `http://localhost:8000/notes/:id`