Hankintailmoitukset / hilma-api

12 stars 0 forks source link

What is a best way to get notice status? #149

Closed eduardsmirnov closed 1 year ago

eduardsmirnov commented 1 year ago

Should I call AVP Read API or Get published notice API ?

What could be the right syntax for AVP Read API if I know only Hilma notice id, like 2096, and I want to find my notice?

Get published notice API returns 404 when notice is not published. Is it enough to poll this API until I will get status 200?

arinurkkala commented 1 year ago

Both of those endpoints are only for the current notices. We haven't yet implemented any GET operations for eForms yet. Hopefully we can get to it soon.

eduardsmirnov commented 1 year ago

Seems now there is an endpoint to fetch a notice, so closing... GET https://hns-hilma-test-apim.azure-api.net/eforms/external-write/v1/notice/{etsIdentifier}[?includeEForm]