Welcome to Space Finder

A comprehensive API for managing properties, bookings, and user interactions

Authentication APIs

POST /api/users/login

User authentication

GET /api/users/profile

Get user profile

PUT /api/users/profile

Update user profile

DELETE /api/users

Delete user account

Properties APIs

GET /api/properties

Get all properties

POST /api/properties

Add new property

GET /api/properties/:propertyId

Get property details

PUT /api/properties/:propertyId

Update property

POST /api/properties/images

Upload property images

Other APIs

Reviews

POST /api/reviews

Add a review

GET /api/reviews/:propertyId

Get property reviews

Bookings

POST /api/bookings

Create booking

GET /api/bookings

Get user bookings

DELETE /api/bookings/:bookingId

Cancel booking

Favorites

GET /api/favorites

Get favorites

POST /api/favorites

Add to favorites

DELETE /api/favorites/:propertyId

Remove from favorites