{"id":32656437,"url":"https://github.com/rustysnek/restapi-specs","last_synced_at":"2026-02-26T19:40:02.364Z","repository":{"id":192651520,"uuid":"687132334","full_name":"RustySnek/restapi-specs","owner":"RustySnek","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-04T17:38:54.000Z","size":819,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-09-05T06:03:25.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RustySnek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-04T17:30:27.000Z","updated_at":"2023-09-05T06:03:26.742Z","dependencies_parsed_at":null,"dependency_job_id":"4025f9ec-f6cf-492e-a20f-05e7163fad65","html_url":"https://github.com/RustySnek/restapi-specs","commit_stats":null,"previous_names":["rustysnek/restapi-specs"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/RustySnek/restapi-specs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustySnek%2Frestapi-specs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustySnek%2Frestapi-specs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustySnek%2Frestapi-specs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustySnek%2Frestapi-specs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RustySnek","download_url":"https://codeload.github.com/RustySnek/restapi-specs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustySnek%2Frestapi-specs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281976636,"owners_count":26592973,"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","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-31T11:01:43.227Z","updated_at":"2025-10-31T11:02:37.896Z","avatar_url":"https://github.com/RustySnek.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to host Swagger API documentation with GitHub Pages\n[\u003cimg alt=\"The blog of Peter Evans: How to Host Swagger Documentation With Github Pages\" title=\"View blog post\" src=\"https://peterevans.dev/img/blog-published-badge.svg\"\u003e](https://peterevans.dev/posts/how-to-host-swagger-docs-with-github-pages/)\n\nThis repository is a template for using the [Swagger UI](https://github.com/swagger-api/swagger-ui) to dynamically generate beautiful documentation for your API and host it for free with GitHub Pages.\n\nThe template will periodically auto-update the Swagger UI dependency and create a pull request. See the [GitHub Actions workflow here](.github/workflows/update-swagger.yml).\n\nThe example API specification used by this repository can be seen hosted at [https://peter-evans.github.io/swagger-github-pages](https://peter-evans.github.io/swagger-github-pages/).\n\n## Steps to use this template\n\n1. Click the `Use this template` button above to create a new repository from this template.\n\n2. Go to the settings for your repository at `https://github.com/{github-username}/{repository-name}/settings` and enable GitHub Pages.\n\n    ![Headers](/screenshots/swagger-github-pages.png?raw=true)\n    \n3. Browse to the Swagger documentation at `https://{github-username}.github.io/{repository-name}/`.\n\n\n## Steps to manually configure in your own repository\n\n1. Download the latest stable release of the Swagger UI [here](https://github.com/swagger-api/swagger-ui/releases).\n\n2. Extract the contents and copy the \"dist\" directory to the root of your repository.\n\n3. Move the file \"index.html\" from the directory \"dist\" to the root of your repository.\n    ```\n    mv dist/index.html .\n    ```\n    \n4. Copy the YAML specification file for your API to the root of your repository.\n\n5. Edit [dist/swagger-initializer.js](dist/swagger-initializer.js) and change the `url` property to reference your local YAML file. \n    ```javascript\n        window.ui = SwaggerUIBundle({\n            url: \"swagger.yaml\",\n        ...\n    ```\n    Then fix any references to files in the \"dist\" directory.\n    ```html\n    ...\n    \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"dist/swagger-ui.css\" \u003e\n    \u003clink rel=\"icon\" type=\"image/png\" href=\"dist/favicon-32x32.png\" sizes=\"32x32\" /\u003e\n    \u003clink rel=\"icon\" type=\"image/png\" href=\"dist/favicon-16x16.png\" sizes=\"16x16\" /\u003e    \n    ...\n    \u003cscript src=\"dist/swagger-ui-bundle.js\"\u003e \u003c/script\u003e\n    \u003cscript src=\"dist/swagger-ui-standalone-preset.js\"\u003e \u003c/script\u003e    \n    ...\n    ```\n    \n6. Go to the settings for your repository at `https://github.com/{github-username}/{repository-name}/settings` and enable GitHub Pages.\n\n    ![Headers](/screenshots/swagger-github-pages.png?raw=true)\n    \n7. Browse to the Swagger documentation at `https://{github-username}.github.io/{repository-name}/`.\n\n   The example API specification used by this repository can be seen hosted at [https://peter-evans.github.io/swagger-github-pages](https://peter-evans.github.io/swagger-github-pages/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustysnek%2Frestapi-specs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustysnek%2Frestapi-specs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustysnek%2Frestapi-specs/lists"}