Skip to content

rhnh/salio-server

Repository files navigation

Installation:

clone the repo yarn

setup

dot files

TEST_DB_NAME=salioTest
DB_PORT=8080
SECRET_TOKEN=your token
  1. cd src

  2. ssh-keygen -t rsa -b 4096 -m PEM -f rsa_key

  3. rename files to rsa_key.pub.pem und rsa_key.priv.pem

Login Route:

To register:

POST: http://localhost:8080/api/users

To Login:

POST: http://localhost:8080/api/users/user

To Logout:

GET: http://localhost:8080/api/users/user

List Route:

To Create new list:

POST: http://localhost:8080/api/lists

To Get certain List:

GET: http://localhost:8080/api/lists/list/:listName

To DELETE:

http://localhost:8080/api/lists/:listName

To GET All list for a user

http://localhost:8080/api/lists

BirdList

To get All Birds for the Certain list:

POST: http://localhost:8080/api/lists/:listName/birds

To get Certain bird for the certain list:

POST: http://localhost:8080/api/lists/list/:listName/birds/bird/:birdName

To add Certain bird into certain list:

POST: http://localhost:8080/api/lists/:listName/birds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published