{"id":20196208,"url":"https://github.com/shaikrasheed99/springboot-pagination-and-sorting","last_synced_at":"2026-04-18T06:34:23.645Z","repository":{"id":113142648,"uuid":"565542035","full_name":"shaikrasheed99/springboot-pagination-and-sorting","owner":"shaikrasheed99","description":"Pagination and Sorting using Spring Boot.","archived":false,"fork":false,"pushed_at":"2022-11-24T11:12:48.000Z","size":81,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T18:03:24.847Z","etag":null,"topics":["api-pagination","api-sorting","avengers","flyway-postgresql","java","postgresql","rest-api","spring-boot","spring-mvc","tdd"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaikrasheed99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-13T18:26:16.000Z","updated_at":"2024-11-27T20:28:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"787ebf09-e927-4b84-90c4-cf4b2f4f3aeb","html_url":"https://github.com/shaikrasheed99/springboot-pagination-and-sorting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shaikrasheed99/springboot-pagination-and-sorting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fspringboot-pagination-and-sorting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fspringboot-pagination-and-sorting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fspringboot-pagination-and-sorting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fspringboot-pagination-and-sorting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaikrasheed99","download_url":"https://codeload.github.com/shaikrasheed99/springboot-pagination-and-sorting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fspringboot-pagination-and-sorting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31959881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-pagination","api-sorting","avengers","flyway-postgresql","java","postgresql","rest-api","spring-boot","spring-mvc","tdd"],"created_at":"2024-11-14T04:22:29.324Z","updated_at":"2026-04-18T06:34:23.625Z","avatar_url":"https://github.com/shaikrasheed99.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot Pagination and Sorting\n\n## Gradle based spring boot application which provide APIs with pagination and sorting using test driven development.\n\nI have clearly explained about these topics on Medium.\n* [Part - 1](https://medium.com/@rasheed99/pagination-and-sorting-using-spring-boot-with-tdd-part-i-c6533aa57a0c)\n* [Part - 2](https://medium.com/@rasheed99/pagination-and-sorting-using-spring-boot-with-tdd-part-ii-281958b2d6fb)\n\n## APIs of the Application\n    - Read Avengers\n    - Read Avengers with Pagination\n    - Read Avengers with Sorting\n    - Read Avengers with Pagination and Sorting\n\n## Get Avengers\n\n* Request\n```\nGET /avengers\nHost: localhost:3000\n```\n* Response\n```\nStatus code: 200 OK\nBody:\n[\n    {\n        \"id\": 1,\n        \"name\": \"Iron Man\",\n        \"introducedInMovie\": \"Iron Man\",\n        \"introducedInYear\": 2008\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Thanos\",\n        \"introducedInMovie\": \"The Avengers\",\n        \"introducedInYear\": 2012\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Thor\",\n        \"introducedInMovie\": \"Thor\",\n        \"introducedInYear\": 2011\n    }\n]\n```\n\n## Get Avengers with Pagination\n\n* Request\n```\nGET /avengers-with-pagination?pageNumber=1\u0026pageSize=3\nHost: localhost:3000\n```\n* Response\n```\nStatus code: 200 OK\nBody:\n[\n    {\n        \"id\": 4,\n        \"name\": \"Thor\",\n        \"introducedInMovie\": \"Thor\",\n        \"introducedInYear\": 2011\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Loki\",\n        \"introducedInMovie\": \"Thor\",\n        \"introducedInYear\": 2011\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Hulk\",\n        \"introducedInMovie\": \"The Incredible Hulk\",\n        \"introducedInYear\": 2008\n    }\n]\n```\n\n## Get Avengers with Sorting\n\n* Request\n```\nGET /avengers-with-sorting?sort=introducedInYear,desc\nHost: localhost:3000\n```\n* Response\n```\nStatus code: 200 OK\nBody:\n[\n    {\n        \"id\": 7,\n        \"name\": \"Captain Marvel\",\n        \"introducedInMovie\": \"Captain Marvel\",\n        \"introducedInYear\": 2019\n    },\n    {\n        \"id\": 12,\n        \"name\": \"Doctor Strange\",\n        \"introducedInMovie\": \"Doctor Strange\",\n        \"introducedInYear\": 2016\n    },\n    {\n        \"id\": 8,\n        \"name\": \"Spider Man\",\n        \"introducedInMovie\": \"Captain America: Civil War\",\n        \"introducedInYear\": 2016\n    }\n]\n```\n\n## Get Avengers with Pagination ans Sorting\n\n* Request\n```\nGET /avengers-with-pagination-and-sorting?pageNumber=0\u0026pageSize=3\u0026sort=id,desc\nHost: localhost:3000\n```\n* Response\n```\nStatus code: 200 OK\nBody:\n[\n    {\n        \"id\": 21,\n        \"name\": \"Red Skull\",\n        \"introducedInMovie\": \"Captain America: The First Avenger\",\n        \"introducedInYear\": 2011\n    },\n    {\n        \"id\": 20,\n        \"name\": \"Ultron\",\n        \"introducedInMovie\": \"Avengers: Age of Ultron\",\n        \"introducedInYear\": 2015\n    },\n    {\n        \"id\": 19,\n        \"name\": \"Winter Soldier\",\n        \"introducedInMovie\": \"Captain America: The Winter Soldier\",\n        \"introducedInYear\": 2014\n    }\n]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikrasheed99%2Fspringboot-pagination-and-sorting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaikrasheed99%2Fspringboot-pagination-and-sorting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikrasheed99%2Fspringboot-pagination-and-sorting/lists"}