{"id":21970301,"url":"https://github.com/andrearcaina/fastapi-tutorial","last_synced_at":"2026-04-29T11:03:34.196Z","repository":{"id":229398371,"uuid":"776624878","full_name":"andrearcaina/fastapi-tutorial","owner":"andrearcaina","description":"FastAPI Tutorial for PACSxMOSS API Dev Workshop","archived":false,"fork":false,"pushed_at":"2024-03-28T01:44:46.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T22:42:56.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrearcaina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-03-24T02:35:44.000Z","updated_at":"2024-03-24T03:25:38.000Z","dependencies_parsed_at":"2024-11-29T14:38:47.145Z","dependency_job_id":null,"html_url":"https://github.com/andrearcaina/fastapi-tutorial","commit_stats":null,"previous_names":["andrearcaina/fastapi-showcase"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrearcaina/fastapi-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffastapi-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffastapi-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffastapi-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffastapi-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrearcaina","download_url":"https://codeload.github.com/andrearcaina/fastapi-tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrearcaina%2Ffastapi-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32422538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-29T14:38:31.766Z","updated_at":"2026-04-29T11:03:34.182Z","avatar_url":"https://github.com/andrearcaina.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Tutorial\n\nFastAPI Tutorial for PACSxMOSS API Dev Workshop\n\n# Steps\n\nThese are the following steps to create an API.\n\n1. Create a virtual environment (if you want)\n\n```bash\n\u003e py -m venv .venv # for windows\n$ python -m venv .venv # for linux\n```\n\n2. Activate the virtual environment (if you did step 1)\n\n```bash\n\u003e .venv\\Scripts\\activate # for windows\n$ source .venv/bin/activate # for linux\n```\n\n3. Install FastAPI and Uvicorn\n\n```bash\n\u003e pip install fastapi uvicorn\n```\n\n4. Create `main.py` just like in the repository, and run `uvicorn main:app --reload` in root directory.\nFor an in-depth understanding of an API, take a look at the slides [here](https://docs.google.com/presentation/d/1My6xQ1N1SMr7_Jarb1AqsfqdDeZAGn6ZJDVrmIj_urU/edit?usp=sharing)\n\n# Shortcut\nIf you want to shortcut everything, clone this repository (assuming you have [git](https://git-scm.com/) installed).\n1. Clone command -\u003e `git clone https://github.com/andrearcaina/fastapi-tutorial.git`\n   - run `pip install -r requirements.txt` to install all dependencies required for this tutorial!\n3. Then, run `uvicorn main:app --reload` to run the API.\n\nYou're good to go!\n\n# Swagger UI\nSwagger UI: allows ease of access to testing API endpoints\n\nSwagger UI allows anyone — be it your development team or your end consumers — to visualize and interact with the API's resources without having any of the implementation logic in place.\n\ngo to `localhost:8000/docs` or `127.0.0.1:8000/docs` to check out Swagger UI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrearcaina%2Ffastapi-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrearcaina%2Ffastapi-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrearcaina%2Ffastapi-tutorial/lists"}