{"id":19040138,"url":"https://github.com/logisticinfotech/sails-hook-actions2-swagger","last_synced_at":"2025-08-20T00:09:49.925Z","repository":{"id":97377080,"uuid":"166407795","full_name":"logisticinfotech/sails-hook-actions2-swagger","owner":"logisticinfotech","description":"sailsjs hook swagger generator","archived":false,"fork":false,"pushed_at":"2019-08-03T09:22:08.000Z","size":47,"stargazers_count":6,"open_issues_count":2,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-15T02:55:11.627Z","etag":null,"topics":["actions2","sails-hook","sails-hook-swagger","sailsjs-action2","sailsjs-actions2-swagger","sailsjs-swagger","swagger-generator","swagger-ui"],"latest_commit_sha":null,"homepage":"https://www.logisticinfotech.com/blog/sails-hook-actions2-swagger-generator/","language":"JavaScript","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/logisticinfotech.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-01-18T13:18:00.000Z","updated_at":"2021-12-11T13:23:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3749cbc-1c61-41d4-ba73-63d5914292f1","html_url":"https://github.com/logisticinfotech/sails-hook-actions2-swagger","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.5333333333333333,"last_synced_commit":"2b392038a4e3e0a7298b8487a7a7a3bf91cd3e44"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/logisticinfotech/sails-hook-actions2-swagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-actions2-swagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-actions2-swagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-actions2-swagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-actions2-swagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logisticinfotech","download_url":"https://codeload.github.com/logisticinfotech/sails-hook-actions2-swagger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-actions2-swagger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271242136,"owners_count":24724978,"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-08-19T02:00:09.176Z","response_time":63,"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":["actions2","sails-hook","sails-hook-swagger","sailsjs-action2","sailsjs-actions2-swagger","sailsjs-swagger","swagger-generator","swagger-ui"],"created_at":"2024-11-08T22:20:45.609Z","updated_at":"2025-08-20T00:09:49.899Z","avatar_url":"https://github.com/logisticinfotech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### sails-hook-actions2-swagger\n\n### Here is full article with step by step guidance [article](https://www.logisticinfotech.com/blog/sails-hook-actions2-swagger-generator).\n\n\nA sails hook that generates swagger json with inputs of actions2 and provides swagger-ui.\nWe have recently added support for controllers that doesn't have actions input.\n\n### Installation\n\n```\n$ npm i @logisticinfotech/sails-hook-actions2-swagger\n```\n\nAfter installation just `sails lift` and browse swagger doc at\nhttp://localhost:1337/swagger (assuming that you are using localhost and default port)\n\n#### For [nodemon](https://nodemon.io/) users\nuse `nodemon --ignore 'swagger.json'` as we are generating swagger files in that folder we need to ignore that changes.\n\n### Change / Customize Default Options\n\nCreate swagger.js inside your config folder (config/swagger.js). Copy and paste all setting from default [swagger.js](https://github.com/logisticinfotech/sails-hook-actions2-swagger/blob/master/swagger.js) file.\nYou must declare **swaggerConfig** to work (for ex. module.exports.swaggerConfig = {})\n\nBy default `disable: false`, you should disable it when it's not needed because this hook generates `swagger.json` on every `sails lift` you done.\n\nYou can update\n- basePath\n- externalDocs\n- host\n- contact\n- parameters\n- auth token header key\n- version of api\n  and almost every thing from here.\n\n### For Usage and more details see my [blog](https://www.logisticinfotech.com/blog/sails-hook-actions2-swagger-generator).\n\n### TODO\n- File Upload\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogisticinfotech%2Fsails-hook-actions2-swagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogisticinfotech%2Fsails-hook-actions2-swagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogisticinfotech%2Fsails-hook-actions2-swagger/lists"}