- URL: /api/v1/login
- data : {
"email": "[email protected]",
"password":"password"
}
- Method: POST
- Description: Register a new user in the system.
- URL: /api/v1/register
- data : {
"username":"tester",
"first_name":"john",
"last_name":"doe",
"email":"[email protected]",
"password":"password",
"confirm_password":"password",
"phone_number":"phoneNumber",
"is_landlord": 0
}
- Method: POST
- Description: User login to authenticate and obtain an access token.
- URL: /api/user
- Method: GET
- Description: Get the authenticated user's details.
- URL: /api/user
- Method: PUT
- Description: Update the authenticated user's details.
- URL: /api/user
- Method: DELETE
- Description: Delete the authenticated user's account.
- URL: /api/admin/users
- Method: GET
- Description: Get all users (admin only).
- URL: /api/admin/users/{id}
- Method: GET
- Description: Get a specific user by ID (admin only).
- URL: /api/admin/users/{id} -Method: PUT
- Description: Update a user's details (admin only).
- URL: /api/admin/users/{id}
- Method: DELETE
- Description: Delete a user (admin only).
- URL: /api/v1/properties
- Method: GET
- Description: Get all properties.
- URL: /api/v1/properties/{id}
- Method: GET
- Description: Get a specific property by ID.
- URL: /api/v1/properties
- Method: POST
- Description: Create a new property.
- URL: /api/v1/properties/{id}
- Method: PUT
- Description: Update a property's details.
- URL: /api/v1/properties/{id}
- Method: DELETE
- Description: Delete a property.
- URL: /api/v1/properties/{id}/photos
- Method: GET
- Description: Get all photos of a specific property.
-
URL: /api/v1/properties/{id}/user
-
Method: GET -Description: Returns the details of owner of a particular property.
- URL: /api/v1user/{id}/properties -Method: GET -Description: Returns the list of all properties a user has created.
- URL: /api/properties/{id}/photos
- Method: POST
- Description: Upload a photo for a specific property.
- URL: /api/properties/{id}/photos/{photoId}
- Method: DELETE
- Description: Delete a photo of a specific property.
- URL: /api/landlord/properties/{id}/inquiries
- Method: GET
- Description: Get all inquiries for a specific property.
- URL: /api/landlord/inquiries
- Method: GET
- Description: Get all inquiries for the authenticated landlord's properties.
- URL: /api/landlord/properties/{id}/inquiries/{inquiryId}/respond
- Method: POST
- Description: Respond to a specific inquiry for a property.
- Get All Bookings for a Specific Property
- URL: /api/landlord/properties/{id}/bookings
- Method: GET
- Description: Get all bookings for a specific property.
- URL: /api/landlord/bookings
- Method: GET
- Description: Get all bookings for the authenticated landlord's properties.
- URL: /api/landlord/properties/{id}/bookings/{bookingId}/confirm
- Method: POST
- Description: Confirm a specific booking for a property.
- URL: /api/landlord/properties/{id}/bookings/{bookingId}/reject
- Method: POST
- Description: Reject a specific booking for a property.
- URL: /api/search/properties
- Method: GET
- Description: Search for properties based on criteria such as location, price range, and property type.
- URL: /api/search/users
- Method: GET
- Description: Search for users based on criteria such as name, email, and role.
- URL: /api/favourites/ -Method: POST
- Description: Add a property to the user's favorites list.
- URL: /api/favourites/{id}
- Method: DELETE
- Description: Remove a property from the user's favorites list.
- URL: /api/v1/user/favourites
- Method: GET
- Description: Get the list of properties in the user's favorites list.
- Add a Review for a Specific Property
- URL: /api/reviews/properties/{id}
- Method: POST
- Description: Add a review for a specific property.
- URL: /api/reviews/{id}
- Method: PUT
- Description: Update a review.
- URL: /api/reviews/{id}
- Method: DELETE
- Description: Delete a review.
- URL: /api/reviews/properties/{id}
- Method: GET
- Description: Get all reviews for a specific property.