Skip to content

Property Images

dana-jpg edited this page May 3, 2024 · 2 revisions

The Property Images microservice, implemented using Spring Boot, facilitates the management of property images stored in Amazon S3. It offers various endpoints for uploading images, fetching image URLs, and listing available S3 buckets.

Functionality

  • Image Upload: Users can upload property images by sending a POST request to the /upload endpoint along with the image file, property ID, and primary flag. Upon successful upload, the service returns the URL of the uploaded image.

  • Image Retrieval: Property images can be retrieved by sending a GET request to the /getImageUrls endpoint with the corresponding property ID. This endpoint returns a list of URLs for all images associated with the specified property.

  • Primary Image URL: To retrieve the URL of the primary image for a property, users can send a GET request to the /getPrimaryImageUrl endpoint, providing the property ID as a parameter.

  • Listing Buckets: The service offers a GET endpoint /listBuckets to list all available S3 buckets. This functionality allows users to view and manage the buckets associated with the service.

Deployment and Scalability

  • Containerization: The microservice is designed to be deployed in containerized environments, enabling seamless integration with container orchestration platforms like Kubernetes.

  • Scalability: Leveraging Amazon S3 for image storage ensures scalability, allowing the microservice to handle large volumes of property images efficiently.

Technologies

Click here to view an overview of technologies used.

Clone this wiki locally