{"id":106306,"date":"2021-12-17T11:00:00","date_gmt":"2021-12-17T09:00:00","guid":{"rendered":"https:\/\/examples.javacodegeeks.com\/?p=106306"},"modified":"2021-12-15T17:05:11","modified_gmt":"2021-12-15T15:05:11","slug":"getting-started-with-python-fastapi","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/","title":{"rendered":"Getting Started with Python FastAPI"},"content":{"rendered":"<p>Hello in this tutorial, we will understand how to use FastAPI in python programming to develop fast and high-performance Restful endpoints.<\/p>\n<h2>1. Introduction<\/h2>\n<p><strong>FastAPI<\/strong> is a fast and high-performance web framework for building api with python 3.6+. It offers many features like:<\/p>\n<ul>\n<li>High performance<\/li>\n<li>Automatic interactive code generation<\/li>\n<li>Offers great editor support and documentation<\/li>\n<\/ul>\n<p>In this tutorial, we will focus on the basic implementation of FastAPI and play around with it.<\/p>\n<h3>1.1 Setting up Python<\/h3>\n<p>If someone needs to go through the Python installation on Windows, please watch <a href=\"https:\/\/www.youtube.com\/watch?v=i-MuSAwgwCU\" target=\"_blank\" rel=\"noopener\">this<\/a> link. You can download the Python from <a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">this<\/a> link.<\/p>\n<h2>2. Variables in Python<\/h2>\n<p>I am using <a href=\"https:\/\/www.jetbrains.com\/pycharm\/\" target=\"_blank\" rel=\"noopener\">JetBrains PyCharm<\/a> as my preferred IDE. You&#8217;re free to choose the IDE of your choice.<\/p>\n<h3>2.1 Creating a requirements file<\/h3>\n<p>Add the below code to the requirements file. The file will be responsible to download and install the packages required for this tutorial.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>requirements.txt<\/em><\/span><\/p>\n<pre class=\"brush:plain;\">fastapi\nuvicorn\n<\/pre>\n<h3>2.2 Creating an implementation file<\/h3>\n<p>Add the below code to the python script. The script will be responsible to expose the Restful endpoints using the FastAPI and will also generate the interactive swagger documentation automatically.<\/p>\n<ul>\n<li>Health check endpoint<\/li>\n<li>Get all todos endpoint<\/li>\n<li>Get todo by id endpoint<\/li>\n<\/ul>\n<p>You\u2019re free to play around with these methods as per your wish.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>index.py<\/em><\/span><\/p>\n<pre class=\"brush:python;\"># fast api implementation.\n# swagger documentation - http:\/\/localhost:5001\/docs\n# redocs documentation - http:\/\/localhost:5001\/redoc\n\nimport uvicorn\nfrom fastapi import FastAPI, APIRouter\n\nTODOS = [\n    {\n        \"id\": 1,\n        \"text\": \"Learn about Polymer\",\n        \"created_at\": \"Mon Apr 26 06:01:55 +0000 2015\",\n        \"Tags\": [\n            \"Web Development\",\n            \"Web Components\"\n        ],\n        \"is_complete\": \"true\"\n    },\n    {\n        \"id\": 2,\n        \"text\": \"Watch Pluralsight course on Docker\",\n        \"created_at\": \"Tue Mar 02 07:01:55 +0000 2015\",\n        \"Tags\": [\n            \"Devops\",\n            \"Docker\"\n        ],\n        \"is_complete\": \"true\"\n    },\n    {\n        \"id\": 3,\n        \"text\": \"Complete presentation prep for Aurelia presentation\",\n        \"created_at\": \"Wed Mar 05 10:01:55 +0000 2015\",\n        \"Tags\": [\n            \"Presentation\",\n            \"Aureia\"\n        ],\n        \"is_complete\": \"false\"\n    },\n    {\n        \"id\": 4,\n        \"text\": \"Instrument creation of development environment with Puppet\",\n        \"created_at\": \"Fri June 30 13:00:00 +0000 2015\",\n        \"Tags\": [\n            \"Devops\",\n            \"Puppet\"\n        ],\n        \"is_complete\": \"false\"\n    },\n    {\n        \"id\": 5,\n        \"text\": \"Transition code base to ES6\",\n        \"created_at\": \"Mon Aug 01 10:00:00 +0000 2015\",\n        \"Tags\": [\n            \"ES6\",\n            \"Web Development\"\n        ],\n        \"is_complete\": \"false\"\n    }\n]\n\n# 1\napp = FastAPI(\n    title=\"Hello world app\"\n)\n\n# 2\napi_router = APIRouter()\n\n\n# 3\n\n# endpoint- http:\/\/localhost:5001\/\n@api_router.get(\"\/\", description=\"health check\", status_code=200)\ndef index():\n    return {\n        \"status\": \"ok\",\n        \"message\": \"app is up and running\"\n    }\n\n\n# endpoint- http:\/\/localhost:5001\/todos\n@api_router.get(\"\/todos\", description=\"get all todo items\", status_code=200)\ndef get_todos():\n    print(\"Getting all todo list\")\n    return {\n        \"status\": \"ok\",\n        \"items\": TODOS\n    }\n\n\n# endpoint- http:\/\/localhost:5001\/todo\/1\n@api_router.get(\"\/todo\/{key}\", description=\"get todo item by id\", status_code=200)\ndef get_todo(key: int):\n    print(\"Getting todo id={}\".format(key))\n    result = [todo for todo in TODOS if todo[\"id\"] == key]\n    if result:\n        return {\n            \"status\": \"ok\",\n            \"item\": result[0]\n        }\n    else:\n        return {\n            \"status\": \"not_found\",\n            \"message\": \"resource not found\"\n        }\n\n\n# 4\napp.include_router(api_router)\n\n# driver code\nif __name__ == '__main__':\n    uvicorn.run(app, host=\"localhost\", port=5001, log_level=\"debug\")\n<\/pre>\n<p>Run this python script once the module dependency is completed and if everything goes well the application will be started on the port number &#8211; <code>5001<\/code> as shown in the below logs.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p><span style=\"text-decoration: underline;\"><em>Application logs<\/em><\/span><\/p>\n<pre class=\"brush:plain;\">INFO:     Started server process [24428]\nINFO:     Waiting for application startup.\nINFO:     Application startup complete.\nINFO:     Uvicorn running on http:\/\/localhost:5001 (Press CTRL+C to quit)\n<\/pre>\n<h2>3. Demo<\/h2>\n<p>Open up the browser of your choice and hit the swagger documentation endpoint generated via the FastAPI. The documentation will list the endpoints created above.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Documentation endpoint<\/em><\/span><\/p>\n<pre class=\"brush:plain;\">http:\/\/localhost:5001\/docs\n<\/pre>\n<p>If everything goes well the documentation page will be shown as in Fig. 1.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/12\/python-swagerdocs-img-guide1.jpg\"><img decoding=\"async\" width=\"478\" height=\"473\" src=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/12\/python-swagerdocs-img-guide1.jpg\" alt=\"python fastapi - swagger doc\" class=\"wp-image-106307\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/12\/python-swagerdocs-img-guide1.jpg 478w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/12\/python-swagerdocs-img-guide1-300x297.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/12\/python-swagerdocs-img-guide1-70x70.jpg 70w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><\/a><figcaption>Fig. 1: Swagger documentation<\/figcaption><\/figure>\n<\/div>\n<p>That is all for this tutorial and I hope the article served you with whatever you were looking for. Happy Learning and do not forget to share!<\/p>\n<h2>4. Summary<\/h2>\n<p>In this tutorial, we learned about the FastAPI in python programming to generate the high-performance Restful endpoints. You can download the source code of this tutorial from the <a href=\"#projectDownload\">Downloads<\/a> section.<\/p>\n<h2><a name=\"projectDownload\"><\/a>5. Download the Project<\/h2>\n<p>This was a tutorial on how to implement FastAPI in python programming.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>You can download the full source code of this example here: <a href=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/12\/Getting-Started-with-Python-FastAPI.zip\"><strong>Getting Started with Python FastAPI<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hello in this tutorial, we will understand how to use FastAPI in python programming to develop fast and high-performance Restful endpoints. 1. Introduction FastAPI is a fast and high-performance web framework for building api with python 3.6+. It offers many features like: High performance Automatic interactive code generation Offers great editor support and documentation In &hellip;<\/p>\n","protected":false},"author":119,"featured_media":99891,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46689],"tags":[1716],"class_list":["post-106306","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Getting Started with Python FastAPI - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"FastAPI is a fast and high-performance web framework for building api with Python 3.6+. It offers Automatic interactive code generation\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Started with Python FastAPI - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"FastAPI is a fast and high-performance web framework for building api with Python 3.6+. It offers Automatic interactive code generation\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-17T09:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yatin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yatin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/\"},\"author\":{\"name\":\"Yatin\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13\"},\"headline\":\"Getting Started with Python FastAPI\",\"datePublished\":\"2021-12-17T09:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/\"},\"wordCount\":379,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\",\"keywords\":[\"python\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/\",\"name\":\"Getting Started with Python FastAPI - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\",\"datePublished\":\"2021-12-17T09:00:00+00:00\",\"description\":\"FastAPI is a fast and high-performance web framework for building api with Python 3.6+. It offers Automatic interactive code generation\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"set python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/web-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/web-development\/python\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Getting Started with Python FastAPI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13\",\"name\":\"Yatin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg\",\"caption\":\"Yatin\"},\"description\":\"An experience full-stack engineer well versed with Core Java, Spring\/Springboot, MVC, Security, AOP, Frontend (Angular &amp; React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).\",\"sameAs\":[\"https:\/\/www.javacodegeeks.com\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/yatin-batra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting Started with Python FastAPI - Java Code Geeks","description":"FastAPI is a fast and high-performance web framework for building api with Python 3.6+. It offers Automatic interactive code generation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/","og_locale":"en_US","og_type":"article","og_title":"Getting Started with Python FastAPI - Java Code Geeks","og_description":"FastAPI is a fast and high-performance web framework for building api with Python 3.6+. It offers Automatic interactive code generation","og_url":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2021-12-17T09:00:00+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","type":"image\/jpeg"}],"author":"Yatin","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Yatin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/"},"author":{"name":"Yatin","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13"},"headline":"Getting Started with Python FastAPI","datePublished":"2021-12-17T09:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/"},"wordCount":379,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","keywords":["python"],"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/","url":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/","name":"Getting Started with Python FastAPI - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","datePublished":"2021-12-17T09:00:00+00:00","description":"FastAPI is a fast and high-performance web framework for building api with Python 3.6+. It offers Automatic interactive code generation","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","width":150,"height":150,"caption":"set python"},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/getting-started-with-python-fastapi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Web Development","item":"https:\/\/examples.javacodegeeks.com\/category\/web-development\/"},{"@type":"ListItem","position":3,"name":"Python","item":"https:\/\/examples.javacodegeeks.com\/category\/web-development\/python\/"},{"@type":"ListItem","position":4,"name":"Getting Started with Python FastAPI"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13","name":"Yatin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg","caption":"Yatin"},"description":"An experience full-stack engineer well versed with Core Java, Spring\/Springboot, MVC, Security, AOP, Frontend (Angular &amp; React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).","sameAs":["https:\/\/www.javacodegeeks.com"],"url":"https:\/\/examples.javacodegeeks.com\/author\/yatin-batra\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/106306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/119"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=106306"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/106306\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/99891"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=106306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=106306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=106306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}