Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/cuongndc9/rest-swagger

🚀🌳 Build a Rest API using Swagger.
https://github.com/cuongndc9/rest-swagger

103cuong node rest-api rest-swagger swagger swagger-ui

Last synced: 11 days ago
JSON representation

🚀🌳 Build a Rest API using Swagger.

Awesome Lists containing this project

README

        

# rest-swagger

> 🚀🌳 Build a Rest API using Swagger.

![screenshot](images/screenshot.png)

## Quick start

### Install dependencies

```sh
$ yarn
```

### Run this project

```sh
$ yarn start
```

Go to [here](http://127.0.0.1:9000/docs) to view api documents.

## API

| Route | HTTP method | Description |
|------------------|-------------|-----------------------------|
| /api/cats | `GET` | Get all the cats. |
| /api/cats | `POST` | Create a cat. |
| /api/cats/:catId | `GET` | Get a single cat. |
| /api/cats/:catId | `PUT` | Update a cat with new info. |
| /api/cats/:catId | `DELETE` | Delete a cat. |