{"id":81784,"date":"2018-02-18T06:55:56","date_gmt":"2018-02-18T06:55:56","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/swagger-embed\/"},"modified":"2018-02-18T07:07:56","modified_gmt":"2018-02-18T07:07:56","slug":"embed-swagger","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/embed-swagger\/","author":6468808,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"4.9.29","requires":"4.6","requires_php":"5.2.4","requires_plugins":"","header_name":"Embed Swagger","header_author":"Grant Palin","header_description":"Provides a shortcode for embedding Swagger specs into pages or posts.","assets_banners_color":"ffffff","last_updated":"2018-02-18 07:07:56","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/grantpalin.com","rating":0,"author_block_rating":0,"active_installs":60,"downloads":1909,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog","faq"],"tags":[],"upgrade_notice":{"1.0.0":"<p>Initial release.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1824029","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1824029","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1824029","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1824029","resolution":"2","location":"assets"}},"screenshots":{"1":"Example usage of the shortcode within the page editor","2":"An example output of the Petstore spec on a site using the Twenty Thirteen theme (with a wider content area)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[230,80,153299],"plugin_category":[43,56],"plugin_contributors":[153300],"plugin_business_model":[],"class_list":["post-81784","plugin","type-plugin","status-closed","hentry","plugin_tags-embed","plugin_tags-shortcode","plugin_tags-swagger","plugin_category-customization","plugin_category-social-and-sharing","plugin_contributors-grantpalin","plugin_committers-grantpalin"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/embed-swagger_ffffff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/embed-swagger\/assets\/screenshot-1.png?rev=1824029","caption":"Example usage of the shortcode within the page editor"},{"src":"https:\/\/ps.w.org\/embed-swagger\/assets\/screenshot-2.png?rev=1824029","caption":"An example output of the Petstore spec on a site using the Twenty Thirteen theme (with a wider content area)"}],"raw_content":"<!--section=description-->\n<p>The shortcode provided by this plugin allows embedding Swagger <code>.json<\/code> files into WordPress pages and posts. An iframe is used to host the external content, with some styling to mesh it with the host page or post. The external spec is rendered using Swagger UI.<\/p>\n\n<p>Note that the Swagger UI styling seems to go up to 1500px in width. If the page or post container is less than 1500px wide, the Swagger UI output will appear slightly cut off on the right side, but will otherwise be intact and functional.<\/p>\n\n<p>Example shortcode usage:<\/p>\n\n<pre><code>[swagger url=\"Swagger .json URL goes here\"]\n<\/code><\/pre>\n\n<p>An absolute URL must be provided within the quotes. The URL must point to a valid Swagger spec file, typically ending with <code>.json<\/code>.<\/p>\n\n<p>Custom styles can be applied to the iframe by adding rules to <code>embed-swagger-container<\/code>, e.g.:<\/p>\n\n<pre><code>.embed-swagger-container {\n    \/* custom styles here *\/\n}\n<\/code><\/pre>\n\n<p>An included script forces the iframe to be as high as needed to show all the contained content, and a stylesheet forces the iframe to take the full width of the parent element.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/embed-swagger<\/code> directory, or install the plugin through the WordPress plugins screen directly (search for \"Embed Swagger\").<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/embed-swagger<\/code> directory, or install the plugin through the WordPress plugins screen directly (search for \"Embed Swagger\").<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol><\/dd>\n\n<\/dl>","raw_excerpt":"Provides a shortcode for embedding Swagger specs into pages or posts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/81784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=81784"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/grantpalin"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=81784"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=81784"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=81784"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=81784"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=81784"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=81784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}