Canadian-Geospatial-Platform / geoview-api-geolocator

Wrapper API around geolocator API's
Other
0 stars 7 forks source link

Create standard response functionality #18

Closed jolevesq closed 1 year ago

jolevesq commented 2 years ago

Create a function to parse every respond from API/Data source to the standard response. Apply same technique as the parser functionality (schema, lookup, ...)

The goal is to be able to add new sources with a minimum of developers intervention. Use the response schema to build the output.

David-Henandez-nrcan commented 1 year ago

A python library called 'model_manager.py' inside cloud-formation/python includes all the functionality to parse every response from several API data sources into standard response. the main function inside this library is: items_from_service(). it takes several parameters:

The returning set of features complains with the expected standard response schema.