APIs - openefsa/foodex2-sca-backend GitHub Wiki
The following section describes the APIs exposed by FoodEx2 SCA, their requirements and how they can be used. To expose these APIs, FoodEx2 SCA makes use of the Flask micro web framework written in Python. The REST APIs, made available through FoodEx2 SCA back-end, can be called via GET/POST JSON requests using the application/json
MIME type. Thus, a JSON response will be returned based on the request or interaction made.
The Foodex2 SCA backend exposes two types of API groups:
- Public APIs: this type of API accepts any JSON request (with no permission field in the HTTP header);
- Private API: this type of API can only accept JSON requests with credentials in the authorization field.
Please note that the information presented in the next sections may changed frequently based on the needs of EFSA and/or the data providers.