{"id":15655146,"url":"https://github.com/torxed/swagger-ui-mini","last_synced_at":"2025-03-24T01:44:27.128Z","repository":{"id":150500868,"uuid":"211501359","full_name":"Torxed/swagger-ui-mini","owner":"Torxed","description":"A minimal version of swagger-ui (No NodeJS, No Docker, No Dependencies)","archived":false,"fork":false,"pushed_at":"2020-03-05T14:11:47.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T16:55:24.454Z","etag":null,"topics":["no-dependencies","no-docker","no-nodejs","rest","rest-api","swagger","swagger-ui","swagger-ui-mini"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Torxed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-28T13:03:40.000Z","updated_at":"2023-04-30T20:48:27.000Z","dependencies_parsed_at":"2023-04-17T12:32:13.655Z","dependency_job_id":null,"html_url":"https://github.com/Torxed/swagger-ui-mini","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torxed%2Fswagger-ui-mini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torxed%2Fswagger-ui-mini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torxed%2Fswagger-ui-mini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torxed%2Fswagger-ui-mini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Torxed","download_url":"https://codeload.github.com/Torxed/swagger-ui-mini/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245195908,"owners_count":20575936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["no-dependencies","no-docker","no-nodejs","rest","rest-api","swagger","swagger-ui","swagger-ui-mini"],"created_at":"2024-10-03T12:56:35.513Z","updated_at":"2025-03-24T01:44:27.107Z","avatar_url":"https://github.com/Torxed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"https://hvornum.se/SwaggerUI-Mini.png\" height=\"80\"\u003e\n\nA minimal version of swagger-ui *(No NodeJS, No Docker, No Dependencies)*\n\n# Example\n\nA [Live Demo](https://hvornum.se/swagger-ui-mini/examples/example.html) can be viewed online.\u003cbr\u003e\nFor more complete examples, check under `/examples` and see what's in store.\n\n### Manifest\n```json\n{\n    \"urls\" : {\n        \"/pet\" : {\n            \"POST\" : {\n                \"description\" : \"Add a new pet to the store\",\n                \"payloads\" : {\n                    \"body\" : {\n                        \"flags\" : \"REQUIRED\",\n                        \"description\" : \"Pet object that needs to be added to the store\",\n                        \"data\" : {\n                            \"name\" : \"Cat name\",\n                            \"type\" : \"CAT\"\n                        },\n                        \"responses\" : {\n                            \"405\" : {\n                                \"description\" : \"Invalid input\"\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n```\n\n### HTML Page\n```html\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003c!-- Import the CSS --\u003e\n        \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"swagger.css\"\u003e\n    \n        \u003c!-- Define the manifest (null if you want it loaded later) --\u003e\n        \u003cscript type=\"text/javascript\"\u003e\n            let manifest = null;\n        \u003c/script\u003e\n    \n        \u003c!-- Import the swagger module --\u003e\n        \u003cscript type=\"module\"\u003e\n            import * as swagger from '/swagger.js';\n\n            window.onload = function() {\n                // Load a manifest, and once it's loaded - call a function().\n                swagger.load_manifest('/manifest.json', function() {\n                    swagger.load_urls(manifest['urls'], document.getElementById('table'));\n                });\n            }\n        \u003c/script\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003cdiv class=\"table\" id=\"table\"\u003e\n        \u003c/div\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorxed%2Fswagger-ui-mini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorxed%2Fswagger-ui-mini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorxed%2Fswagger-ui-mini/lists"}