- API developed in Ruby on Rails 7.1.0.
- Ruby version: 3.1.2
POST /login
: Logs in with the user's credentials.GET /logout
: Logs out the user.
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.
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.
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.
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.
- This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. See the LICENSE.md file for details.