When calling the /facilities GET endpoint e.g. via curl -X GET "https://openapparel.org/api/facilities/?page=1" -H "accept: application/json" ... the resulting JSON array contains no field "sector"
Expected Behavior
Field "sector" should be in the "properties" field of the return values.
Actual Behavior
The returned data structure is identical to the one in the openapparel version, without sector.
At the sprintly check-in on 2023-02-15 @jwalgran proposed to @mariel-oar that since the list of sectors is already available on the search index, returning the full list of sectors with the facility search results should not add expense and be relatively straight forward to implement.
Overview
When calling the /facilities GET endpoint e.g. via
curl -X GET "https://openapparel.org/api/facilities/?page=1" -H "accept: application/json" ...
the resulting JSON array contains no field"sector"
Expected Behavior
Field
"sector"
should be in the"properties"
field of the return values.Actual Behavior
The returned data structure is identical to the one in the openapparel version, without sector.
Steps to Reproduce
curl
(plus Authentication header)Additional context
At the sprintly check-in on 2023-02-15 @jwalgran proposed to @mariel-oar that since the list of sectors is already available on the search index, returning the full list of sectors with the facility search results should not add expense and be relatively straight forward to implement.