nvnamsss / streetlity-api

api server
0 stars 0 forks source link

API Server written by Golang for Streetlity Project, aims to high performance in massive processing.

API

API Server providing required function for working with services.

See the API documentation for more information about the published APIs and some useful Example

Documentation

Before starting, we need to make some conventions for understanding exactly what we need to do.

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

Config are defined in src/config/config.json, include:

database: