Skip to content
Oleg Baturov edited this page Jun 13, 2018 · 5 revisions

Welcome to global api wiki!

api prefix: /global

Summary

Get country list
Get image data


Description

Get country list

 GET /countries

RETURN

  • for successed case
{ 
    status: 200, 
    msg: 'sccuess', 
    data: [
        {
            "name": "Belize",
            "alpha3": "BLZ"
        }
    ] 
}
  • for failed case
{ status: 400, msg: err_msg, data: err }

Get image data

 GET /image/:filename

QUERY PARAMS

Name Type Mandatory Default Description
filename String Yes undefined filename stored in gridFS on the server

RETURN

  • for successed case
{ status: 200, msg: 'sccuess', data: base64_image }
  • for failed case
{ status: 400, msg: err_msg, data: err }
Clone this wiki locally