Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/abubacar-dev/node-api

Simple node api no framework using native node modules and using local database
https://github.com/abubacar-dev/node-api

api api-rest database http http-package javascript node node-js nodejs

Last synced: 16 days ago
JSON representation

Simple node api no framework using native node modules and using local database

Awesome Lists containing this project

README

        

# Node API
Simple node api no framework using native node modules and using local json database

## Reference

- [Mussinady_dev](https://youtube.com/@abubacar_dev)

## API Documentation

To test this project run:

```bash
npm run dev
```
#### Return all users

`GET http://localhost:3333/users`

#### Return filtered user

`GET http://localhost:3000/users?search=${name}`

| Parameter | Type | Description |
| :---------- | :--------- | :------------------------------------------ |
| `name` | `string` | **Mandatory**. |

#### Create new user

`POST http://localhost:3333/users`

```json
{
"name": "Jonh Doe",
"email": "[email protected]"
}
```

#### Update user

`PUT http://localhost:3333/users/${ID-UUID}`

```json
{
"name": "Jonh Doe Doe",
"email": "[email protected]"
}
```

| Parameter | Type | Description |
| :---------- | :--------- | :------------------------------------------ |
| `id` | `string` | **Mandatory**. |

#### Delete user

`DELETE http://localhost:3333/users/${ID-UUID}`

| Parameter | Type | Description |
| :---------- | :--------- | :------------------------------------------ |
| `id` | `string` | **Mandatory**. |

## Appendix

- node version require > v16 (LTS)

## Autor

- [@mussinady-abubcar](https://www.github.com/mussinady-abubcar)

## Tags

[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)

## Demonstration

![](.github/demostration-api.gif)

Developed with ❤️ by Mussinady Abubacar