{"id":18778312,"url":"https://github.com/ajsalemo/pythonflaskapi","last_synced_at":"2026-04-11T05:32:50.466Z","repository":{"id":103501130,"uuid":"298416898","full_name":"Ajsalemo/PythonFlaskAPI","owner":"Ajsalemo","description":"A Flask REST API that exposes some BMW M Performance model data.","archived":false,"fork":false,"pushed_at":"2022-02-28T23:14:10.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T15:30:21.632Z","etag":null,"topics":["api-rest","azure","bmw","flask","flask-sqlalchemy","gunicorn","jinja2","json","postgres","python","shell"],"latest_commit_sha":null,"homepage":"https://pythonflaskapi.azurewebsites.net/","language":"Python","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/Ajsalemo.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,"zenodo":null}},"created_at":"2020-09-24T23:18:18.000Z","updated_at":"2022-02-28T23:14:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e4dd2de-8ef6-4416-b914-0e799a30f778","html_url":"https://github.com/Ajsalemo/PythonFlaskAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ajsalemo/PythonFlaskAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2FPythonFlaskAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2FPythonFlaskAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2FPythonFlaskAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2FPythonFlaskAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ajsalemo","download_url":"https://codeload.github.com/Ajsalemo/PythonFlaskAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2FPythonFlaskAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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-rest","azure","bmw","flask","flask-sqlalchemy","gunicorn","jinja2","json","postgres","python","shell"],"created_at":"2024-11-07T20:15:52.965Z","updated_at":"2026-04-11T05:32:50.449Z","avatar_url":"https://github.com/Ajsalemo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PythonFlaskAPI\n\n### A small REST API that exposes data about BMW M performance models\n\nhttps://pythonflaskapi.azurewebsites.net/\n\n\u003cbr\u003e\n\n![Imgur](https://i.imgur.com/gDUvK1b.png)\n\n## Routes\n### /api/v1/cars/all - \n#### Retrieve all cars \n\n#### JSON Format - Array of Objects:\n\n     {\n        \"all_cars\": [\n              {\n                  \"Body\": \"Coupe\",\n                  \"Displacement\": \"3.5-litre\",\n                  \"Engine_Type\": \"l6\",\n                  \"Model\": \"M1\",\n                  \"Power\": \"273 hp\",\n                  \"Production\": \"1978-1981\",\n                  \"Production_Number\": \"453\",\n                  \"Type\": \"E26\",\n                  \"id\": 1\n              },\n              {\n                ....\n              },\n              {\n                ....\n              }\n           ]\n        }\n\n\u003cbr\u003e\n\n      \n### /api/v1/cars/all_models - \n#### Retrieve all models prefixed with the year, such as \"2006-2010 M3\"\n\n#### JSON Format - Array:\n\n       {\n          \"all_models\": [\n              \"1978-1981 M1\",\n              \"1980-1984 M535i\",\n              \"1984-1989 M635CSi\",\n              ....\n              ...\n              ..\n            ]\n        }\n        \n\u003cbr\u003e\n\n### /api/v1/cars/model_types - \n#### All generation types - ex. \"E46\" or \"E60\"\n\n#### JSON Format - Array:\n\n       {\n          \"all_models\": [\n            \"E26\",\n            \"E12\",\n            \"E24\",\n            ....\n            ...\n            ..\n          ]\n        }\n        \n\u003cbr\u003e\n        \n### /api/v1/cars/models/\u003cmodel\u003e - \n#### Specify a model information to retrieve, where \u003cmodel\u003e is the string based parameter - ex. /api/v1/cars/models/m3\n  \n#### JSON Format - Array of Objects - if multiple matching values are returned, they will be in the form of an Array of Objects:\n  \n       {\n           \"model\": [\n                {\n                  \"Body\": \"Coupe, Convertible\",\n                  \"Engine_Type\": \"l4\",\n                  \"Model\": \"M3\",\n                  \"Power\": \"191 hp to 234 hp\",\n                  \"Production_Number\": \"17,184 (Coupe); 786 (Convertible)\",\n                  \"Type\": \"E30\",\n                  \"Year\": \"1986-1991\",\n                  \"id\": 6\n                },\n                {\n                    \"Body\": \"Sedan with 4 doors; Coupe; Convertible\",\n                    \"Engine_Type\": \"l6\",\n                    \"Model\": \"M3\",\n                    \"Power\": \"240 hp to 316 hp\",\n                    \"Production_Number\": \"71,242\",\n                    \"Type\": \"E36\",\n                    \"Year\": \"1992-1999\",\n                    \"id\": 9\n                },\n                {\n                  ...\n                }\n              ]\n          }\n  \n### /api/v1/cars/types/\u003cgen_type\u003e - \n#### Specify a model type to retrieve, where \u003cgen_type\u003e is the generation - ex. /api/v1/cars/types/e60 \n\n#### JSON Format - Array of Objects - if multiple matching values are returned, they will be in the form of an Array of Objects:\n\n       {\n          \"type\": [\n            {\n              \"Body\": \"Coupe; Convertible\",\n              \"Engine_Type\": \"l6; V8\",\n              \"Model\": \"M3\",\n              \"Power\": \"337 hp to 374 hp\",\n              \"Production_Number\": \"85,744\",\n              \"Type\": \"E46\",\n              \"Year\": \"2000-2006\",\n              \"id\": 12\n            },\n            {\n              ...\n            }\n          ]\n       }\n       \n\u003cbr\u003e     \n       \n       \n### /api/v1/cars/\u003cint:id\u003e - \n#### Specify a model type by ID - where \u003cint:id\u003e is an integer based parameter - ex. /api/v1/cars/2\n#### JSON Format - Object:\n\n      {\n          \"response\": [\n            {\n                \"Body\": \"Sedan with 4 doors\",\n                \"Engine_Type\": \"l6\",\n                \"Model\": \"M535i\",\n                \"Power\": \"215 hp\",\n                \"Production_Number\": \"1,410\",\n                \"Type\": \"E12\",\n                \"Year\": \"1980-1984\",\n                \"id\": 2\n            }\n          ]\n        }\n      \n\u003cbr\u003e \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fpythonflaskapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajsalemo%2Fpythonflaskapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fpythonflaskapi/lists"}