inbo / vespa-db

Vespa-Watch database and application
MIT License
0 stars 0 forks source link

External API response proposal #5

Closed stevegerrits closed 5 months ago

stevegerrits commented 8 months ago
{
  "id": 1,
  "point": {
    "type": "Point",
    "coordinates": [
      4.182466,
      51.007389
    ],
    "uncertainty": 3
  },
  "created": "2023-10-19T00:21:41Z",
  "modified": "2023-10-19T00:34:51Z",
  "attributes": [
    {
      "name": "nest_type",
      "value": "primair"
    }
  ],
  "created_by": "account_name_validator",
  "observations": [
    {
      "id": 123450604,
      "date": "2023-10-19",
      "time": "00:21:41",
      "species": 456,
      "validated": "A",
      "notes": "Pidgey nest",
      "admin_notes": null,
      "source": "event-page",
      "created": "2023-10-17T08:00:00Z",
      "modified": "2023-10-17T08:00:00Z",
      "observer": {
        "name": "Peter Desmet",
        "email": "peter.desmet@inbo.be",
        "telephone": null
      },
      "attributes": [
        {
          "name": "nest_height",
          "value": "+4m"
        },
        {
          "name": "nest_size",
          "value": "-25cm"
        },
        {
          "name": "nest_location",
          "value": "outside_building"
        }
      ],
      "images": [
        "https://img.pokemondb.net/artwork/pidgey.jpg"
      ]
    },
    {}
  ]
}
PietrH commented 8 months ago

Great job summarizing.

stevegerrits commented 8 months ago

@PietrH It's a quick draft to express my idea of the external-api response, not all fields etc are correct/included yet. I can make this one complete if we want to go further with this ofc!

Was not aware of the darwincore, this ppoint value was a copy/paste from the word doc "Vespa Watch waarnemingen.nl API docs feedback"

peterdesmet commented 8 months ago

I have updated the issue body to correct some mistakes