Rest enpoints - 1milio/notes GitHub Wiki

login

  • path: /login
  • method: POST
  • consume: json {username, password}
  • produce: json {token, uuid}

send data

  • path: /{uuid}
  • method: POST
  • consume: json {geoJson}
  • produce: json {result}

proximity

  • path: /proximity/{uuid}
  • method: GET
  • produce: json {[poi]}

proximity

  • path: /proximity?uuid={uuid}&range={range}&span={span}
  • method: GET
  • produce: json {[poi]}

last position

  • path: /{uuid}
  • method: GET
  • produce: json {geoJson}

web socket: on changing, we receive the new position

  • path: /ws/{uuid}
  • method: WS
  • produce: json {[geoJson]}

sse: on changing, we receive the new position

  • path: /sse/{uuid}
  • method: sse
  • produce: json {[geoJson]}