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

https://github.com/satak/deno-rest

Testing Deno as REST API backend
https://github.com/satak/deno-rest

deno rest-api typescript

Last synced: about 1 month ago
JSON representation

Testing Deno as REST API backend

Awesome Lists containing this project

README

          

# drawing Deno REST API

Deno REST API server written in TypeScript

-
-

Run deno dev server: `run-deno.ps1`

## Info

- Port: `8000`
- DB: Local JSON file `.\src\db.json`
- Test post request: `post.ps1`
- Main server script: `server.ts`

## Routes

| Route | Method | Info |
| ------------- | ------ | -------------------------------------------------------------------- |
| `/books` | `GET` | List all books in a JSON array |
| `/books/{id}` | `GET` | Get 1 book object by ID |
| `/books` | `POST` | Post new book `{title: string, author: string}` (`application/json`) |