{"id":124595,"date":"2020-06-27T00:47:18","date_gmt":"2020-06-26T16:47:18","guid":{"rendered":"http:\/\/4563.org\/?p=124595"},"modified":"2020-06-27T00:47:18","modified_gmt":"2020-06-26T16:47:18","slug":"fastapi-%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0-swagger-%e9%9a%90%e8%97%8f%e6%9f%90%e4%b8%aa%e5%85%b7%e4%bd%93-api-%e5%91%a2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=124595","title":{"rendered":"fastapi \u5982\u4f55\u5b9e\u73b0 swagger \u9690\u85cf\u67d0\u4e2a\u5177\u4f53 api \u5462"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  fastapi \u5982\u4f55\u5b9e\u73b0 swagger \u9690\u85cf\u67d0\u4e2a\u5177\u4f53 api \u5462               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yumenlong <\/span>  <span><i><\/i> 10<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u60f3\u7528 fastapi \u6765\u505a\u4e2a\u5c0f\u7ad9,\u63d0\u4f9b api,\u4f46\u90e8\u5206\u63a5\u53e3\u5982\u6ce8\u518c\u63a5\u53e3\u8fd9\u4e9b\u60f3\u9690\u85cf\u4e00\u4e0b,\u4e0d\u5728 swagger \u663e\u793a,\u8bf7\u95ee\u5982\u4f55\u5b9e\u73b0.      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2046824\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mirrorpen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90a3\u6ce8\u518c\u63a5\u53e3\u4e0d\u5199 swagger \u6ce8\u91ca\u4e0d\u5c31\u884c\u4e86\u5417\uff1f\u662f\u8fd9\u4e2a\u610f\u601d\u5417..                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2046825\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yRebelHero <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ApiIgnore                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2046826\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yumenlong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u627e\u5230\u4e86,@app.get(&#8220;\/items\/&#8221;, include_in_schema=False) To exclude a path operation from the generated OpenAPI schema (and thus, from the automatic documentation systems), use the parameter include_in_schema and set it to False;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>fastapi \u5982\u4f55\u5b9e\u73b0 swag&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/124595"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124595"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/124595\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124595"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}