Skip to content

Location endpoints

Elías Llera García-Riaño edited this page Mar 7, 2023 · 4 revisions

Add location

Adds a new location to the user collection

POST - /location

Body param

  • location:Location - object of type location, location to add

Returns

  • Collections list updated with the new location

Errors

  • If the user is not logged in
  • If we cannot access the webID of the user

List locations

Returns the list of locations from the user

GET - /location

Returns

  • Collections list updated with the new location

Errors

  • If the user is not logged in
  • If we cannot access the webID of the user