{"id":21076401,"url":"https://github.com/rapter1990/depremapi","last_synced_at":"2025-05-16T06:32:21.045Z","repository":{"id":124090532,"uuid":"599276809","full_name":"Rapter1990/DepremApi","owner":"Rapter1990","description":"Get latest earthquakes list information from Kandilli and AFAD","archived":false,"fork":false,"pushed_at":"2023-10-17T20:08:37.000Z","size":185,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T06:33:59.981Z","etag":null,"topics":["api","aws-beanstalk","java","java-streams","jsoup","junit","lombok","spring-boot","swagger","swagger2"],"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/Rapter1990.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}},"created_at":"2023-02-08T20:10:23.000Z","updated_at":"2023-10-17T20:00:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"32e1f807-db62-4738-817a-aef8285c444d","html_url":"https://github.com/Rapter1990/DepremApi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FDepremApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FDepremApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FDepremApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FDepremApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rapter1990","download_url":"https://codeload.github.com/Rapter1990/DepremApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225413285,"owners_count":17470554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","aws-beanstalk","java","java-streams","jsoup","junit","lombok","spring-boot","swagger","swagger2"],"created_at":"2024-11-19T19:28:14.986Z","updated_at":"2024-11-19T19:28:15.550Z","avatar_url":"https://github.com/Rapter1990.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deprem Api (Kandilli \u0026 Afad)\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"screenshots/screenshot_main.PNG\" alt=\"Main Information\" width=\"200\" height=\"200\"\u003e\n\u003c/p\u003e\n\n### 📖 Information\n\n\u003cul style=\"list-style-type:disc\"\u003e\n  \u003cli\u003eThe purpose of the project is to get all data from Kandilli and AFAD and analyze them\u003c/li\u003e  \n  \u003cli\u003eHere is the explanation of the project\n      \u003cul\u003e\n        \u003cli\u003eAfter \u003cb\u003e7.8-magnitude earthquake\u003c/b\u003e and \u003cb\u003e7.8-magnitude earthquake\u003c/b\u003e occured in \u003cb\u003eTurkey\u003c/b\u003e on \u003cb\u003e6th February 2023\u003c/b\u003e and I felt very sad about the devastating disaster, I tried to implement an example of getting all earthquakes data from \u003cb\u003eKandili\u003c/b\u003e and \u003cb\u003eAfad\u003c/b\u003e\u003c/li\u003e\n        \u003cli\u003eAnalyze the data to get specific information by filter through \u003cb\u003eJava Stream API\u003c/b\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n  \u003c/li\u003e\n\u003c/ul\u003e\n\n### 🔨 Run the App\n\n#### Maven\n\n\u003cb\u003e1 )\u003c/b\u003e Download your project from this link `https://github.com/Rapter1990/DepremApi`\n\n\u003cb\u003e2 )\u003c/b\u003e Go to the project's home directory :  `cd DepremApi`\n\n\u003cb\u003e3 )\u003c/b\u003e Create a jar file though this command `mvn clean install`\n\n\u003cb\u003e4 )\u003c/b\u003e Run the project though this command `mvn spring-boot:run`\n\n#### AWS \n\n\u003cb\u003e1 )\u003c/b\u003e Create an \u003cb\u003eEnvironment\u003c/b\u003e in \u003cb\u003eAWS Console\u003c/b\u003e with defining app's name and uploading its jar file \n\n\u003cb\u003e2 )\u003c/b\u003e Go to \u003cb\u003eConfiguration\u003c/b\u003e and Select \u003cb\u003eSoftware\u003c/b\u003e Section and Define \u003cb\u003eSERVER_PORT\u003c/b\u003e as its port number \u003cb\u003e5000\u003c/b\u003e \n\n\n### Explore Rest APIs\n\u003ctable style=\"width:100%\"\u003e\n  \u003ctr\u003e\n    \u003cth\u003eMethod\u003c/th\u003e\n    \u003cth\u003eUrl\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n    \u003cth\u003eLocal\u003c/th\u003e\n    \u003cth\u003eAWS\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eGET\u003c/td\u003e\n    \u003ctd\u003e/api/v1/earthquakes/kandili\u003c/td\u003e\n    \u003ctd\u003eGet All earthquakes list from Kandilli\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"README.md#earthquakes_kandili\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"README.md#earthquakes_kandili_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd\u003eGET\u003c/td\u003e\n      \u003ctd\u003e/api/v1/earthquakes/afad\u003c/td\u003e\n      \u003ctd\u003e Get All earthquakes list from Afad\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd\u003eGET\u003c/td\u003e\n      \u003ctd\u003e/api/v1/earthquakes/kandili/locations/{city_name}\u003c/td\u003e\n      \u003ctd\u003e Get All earthquakes list from Afad\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_kandili_locations\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_kandili_locations_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd\u003eGET\u003c/td\u003e\n      \u003ctd\u003e/api/v1/earthquakes/afad/locations/{city_name}\u003c/td\u003e\n      \u003ctd\u003eFilter By Location For Afad\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_locations\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_locations_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd\u003eGET\u003c/td\u003e\n      \u003ctd\u003e/api/v1/earthquakes/kandili/sizes/{size_value}\u003c/td\u003e\n      \u003ctd\u003e Filter By Size ML For Kandilli \u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_sizes\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_sizes_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd\u003eGET\u003c/td\u003e\n      \u003ctd\u003e/api/v1/earthquakes/afad/sizes/{size_value}\u003c/td\u003e\n      \u003ctd\u003eFilter By Location For Afad\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_sizes\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_sizes_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd\u003eGET\u003c/td\u003e\n      \u003ctd\u003e/api/v1/earthquakes/kandili/search?location={city_name}\u0026size={size_value}\u003c/td\u003e\n      \u003ctd\u003eFilter By Location And Size For Kandilli\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_kandilli_search\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_kandilli_search_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd\u003eGET\u003c/td\u003e\n      \u003ctd\u003e/api/v1/earthquakes/afad/search?location={city_name}\u0026size={size_value}\u003c/td\u003e\n      \u003ctd\u003eFilter By Location And Size For Afad\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_search\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_search_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd\u003eGET\u003c/td\u003e\n      \u003ctd\u003e/api/v1/earthquakes/kandili/sizes?minml={minml_value}\u0026maxml={maxml_value}\u003c/td\u003e\n      \u003ctd\u003eFilter By Size Between Two ML For Kandili\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_kandili_sizes\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_kandili_sizes_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n      \u003ctd\u003eGET\u003c/td\u003e\n      \u003ctd\u003e/api/v1/earthquakes/afad/sizes?minml={minml_value}\u0026maxml={maxml_value}\u003c/td\u003e\n      \u003ctd\u003eFilter By Size Between Two ML For Afad\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_sizes\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003ca href=\"README.md#earthquakes_afad_sizes_aws\"\u003eInfo\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n### Used Dependencies\n* Spring Boot Web\n* Java Stream API\n* JUnit\n* Jsoup\n* Log4j2\n* Lombok\n* Swagger\n* AWS Elastic Beanstalk\n\n\n### Endpoints Information\n\n##### \u003ca id=\"earthquakes_kandili\"\u003e\u003c/a\u003e  Get All earthquakes list from Kandilli\n``` \n    http://localhost:8080/api/v1/earthquakes/kandili \n```\n\n##### \u003ca id=\"earthquakes_afad\"\u003e\u003c/a\u003e Get All earthquakes list from Afad\n``` \n    http://localhost:8080/api/v1/earthquakes/afad \n```\n\n##### \u003ca id=\"earthquakes_kandili_locations\"\u003e\u003c/a\u003e Filter By Location For Kandilli\n```\n   http://localhost:8080/api/v1/earthquakes/kandili/locations/{city_name} \n   \n   http://localhost:8080/api/v1/earthquakes/kandili/locations/malatya\n```\n\n##### \u003ca id=\"earthquakes_afad_locations\"\u003e\u003c/a\u003e Filter By Location For Afad\n```\n   http://localhost:8080/api/v1/earthquakes/afad/locations/{city_name}\n   \n   http://localhost:8080/api/v1/earthquakes/afad/locations/malatya\n```\n\n##### \u003ca id=\"earthquakes_kandili_sizes\"\u003e\u003c/a\u003e Filter By Size ML For Kandilli\n```\n   http://localhost:8080/api/v1/earthquakes/kandili/sizes/{size_value}\n   \n   http://localhost:8080/api/v1/earthquakes/kandili/sizes/3.2\n```\n\n##### \u003ca id=\"earthquakes_afad_sizes\"\u003e\u003c/a\u003e Filter By Size ML For Afad\n```\n   http://localhost:8080/api/v1/earthquakes/afad/sizes/{size_value}\n   \n   http://localhost:8080/api/v1/earthquakes/afad/sizes/3.2\n```\n\n##### \u003ca id=\"earthquakes_kandilli_search\"\u003e\u003c/a\u003e Filter By Location And Size For Kandilli\n```\n   http://localhost:8080/api/v1/earthquakes/kandili/search?location={city_name}\u0026size={size_value}\n   \n   http://localhost:8080/api/v1/earthquakes/kandili/search?location=malatya\u0026size=3.2\n```\n\n##### \u003ca id=\"earthquakes_afad_search\"\u003e\u003c/a\u003e Filter By Location And Size For Afad\n```\n   http://localhost:8080/api/v1/earthquakes/afad/search?location={city_name}\u0026size={size_value}\n   \n   http://localhost:8080/api/v1/earthquakes/afad/search?location=malatya\u0026size=3.2\n```\n\n##### \u003ca id=\"earthquakes_kandili_sizes\"\u003e\u003c/a\u003e Filter By Size Between Two ML For Kandili\n```\n   http://localhost:8080/api/v1/earthquakes/kandili/sizes?minml={minml_value}\u0026maxml={maxml_value}\n   \n   http://localhost:8080/api/v1/earthquakes/kandili/sizes?minml=1.1\u0026maxml=4.4\n```\n\n##### \u003ca id=\"earthquakes_afad_sizes\"\u003e\u003c/a\u003e Filter By Size Between Two ML For Afad\n```\n   http://localhost:8080/api/v1/earthquakes/afad/sizes?minml={minml_value}\u0026maxml={maxml_value}\n   \n   http://localhost:8080/api/v1/earthquakes/afad/sizes?minml=1.1\u0026maxml=4.4\n```\n\n### Screenshots\n\n\u003cdetails\u003e\n\u003csummary\u003eClick here to show the screenshots of project\u003c/summary\u003e\n    \u003cp\u003e Figure 1 \u003c/p\u003e\n    \u003cimg src =\"screenshots/screenshot_1.PNG\"\u003e\n\u003c/details\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapter1990%2Fdepremapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapter1990%2Fdepremapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapter1990%2Fdepremapi/lists"}