benjaminrae / SharedSpace-back

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SharedSpace

Links

Front

Back

Endpoints

User

POST /user/register

  • create an account in the application
  • response 201
  • no response body

POST /user/login

  • fetch user token
  • response 200
  • token in response body

Locations

GET /locations

  • fetch a list of locations
  • response 200
  • locations list in response body

GET /locations/location/:locationId

  • fetch a single location
  • response 200
  • location in response body

GET /locations/filter/:filter

  • fetch a list of locations that match filter
  • response 200
  • locations list in response body

Protected endpoints

Locations

POST /locations/add-location

  • submit a new location to the database
  • response 201
  • send new location in multipart/form-data
  • new location in response body

DELETE /locations/location/:locationId

  • delete a location from the database
  • response 200
  • deleted location in response body

PUT /locations/edit-location/:locationId

  • update a location’s information
  • response 201
  • send changes in multipart/form-data
  • updated location in response body

GET /locations/my-locations

  • fetch a list of your own locations
  • response 200
  • locations list in response body

About


Languages

Language:TypeScript 96.4%Language:Shell 1.9%Language:JavaScript 1.8%