{"id":22184,"date":"2018-07-20T12:15:22","date_gmt":"2018-07-20T09:15:22","guid":{"rendered":"https:\/\/www.webcodegeeks.com\/?p=22184"},"modified":"2018-07-23T12:21:32","modified_gmt":"2018-07-23T09:21:32","slug":"part-2-building-a-flask-restful-api","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/","title":{"rendered":"Part 2: Building a Flask RESTful API"},"content":{"rendered":"<p><em>This is the second of three posts about building a JSON API with Flask. <a href=\"https:\/\/www.webcodegeeks.com\/python\/part-1-sqlalchemy-models-to-json\/\" target=\"_blank\" rel=\"nofollow noopener\">Part 1<\/a> arrived yesterday and <a href=\"https:\/\/www.webcodegeeks.com\/python\/part-3-flask-api-decorators-helpers\/\" target=\"_blank\" rel=\"nofollow noopener\">part 3<\/a> is arriving tomorrow.<\/em><\/p>\n<p>In the <a href=\"https:\/\/www.webcodegeeks.com\/python\/part-1-sqlalchemy-models-to-json\/\" target=\"_blank\" rel=\"nofollow noopener\">previous post<\/a> we learned how to serialize SQLAlchemy models to\/from JSON. Now let\u2019s use that to build a RESTful JSON API with <a href=\"https:\/\/www.palletsprojects.com\/p\/flask\/\" target=\"_blank\" rel=\"nofollow noopener\">Flask<\/a>.<\/p>\n<h2>What is a RESTful API<\/h2>\n<p>A RESTfu API is a website that conforms to the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Representational_state_transfer\" target=\"_blank\" rel=\"nofollow noopener\">REST<\/a> conventions by allowing <a href=\"https:\/\/en.wikipedia.org\/wiki\/Create,_read,_update_and_delete\" target=\"_blank\" rel=\"nofollow noopener\">CRUD<\/a> operations on resources. Resources are the noun you are fetching or updating, for ex: Users or Goals. Unlike <a href=\"https:\/\/graphql.org\/\" target=\"_blank\" rel=\"nofollow noopener\">GraphQL<\/a>, where every resource shares the same url endpoint, RESTful APIs use a different url for each resource. That means Users would be at <code>yoursite.com\/api\/users<\/code> and Goals at <code>yoursite.com\/api\/goals<\/code>. When you visit <code>yoursite.com\/api\/users<\/code> in your browser, it should return JSON with a list of users.<\/p>\n<h2>A RESTful API with Flask<\/h2>\n<p><span style=\"text-decoration: underline;\"><em>Here\u2019s a simple Flask API that always returns an empty list of Users:<\/em><\/span><\/p>\n<pre class=\"brush:sql; wrap-lines:false\">from flask import Flask\r\napp = Flask(__name__)\r\n\r\n@app.route(\"\/api\/users\")\r\ndef users():\r\n    return \"[]\"\r\n\r\nif __name__ == \"__main__\":\r\n    app.run()\r\n<\/pre>\n<p><span style=\"text-decoration: underline;\"><em>Let\u2019s improve that to return a list of users from our database using SQLAlchemy.<\/em><\/span><\/p>\n<pre class=\"brush:sql; wrap-lines:false\">from flask import Flask, json\r\nfrom flask_sqlalchemy import SQLAlchemy\r\n\r\napp = Flask(__name__)\r\ndb = SQLAlchemy(app)\r\n\r\nclass User(BaseModel):\r\n    id = db.Column(UUID(), primary_key=True, default=uuid.uuid4)\r\n    username = db.Column(db.String(), nullabe=False, unique=True)\r\n    password = db.Column(db.String())\r\n    _default_fields = [\"username\"]\r\n    _hidden_fields = [\"password\"]\r\n\r\n@app.route(\"\/api\/users\")\r\ndef users():\r\n    return json.dumps([user.to_dict() for user in User.query.all()])\r\n\r\nif __name__ == \"__main__\":\r\n    app.run()\r\n<\/pre>\n<p>The <code>BaseModel<\/code> class is the one we created in <a href=\"https:\/\/www.webcodegeeks.com\/python\/part-1-sqlalchemy-models-to-json\/\" target=\"_blank\" rel=\"nofollow noopener\">Part 1: SQLAlchemy Models as JSON<\/a>.<\/p>\n<p>Visiting <code>yoursite.com\/api\/users<\/code> in your browser you should see:<\/p>\n<pre class=\"brush:sql; wrap-lines:false\">[{\"id\": \"488345de-88a1-4c87-9304-46a1a31c9414\", \"username\": \"zzzeek\"}]\r\n<\/pre>\n<p>Following this pattern, we create <code>GET<\/code> resources for all our SQLAlchemy models.<\/p>\n<h2>Updating Models with PUT method<\/h2>\n<p>Most APIs support more than just <code>GET<\/code> requests. To update Users let\u2019s add a <code>PUT<\/code> method that accepts JSON and updates a User\u2019s attributes. This example depends on <a href=\"https:\/\/wtforms.readthedocs.io\/en\/stable\/\" target=\"_blank\" rel=\"nofollow noopener\">WTForms<\/a> and <a href=\"https:\/\/wtforms-json.readthedocs.io\/en\/latest\/\" target=\"_blank\" rel=\"nofollow noopener\">WTForms-JSON<\/a> libraries for input validation.<\/p>\n<pre class=\"brush:sql; wrap-lines:false\">@app.route(\"\/api\/users\/&lt;string:user_id&gt;\", methods=['PUT'])\r\ndef users_update(user_id):\r\n    user = User.query.get(user_id)\r\n    form = UserForm.from_json(request.get_json())\r\n    if not form.validate():\r\n        return jsonify(errors=form.errors), 400\r\n    user.from_dict(**form.data)\r\n    db.session.commit()\r\n    return jsonify(user=user.to_dict())\r\n<\/pre>\n<p>Sending <code>{\"username\": \"zoe\"}<\/code> to <code>yoursite.com\/api\/users\/488345de-88a1-4c87-9304-46a1a31c9414<\/code> updates User with a new username. We validate user input with <a href=\"https:\/\/wtforms.readthedocs.io\/en\/stable\/\" target=\"_blank\" rel=\"nofollow noopener\">WTForms<\/a> and control which database columns are readable and writable with our <a href=\"https:\/\/wakatime.com\/blog\/32-part-1-sqlalchemy-models-to-json\" target=\"_blank\" rel=\"nofollow noopener\">BaseModel SQLAlchemy class<\/a>.<\/p>\n<h3>Conclusion<\/h3>\n<p>Now that we\u2019re building APIs with Flask, it\u2019s time to add extra features with some useful decorators and more <code>BaseModel<\/code> helper methods. Continue reading <a href=\"https:\/\/www.webcodegeeks.com\/python\/part-3-flask-api-decorators-helpers\/\" target=\"_blank\" rel=\"nofollow noopener\">Part 3: Flask API Decorators and Helpers<\/a>.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>Published on Web Code Geeks with permission by Alan Hamlett, partner at our <a href=\"\/\/www.webcodegeeks.com\/join-us\/wcg\/\" target=\"_blank\" rel=\"noopener\">WCG program<\/a>. See the original article here: <a href=\"https:\/\/wakatime.com\/blog\/33-part-2-building-a-flask-restful-api\" target=\"_blank\" rel=\"noopener\">Part 2: Building a Flask RESTful API<\/a><\/p>\n<p>Opinions expressed by Web Code Geeks contributors are their own.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is the second of three posts about building a JSON API with Flask. Part 1 arrived yesterday and part 3 is arriving tomorrow. In the previous post we learned how to serialize SQLAlchemy models to\/from JSON. Now let\u2019s use that to build a RESTful JSON API with Flask. What is a RESTful API A &hellip;<\/p>\n","protected":false},"author":7205,"featured_media":1651,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[465,40,322],"class_list":["post-22184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-flask","tag-json","tag-rest"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Part 2: Building a Flask RESTful API - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Interested to learn about flask restful api? Then check out our article where we use SQLAlchemy models to build a RESTful JSON API with Flask Part 2 of 3!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Part 2: Building a Flask RESTful API - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Interested to learn about flask restful api? Then check out our article where we use SQLAlchemy models to build a RESTful JSON API with Flask Part 2 of 3!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-20T09:15:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-07-23T09:21:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/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=\"Alan Hamlett\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@alanhamlett\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alan Hamlett\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/\"},\"author\":{\"name\":\"Alan Hamlett\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/44e870ec5ce29036f262cee9e1d86d16\"},\"headline\":\"Part 2: Building a Flask RESTful API\",\"datePublished\":\"2018-07-20T09:15:22+00:00\",\"dateModified\":\"2018-07-23T09:21:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/\"},\"wordCount\":336,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg\",\"keywords\":[\"Flask\",\"JSON\",\"REST\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/\",\"name\":\"Part 2: Building a Flask RESTful API - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg\",\"datePublished\":\"2018-07-20T09:15:22+00:00\",\"dateModified\":\"2018-07-23T09:21:32+00:00\",\"description\":\"Interested to learn about flask restful api? Then check out our article where we use SQLAlchemy models to build a RESTful JSON API with Flask Part 2 of 3!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Part 2: Building a Flask RESTful API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/44e870ec5ce29036f262cee9e1d86d16\",\"name\":\"Alan Hamlett\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/19c4b485cf5773d8c3f6981415dbf2cead5ec7b021e5b13e95a6085cfe8e1c04?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/19c4b485cf5773d8c3f6981415dbf2cead5ec7b021e5b13e95a6085cfe8e1c04?s=96&d=mm&r=g\",\"caption\":\"Alan Hamlett\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/alanhamlett\/\",\"https:\/\/x.com\/alanhamlett\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/alan-hamlett\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Part 2: Building a Flask RESTful API - Web Code Geeks - 2026","description":"Interested to learn about flask restful api? Then check out our article where we use SQLAlchemy models to build a RESTful JSON API with Flask Part 2 of 3!","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:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/","og_locale":"en_US","og_type":"article","og_title":"Part 2: Building a Flask RESTful API - Web Code Geeks - 2026","og_description":"Interested to learn about flask restful api? Then check out our article where we use SQLAlchemy models to build a RESTful JSON API with Flask Part 2 of 3!","og_url":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2018-07-20T09:15:22+00:00","article_modified_time":"2018-07-23T09:21:32+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","type":"image\/jpeg"}],"author":"Alan Hamlett","twitter_card":"summary_large_image","twitter_creator":"@alanhamlett","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Alan Hamlett","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/"},"author":{"name":"Alan Hamlett","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/44e870ec5ce29036f262cee9e1d86d16"},"headline":"Part 2: Building a Flask RESTful API","datePublished":"2018-07-20T09:15:22+00:00","dateModified":"2018-07-23T09:21:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/"},"wordCount":336,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","keywords":["Flask","JSON","REST"],"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/","url":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/","name":"Part 2: Building a Flask RESTful API - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","datePublished":"2018-07-20T09:15:22+00:00","dateModified":"2018-07-23T09:21:32+00:00","description":"Interested to learn about flask restful api? Then check out our article where we use SQLAlchemy models to build a RESTful JSON API with Flask Part 2 of 3!","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/python\/part-2-building-a-flask-restful-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/www.webcodegeeks.com\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Part 2: Building a Flask RESTful API"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/44e870ec5ce29036f262cee9e1d86d16","name":"Alan Hamlett","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/19c4b485cf5773d8c3f6981415dbf2cead5ec7b021e5b13e95a6085cfe8e1c04?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19c4b485cf5773d8c3f6981415dbf2cead5ec7b021e5b13e95a6085cfe8e1c04?s=96&d=mm&r=g","caption":"Alan Hamlett"},"sameAs":["https:\/\/www.linkedin.com\/in\/alanhamlett\/","https:\/\/x.com\/alanhamlett"],"url":"https:\/\/www.webcodegeeks.com\/author\/alan-hamlett\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/22184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/7205"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=22184"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/22184\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/1651"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=22184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=22184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=22184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}