Skip to content

API Documentation

John Sims edited this page Jun 29, 2021 · 1 revision

API Routes

This webapp uses the following API routes to dynamically update the page to create a single-page-app-like feel for the user for specific features.

Farms

  • Users will be able to see a list of farms that they can visit. Farmers can create, update and delete new farms.

  • GET api/farms

  • GET api/farms/:id

  • POST api/farms

  • PATCH api/farms/:id

  • DELETE api/farms/:id

Bookings

  • The current logged in user (or host) will be able to see their upcoming bookings and make changes if needed.

  • GET api/bookings/

  • PATCH api/bookings/bookingId

  • DELETE api/bookings/bookingId

  • POST api/bookings/

Clone this wiki locally