Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

On cloud or premise, the AutoML controller for DeepCamera

License

Notifications You must be signed in to change notification settings

SharpAI/ApiServer

Open more actions menu

Repository files navigation

Get started Build Status

Windows

choco install meteor

OSX/Linux

curl https://install.meteor.com/ | sh

Start API Server

git clone https://github.com/SharpAI/ApiServer
cd ApiServer
meteor run

Test REST API

Register New User

curl -X POST -H "Content-type: application/json" http://localhost:3000/api/v1/sign-up -d '{"username": "test11", "email": "xxxx@xxx.xx", "password": "xxxxxx"}'
{
  "success": true
}

Get Token

curl -X POST http://localhost:3000/api/v1/login/ -d "username=test11&password=xxxxxx"
{
  "status": "success",
  "data": {
    "authToken": "mGRTZ_aNbL2EAobchvLmmlLmbn2e5EXdj8WR8DmSZw0",
    "userId": "s9pxAWqwHzLaBKP5w"
  }
}

Delete Token

curl -X POST -H "X-Auth-Token: mGRTZ_aNbL2EAobchvLmmlLmbn2e5EXdj8WR8DmSZw0" -H "X-User-Id: s9pxAWqwHzLaBKP5w" http://localhost:3000/api/v1/logout
{
  "status": "success",
  "data": {
    "message": "You've been logged out!"
  }
}

Test API Server setup at 165.232.62.29

Morty Proxy This is a proxified and sanitized view of the page, visit original site.