We (at International Trade Centre - ITC) are trying to try out the WHISP API based on your documentation. Perhaps we are not providing data in the expected format. Remi suggested that we raise the issue here.
Note: We have also tried to use the https://whisp.openforis.org/api/geojson endpoint directly with the same data and it does return the expected results when using postman, but it does not allow requests from non allowed domains (CORS).
Steps to reproduce
Make a call to the following geojson analysis endpoint and with the given geojson data:
curl --location 'https://whisp-app-vdfqchwaca-uc.a.run.app/api/geojson' \ --header 'Content-Type: application/json' \ --data '{ "type": "Feature", "properties": { "additionalProp1": {} }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -4.286591893206829, 5.545425708271704 ], [ -4.2872464587004755, 5.54450734589365 ], [ -4.2883087863049205, 5.54450734589365 ], [ -4.287901024194124, 5.545607244851676 ], [ -4.286591893206829, 5.545425708271704 ] ] ] } }'
Expected Result
Response of the analysis with appropriate data or an error message indicating invalid input or guidance.
Actual Result
It returns the following:
`
404 Page not found
Error: Page not found
The requested URL was not found on this server.
`
Thank you in advance for your attention and help in addressing this.
We (at International Trade Centre - ITC) are trying to try out the WHISP API based on your documentation. Perhaps we are not providing data in the expected format. Remi suggested that we raise the issue here.
Note: We have also tried to use the https://whisp.openforis.org/api/geojson endpoint directly with the same data and it does return the expected results when using postman, but it does not allow requests from non allowed domains (CORS).
Steps to reproduce
curl --location 'https://whisp-app-vdfqchwaca-uc.a.run.app/api/geojson' \ --header 'Content-Type: application/json' \ --data '{ "type": "Feature", "properties": { "additionalProp1": {} }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -4.286591893206829, 5.545425708271704 ], [ -4.2872464587004755, 5.54450734589365 ], [ -4.2883087863049205, 5.54450734589365 ], [ -4.287901024194124, 5.545607244851676 ], [ -4.286591893206829, 5.545425708271704 ] ] ] } }'
Expected Result
Actual Result
Error: Page not found
The requested URL was not found on this server.
`Thank you in advance for your attention and help in addressing this.