{"id":13550161,"url":"https://github.com/Flutterando/shelf_swagger_ui","last_synced_at":"2025-04-02T23:32:00.553Z","repository":{"id":41554423,"uuid":"510172508","full_name":"Flutterando/shelf_swagger_ui","owner":"Flutterando","description":"Swagger UI plugin for Shelf","archived":false,"fork":false,"pushed_at":"2025-02-23T22:38:01.000Z","size":142,"stargazers_count":24,"open_issues_count":2,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-29T09:51:16.104Z","etag":null,"topics":["dart","shelf"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/shelf_swagger_ui","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Flutterando.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-04T01:11:07.000Z","updated_at":"2025-03-24T20:52:27.000Z","dependencies_parsed_at":"2022-08-03T00:30:54.659Z","dependency_job_id":null,"html_url":"https://github.com/Flutterando/shelf_swagger_ui","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/Flutterando%2Fshelf_swagger_ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fshelf_swagger_ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fshelf_swagger_ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flutterando%2Fshelf_swagger_ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flutterando","download_url":"https://codeload.github.com/Flutterando/shelf_swagger_ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911243,"owners_count":20853653,"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":["dart","shelf"],"created_at":"2024-08-01T12:01:29.613Z","updated_at":"2025-04-02T23:32:00.547Z","avatar_url":"https://github.com/Flutterando.png","language":"Dart","readme":"# Shelf SwaggerUI\nPresent, clean and professional documentation with Swagger + shelf;\n![alt text](https://raw.githubusercontent.com/Flutterando/shelf_swagger_ui/main/example.png)\n\n\n## Example\n\nGet a YAML or JSON schema file. Ex: (specs/swagger.yaml)\n```yaml\nopenapi: 3.0.0\ninfo:\n  description: \"API system\"\n  version: \"1.0.10\"\n  title: \"Swagger Test\"\nservers:\n  - url: http://my-service.info\n    description: Remote server\ntags:\n- name: \"user\"\n  description: \"Access to User\"\n\n```\n\nConfigure the handler with Shelf:\n\n\n```dart\nimport 'package:shelf/shelf_io.dart' as io;\nimport 'package:shelf_swagger_ui/shelf_swagger_ui.dart';\n\nvoid main(List\u003cString\u003e args) async {\n  final path = 'specs/swagger.yaml';\n  final handler = SwaggerUI.fromFile(File(path), title: 'Swagger Test');\n  var server = await io.serve(handler, '0.0.0.0', 4001);\n  print('Serving at http://${server.address.host}:${server.port}');\n}\n```\n\nThat`s it!","funding_links":[],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFlutterando%2Fshelf_swagger_ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFlutterando%2Fshelf_swagger_ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFlutterando%2Fshelf_swagger_ui/lists"}