https://github.com/nemeslaszlo/rest-api-deno
Simple rest api implementation with Deno and PostgreSQL.
https://github.com/nemeslaszlo/rest-api-deno
deno postgresql rest-api
Last synced: about 2 months ago
JSON representation
Simple rest api implementation with Deno and PostgreSQL.
- Host: GitHub
- URL: https://github.com/nemeslaszlo/rest-api-deno
- Owner: NemesLaszlo
- Created: 2020-12-17T13:09:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-17T21:48:02.000Z (over 5 years ago)
- Last Synced: 2025-01-29T08:44:08.272Z (over 1 year ago)
- Topics: deno, postgresql, rest-api
- Language: TypeScript
- Homepage: https://deno.land/std
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rest-API-Deno
Simple rest api implementation with Deno and PostgreSQL.
- [deno-postgres](https://deno.land/x/postgres)
- [denon](https://deno.land/x/denon)
## Run
```
denon start
```
## Endpoints
| Entity | Type | URL | Description |
| ------- | ------ | ----------------------- | ------------------- |
| Product | GET | api/products | Get all products. |
| | GET | api/products/:id | Get single product. |
| | POST | api/products/add | Add new Product. |
| | PUT | api/products/update/:id | Update a Product. |
| | DELETE | api/products/delete/:id | Delete a Product. |