API Server written by Golang for Streetlity Project, aims to high performance in massive processing.
API Server
providing required function for working with services.
See the API documentation for more information about the published APIs and some useful Example
Before starting, we need to make some conventions for understanding exactly what we need to do.
jwt-token
via key Auth
in Header
query
, x-www-form-urlencoded
(could add header "Content-Type": "application/x-www-form-urlencoded"
if you don't know how to do)
Format: /service/$serviceName/$method
.
You can take a look for service names that are listed below.
POST /service/$
serviceName
/add
Header { "timestamp": 12345679121 "authen-hash": "3vudiH0Kyo8c7Qa4ihIIvL/yO8fN+ondP6aEhFJlZTA=" } Params: JSON { "name": "bank" "id": 564521456 }
Config are defined in src/config/config.json
, include:
database
:
server
: address of the host where database is locateddbname
: name of database which username
: username to connect to database serverpassword
: password to connect to database server