{"repo":"Raouf25/Spring-Boot-efficient-search-API","free":true,"listed":false,"github":"https://github.com/Raouf25/Spring-Boot-efficient-search-API","clone":"git clone https://github.com/Raouf25/Spring-Boot-efficient-search-API.git","description":null,"language":"Java","stars":81,"topics":["rest-api","java","search","spring-boot","specification","api","design"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"# Spring Boot: How to design an efficient REST API? Resource collections are often enormous, and when some data has to be retrieved from them, it would be only not very efficient to always get the full list and browse it for specific items. Therefore we should design an optimized Search API. - Filtering: - Narrow down query results by parameters (e.g., country, creation date). - Sorting: - Sort results ascending or descending by chosen parameters (e.g., by date). - Paging: - Use \"limit\" to restrict results and \"offset\" to specify which part of the result range to show. Combine features: Results in the list of 100 cars from Japan, sorted by creation date in descending order, starting from the second page (records 101-200). How to Run the Project Clone source code from git Build Docker image This command runs Maven build to create a JAR package and builds the Docker image. Note: Initial command may take time to download the base image from DockerHub Run Docker Container Test Application Response: Stop Docker Container Live Demo This project is deployed on https://spring-boot-efficient-search-api.fly.dev/api/cars Try: Demo Link Docker Image Repository Docker Image: raouf25/spring-boot-efficient-search-api Refer to the Docker Commands section for pulling, running, and querying the API using cURL and jq. License For more details please see this medium post . Spring Boot Efficient Search Api Copyright © 2020 by Abderraouf Makhlouf","default_branch":null,"files":null,"tree":[],"storefront":"/r/Raouf25","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Raouf25/Spring-Boot-efficient-search-API/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}