Open stteem opened 2 years ago
@stteem - This should now be resolved, could you test and let us know?
Okay
On Thu, 3 Mar 2022 at 09:16, Ian Edwards @.***> wrote:
@stteem https://github.com/stteem - This should now be resolved, could you test and let us know?
— Reply to this email directly, view it on GitHub https://github.com/openclimateinitiative/climsoft-api/issues/10#issuecomment-1057788055, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHMNZNGRBJI7HC76VNG5PV3U6BYM5ANCNFSM5PUAGA2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
It works perfectly. Thanks
Except it seems the endpoint doesn't process multiple files, the response has only 1 filepath in the result array irrespective of the number of files posted. I thought the number of results in the result array would equal the number of files posted.
Post request to the endpoint "https://api.opencdms.org/climsoft/v1/file-upload/image" responds with status code 422 Unprocessable Entity and message "field is required". It means that the endpoint can't process the post request due to a missing field/value perhaps.
The post request contains 1 or multiple image/PNG or JPG files with structured filenames of format "StationID-FormID-YYYYMMDDHH".
API documentation should detail expected Post request body.
.