-
Notifications
You must be signed in to change notification settings - Fork 2
Services API
ardeearam edited this page Nov 7, 2014
·
19 revisions
The Special Services API is a publicly-accessible API. This means that the user need not be authenticated to be able to access the API's in this module.
This is inteded to be a general-purpose utility API, to make store front development faster, easier, and more standardized.
- GET /services/countries
- GET /services/provinces/country_id/[country_id]
- GET /services/cities/province_id/[province_id]
- gcore-services.js - A thin JavaScript helper to have any location-related dropdowns lookup to the GCore Services API. See guides below on and off you go in 3 minutes.
- Code (http://jsfiddle.net/ardeeram/uLnkf68x)
- Result (http://jsfiddle.net/ardeeram/uLnkf68x/embedded/result)
- Code (http://jsfiddle.net/ardeeram/9gk6bk7a)
- Result (http://jsfiddle.net/ardeeram/9gk6bk7a/embedded/result)
Request
GET /services/countries HTTP/1.1
Host: api.gcore.galoretv.com
Accept: application/json
Response
HTTP/1.1 200 OK
x-GCore-Version: 0.99
[
{
"country_id": 93,
"latitude": null,
"longitude": null,
"name": "Afghanistan"
},
{
"country_id": 0,
"dial_code": 93,
"iso2_code": "AF",
"iso3_code": "AFG",
"latitude": null,
"lbc_ib_zone": "G",
"lbc_ob_zone": "G",
"lbc_transit_time": 4,
"longitude": null,
"name": "Afghanistan",
"numeric_code": 4
},
...
]
URL Parameters
- country_id - The associated country code of a particular country.
Request
GET /services/provinces/country_id/63 HTTP/1.1
Host: api.gcore.galoretv.com
Accept: application/json
Response
HTTP/1.1 200 OK
x-GCore-Version: 0.99
[
{
"country_id": 63,
"latitude": 17.5833,
"longitude": 120.75,
"name": "Abra",
"province_id": "ABRA"
},
{
"country_id": 63,
"latitude": 9.1667,
"longitude": 125.5,
"name": "Agusan del Norte",
"province_id": "AGUSANDELNORTE"
},
...
]
URL Parameters
Request
Response
URL Parameters
Request
Response
Questions? Spotted a documentation error? Or just want to say hi? Please leave a message at https://github.com/galorelabs/gcore/issues, and we'll get back to you as soon as we can. :)
- Home
- Input and Output Specifications
- Logs and Reports
- Stores API
- Stores::SalesOrders API
- Stores::Products API
- Inventory API
- [Picklists API] (https://github.com/galorelabs/gcore/wiki/Picklists-API)
- Connectors API
- Netify API
- Reports API
- Systems API
- Services API