{"id":18435832,"url":"https://github.com/darekf77/ng2-rest-swagger-generator","last_synced_at":"2025-04-07T20:32:19.746Z","repository":{"id":54497395,"uuid":"78961564","full_name":"darekf77/ng2-rest-swagger-generator","owner":"darekf77","description":"Generate Angular 2+ services from swagger.json","archived":false,"fork":false,"pushed_at":"2025-04-06T16:46:58.000Z","size":630,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T17:33:56.555Z","etag":null,"topics":["angular2","angular4","code-generator","swagger-codegen","swagger-generator"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/darekf77.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-14T19:24:04.000Z","updated_at":"2025-04-06T16:47:02.000Z","dependencies_parsed_at":"2023-11-26T16:24:37.454Z","dependency_job_id":"d9d5dda4-2590-4ecd-93fa-1f8998ff09c6","html_url":"https://github.com/darekf77/ng2-rest-swagger-generator","commit_stats":{"total_commits":248,"total_committers":3,"mean_commits":82.66666666666667,"dds":0.2701612903225806,"last_synced_commit":"889fc439d2ee71e08bfa4d0d18f696371a6436b7"},"previous_names":[],"tags_count":82,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Fng2-rest-swagger-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Fng2-rest-swagger-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Fng2-rest-swagger-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Fng2-rest-swagger-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darekf77","download_url":"https://codeload.github.com/darekf77/ng2-rest-swagger-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526234,"owners_count":20953132,"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":["angular2","angular4","code-generator","swagger-codegen","swagger-generator"],"created_at":"2024-11-06T06:09:27.704Z","updated_at":"2025-04-07T20:32:19.043Z","avatar_url":"https://github.com/darekf77.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ng2-rest-swagger-generator ##\n\nGenerate services for Angular2+ from your swagger.json files. \n\n## Instalation \n\n    npm install ng2-rest-swagger-generator -g\n\n## Usage\n\n    ng2-rest-swagger-generateor \\\n      --json ~/api_swagger.json \\           # local swagger json file  or \n      --json http://api.com/swagger.json \\  # external link to swagger json\n      --base my_api_from_swagger_json\n\nIt will generate **my_api_from_swagger_json** folder with angular2_ module. \n\nYour can alsow ommit **--base** param, default out folder is \"**api**\".\n\n## Import\n\nTo import generated module in **app.module** of you angular app do this:\n```ts\n    import { Ng2RestGenModule } from './api';\n    ...\n    imports: [ Ng2RestGenModule ],\n    ...\n```\n## Api url modyfication\n\nIt you wanna **change your base paths** just use property **enpointUrl** in Ng2RestGenModule module :\n\n```ts\n\tif(enviroment.production) {\n\t\tNg2RestGenModule.enpointUrls.myresource.myhost = 'https://myproductionhost.com'\n\t}\n```\n\n## Parameters description\n\n| param | description |\n| --- | --- |\n| --json | online links or local paths for swagger.json files   |\n| --base | output module folder  |\n| -s | if https protocole enable (one for all json-s) |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarekf77%2Fng2-rest-swagger-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarekf77%2Fng2-rest-swagger-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarekf77%2Fng2-rest-swagger-generator/lists"}