https://github.com/cuongndc9/node-sails-restful
💉🐙 Build a RESTful API using Node and Sails.
https://github.com/cuongndc9/node-sails-restful
103cuong node nodejs sails sailsjs
Last synced: 10 months ago
JSON representation
💉🐙 Build a RESTful API using Node and Sails.
- Host: GitHub
- URL: https://github.com/cuongndc9/node-sails-restful
- Owner: cuongndc9
- Created: 2019-04-29T09:29:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T17:15:16.000Z (over 6 years ago)
- Last Synced: 2025-01-21T21:32:33.697Z (12 months ago)
- Topics: 103cuong, node, nodejs, sails, sailsjs
- Language: JavaScript
- Homepage:
- Size: 360 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-sails-restful
> 💉🐙 Build a RESTful API using Node and Sails.
## Quick start
First, you need to install `Sails`:
```sh
$ yarn global add sails
```
Install dependencies for this project:
```sh
$ yarn
```
Run this project:
```sh
$ sails lift
```
## 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. |