Skip to content

API developed in Rails for the Get-That-Home project. Deployed in the Render service.

License

Notifications You must be signed in to change notification settings

heblopez/get-that-home-api

Repository files navigation

Get that Home API

  • API developed in Ruby on Rails 7.1.0.
  • Ruby version: 3.1.2

Landing page - Get that home

Endpoints

Sessions

  • POST /login: Logs in with the user's credentials.
  • GET /logout: Logs out the user.

Users

  • POST /users: Creates a new user.
  • GET /users/:id: Returns the information of a specific user.
  • PATCH /users/:id: Updates the information of a specific user.

Properties

  • GET /properties: Returns a list of all properties.
  • POST /properties: Creates a new property.
  • GET /properties/:id: Returns the information of a specific property.
  • PATCH /properties/:id: Updates the information of a specific property.
  • DELETE /properties/:id: Deletes a specific property.

Favorites

  • GET /users/:id/favorites: Returns a list of the properties marked as favorites by a specific user.
  • POST /users/:user_id/favorites/:property_id: Create a new favorite property record for a specific user.
  • DELETE /users/:user_id/favorites/:property_id: Remove the favorite property record for a specific user.

Contacted

  • GET /users/:id/contacted: Returns a list of properties contacted by a specific user.
  • POST /users/:user_id/contacted/:property_id: Create a new contacted property record for a specific user.
  • DELETE /users/:user_id/contacted/:property_id: Remove the contacted property record for a specific user.

Authors

License

About

API developed in Rails for the Get-That-Home project. Deployed in the Render service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages