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

https://github.com/akmittal/node-typescript-typeorm-starter

A simple project with authentication middleware
https://github.com/akmittal/node-typescript-typeorm-starter

boilerplate nodejs rest-api signup

Last synced: 3 months ago
JSON representation

A simple project with authentication middleware

Awesome Lists containing this project

README

          

# Signup

### /signup POST
HTTP BODY

{
"username":"username",
"password:"password",
}

# Login
### /login POST
HTTP BODY

{
"username":"username",
"password:"password",
}

# Stock
### /stock POST
HTTP BODY

{
"name":"stockname",
"price:"123",
}

### /stock GET
Optional query params
- sortColumn = name | price
- skip = 0
- take = 10 (limit items 10 by default)

Returns List of all stocks

### /stock/:stockname GET (Requires Authorization)
Send the token from login as HTTP Header `Authorization`

Returns single stock item