unee-t / enterprise-rest-api

RestFUL API on Unee-T enterprise
https://eapi.dev.unee-t.com/
0 stars 1 forks source link

API to retrieve the list of country codes #9

Closed franck-boullier closed 5 years ago

franck-boullier commented 5 years ago

One of the requirement of #3 is that the 3rd party uses a valid Country code when a unit is created or modified.

This document the API to retrieve the list of possible country codes.

How it should work:

Option 1 - Active Unit types:

Input:

not applicable (no input needed)

Output:

The list of countries and country codes

The SQL query to retrieve the list of country codes:

Below is the query to list this in the UNTE Database

SELECT `country_code` 
  , `country_name`
FROM `property_groups_countries`
;
kaihendry commented 5 years ago

Documented on https://documenter.getpostman.com/view/3704379/SVSEtB4z?version=latest#6962ca57-4e7e-4ebc-809b-5034ec0eb004

franck-boullier commented 5 years ago

Need to be verified before it's closed

franck-boullier commented 5 years ago

This works as intended and has been documented.

@kaihendry can you deploy this in the DEMO and PROD environment and then close the issue

Thanks!

kaihendry commented 5 years ago

Latest state has been deployed to: