Closed tomaszmrugalski closed 4 years ago
One more thing - the lastobs field in the stations table should be updated.
receive an observation from reporting ground station
We have now API for receive the observations. It accept form-data or JSON formats. It required PNG file with observation and some metadata. After receiving server creates thumbnail.
rename uploaded file rename file using a scheme that ensures no conflicts
Received file is renamed. We merge original filename with UUID (version 4). It allow us to avoid conflicts.
store an observation in a DB
Received observation is inserted to existing DB shema.
lastobs field in the stations table should be updated
Ready.
This seems to be complete. Resolving.
We need a new API that will:
It seems that over time more and more parameters will be provided when adding observation. The schema should be easily extensible. One good example would be a POST method with a JSON data and JSON response. This would also ensure easy adaptation by third parties.