Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sebastiandotdev/postgres_deno

sine implementation with postgresql manager.
https://github.com/sebastiandotdev/postgres_deno

deno postgresql typescript

Last synced: 25 days ago
JSON representation

sine implementation with postgresql manager.

Awesome Lists containing this project

README

        

# Deno REST

- `Deno REST` is a REST API built with Deno that allows users to interact with a database of people. The API provides endpoints to create, read, update, and delete personas in the database, allowing users to perform a wide range of persona-related operations.

## Endpoints

- `GET /person`: Eset endpoint allows users to get a list of all people in the database.

- `POST /person`: Eset endpoint allows users to create a new person in the database. The request body should contain the details of the person you want to create.

- `PUT /person/:id`: This endpoint allows users to update the details of a specific person in the database. The :id parameter must be replaced with the unique ID of the person you want to update. The request body should contain the new details of the person.

- `DELETE /person/:id`: Eset endpoint allows users to remove a specific person from the database. The :id parameter must be replaced with the unique ID of the person you want to remove.

## Use

1. clone project
```git
git clone https://github.com/sebastian009w/postgres_deno.git
```

2. isntall deps
```deno
deno install
```

3. host
```deno
deno task dev
```

4. server
```
http://localhost:8080
```

## Author

- Johan Sebastian Castro Garcia