Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caioagiani/api-restify-mongoose
TypeScript API using restify and Mongoose
https://github.com/caioagiani/api-restify-mongoose
api api-restful mongodb mongoose nodejs restify typescript
Last synced: 2 months ago
JSON representation
TypeScript API using restify and Mongoose
- Host: GitHub
- URL: https://github.com/caioagiani/api-restify-mongoose
- Owner: caioagiani
- Created: 2020-06-28T16:49:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-01T05:32:43.000Z (almost 4 years ago)
- Last Synced: 2024-05-01T16:30:30.178Z (8 months ago)
- Topics: api, api-restful, mongodb, mongoose, nodejs, restify, typescript
- Language: TypeScript
- Homepage:
- Size: 80.1 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## TypeScript API using Restify with Mongoose
- Install TypeScript global `npm i -g typescript`
- Install dependencies: `yarn install` ou `npm install`
- TypeScript compile: `yarn compile` ou `npm run compile`
- Start application: `yarn dev` ou `npm run dev`.## Routes
- [x] Request findAll Users:
```javascript
application.get("/users");[
{
id: 1,
name: "Caio Agiani",
email: "[email protected]",
},
{
id: 2,
name: "Caio Henrique",
email: "[email protected]",
},
];
```- [x] Request findById User:
```javascript
application.get("/users/:id");{
"id": 1,
"name": "Caio Agiani",
"email": "[email protected]"
}
```- [x] Request Create User:
```javascript
application.post("/users");{
"name": "Caio Agiani",
"email": "[email protected]",
"password": "123"
}
```## Contato
- [LinkedIn](https://www.linkedin.com/in/caioagiani/)
- [email protected]