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

https://github.com/jayvirrathi/fastify-rest-api

A fast REST APIs with Node.js, MongoDB, Fastify and Swagger.
https://github.com/jayvirrathi/fastify-rest-api

fastify mongodb nodejs rest-api swagger

Last synced: about 2 months ago
JSON representation

A fast REST APIs with Node.js, MongoDB, Fastify and Swagger.

Awesome Lists containing this project

README

          

# A fast REST APIs with Node.js, MongoDB, Fastify and Swagger.

> A Node.js project

## Build Setup

```bash
# install dependencies
npm install

# serve with hot reload at localhost:3000
npm start
```

## Prerequisites

- Nodejs
- MongoDB

**Request:**

```json
POST api/cars
{
"title": "Model X",
"brand": "Tesla",
"price": "100000",
"age": "1",
"services": {
"state": "United State",
"city": "San Diegoo"
}
}

GET api/cars

GET api/cars/:id

PUT api/cars/:id
{
"title": "Model X",
"brand": "Tesla",
"price": "150000",
"age": "1",
"services": {
"state": "United State",
"city": "Las Vegas"
}
}

DELETE api/cars/:id

```