{"id":12612,"date":"2023-10-20T07:08:37","date_gmt":"2023-10-20T05:08:37","guid":{"rendered":"https:\/\/flaven.fr\/?post_type=bf_videos_manager&#038;p=12612"},"modified":"2023-10-20T07:18:04","modified_gmt":"2023-10-20T05:18:04","slug":"3-how-to-create-an-api-with-fastapi-and-start-testing-it-with-pytest","status":"publish","type":"bf_videos_manager","link":"https:\/\/flaven.fr\/videos\/3-how-to-create-an-api-with-fastapi-and-start-testing-it-with-pytest\/","title":{"rendered":"#3 How-to create an API with FastAPI and start testing it with pytest"},"content":{"rendered":"<p>I only grab the API and the test (pytest) from this project. In reality, it is a bit more extended project, made by Microsoft&#8217;s people to promote Azure platform, using cookiecutter. Here is the full description of the initial project: &#8220;A python cookiecutter API for quick deployments of spaCy models with FastAPI. The API interface is compatible with Azure Search Cognitive Skills.<\/p>\n<p>This video is part of the post &#8220;How to expose NLP Machine Learning Models mostly for Spacy by quickly building an API with FastAPI and then play with them&#8221; at <a href=\"https:\/\/wp.me\/p3Vuhl-3fO\" target=\"_blank\" rel=\"noopener\">https:\/\/wp.me\/p3Vuhl-3fO<\/a><\/p>\n<p>Look for the directory &#8220;011_cookiecutter_spacy_fastapi&#8221; in the code can be found at <a href=\"https:\/\/bit.ly\/3ENHrZR\" target=\"_blank\" rel=\"noopener\">https:\/\/bit.ly\/3ENHrZR<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I only grab the API and the test (pytest) from this project. In reality, it is a bit more extended project, made by Microsoft&#8217;s people&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/videos\/3-how-to-create-an-api-with-fastapi-and-start-testing-it-with-pytest\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">#3 How-to create an API with FastAPI and start testing it with pytest<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":11699,"comment_status":"open","ping_status":"closed","template":"","bf_videos_manager_tag":[2685,2756,2866,2986,2882,2752,3057,2800,2802,2755,2754,2672,2688,2753],"bf_videos_manager_cat":[2729,2700,2681,2682,2678,2721,2679,2680],"class_list":["post-12612","bf_videos_manager","type-bf_videos_manager","status-publish","has-post-thumbnail","hentry","bf_videos_manager_tag-anaconda","bf_videos_manager_tag-api","bf_videos_manager_tag-application","bf_videos_manager_tag-chatgpt","bf_videos_manager_tag-creation","bf_videos_manager_tag-development","bf_videos_manager_tag-fastapi","bf_videos_manager_tag-ia","bf_videos_manager_tag-language","bf_videos_manager_tag-learning","bf_videos_manager_tag-learning-by-doing","bf_videos_manager_tag-python","bf_videos_manager_tag-spacy","bf_videos_manager_tag-testing","bf_videos_manager_cat-agile","bf_videos_manager_cat-anaconda","bf_videos_manager_cat-development","bf_videos_manager_cat-experiences","bf_videos_manager_cat-python","bf_videos_manager_cat-training","bf_videos_manager_cat-tutorials","bf_videos_manager_cat-videos"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager\/12612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/bf_videos_manager"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=12612"}],"version-history":[{"count":1,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager\/12612\/revisions"}],"predecessor-version":[{"id":12613,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager\/12612\/revisions\/12613"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/11699"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=12612"}],"wp:term":[{"taxonomy":"bf_videos_manager_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager_tag?post=12612"},{"taxonomy":"bf_videos_manager_cat","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager_cat?post=12612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}