umberto-fontanazza / kiruna-explorer

Web app to show the relocation process of the town of Kiruna (Sweden)
Other
1 stars 1 forks source link

Impl additional fields document support #45

Closed umberto-fontanazza closed 1 week ago

umberto-fontanazza commented 1 week ago

My proposal is for the API to communicate dates in UTC format. If a one of /documents is PATCHed with issueDate: "2024-01-01" this means it was issued in any timestamp:

after 2024-01-01T00:00:00.000Z before 2024-01-02T00:00:00.000Z where these two are UTC dates (Z means english Grwch time)

This PR is still missing 2 key aspects:

This was not finished because I haven't yet decided where to define the transition from a Document object in memory to a response body. Some suitable options are:

I am open to suggestions on how to proceed