{"id":18278614,"url":"https://github.com/renepardon/swagger-jsonapi-codegen","last_synced_at":"2025-10-30T01:32:07.270Z","repository":{"id":57375855,"uuid":"121504776","full_name":"renepardon/swagger-jsonapi-codegen","owner":"renepardon","description":"A code generator based on swagger-codegen ","archived":false,"fork":false,"pushed_at":"2025-02-06T11:21:46.000Z","size":103,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-02-08T03:08:54.011Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renepardon.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}},"created_at":"2018-02-14T11:46:49.000Z","updated_at":"2018-05-30T06:58:30.000Z","dependencies_parsed_at":"2022-09-02T16:29:13.785Z","dependency_job_id":null,"html_url":"https://github.com/renepardon/swagger-jsonapi-codegen","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renepardon%2Fswagger-jsonapi-codegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renepardon%2Fswagger-jsonapi-codegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renepardon%2Fswagger-jsonapi-codegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renepardon%2Fswagger-jsonapi-codegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renepardon","download_url":"https://codeload.github.com/renepardon/swagger-jsonapi-codegen/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238921039,"owners_count":19552678,"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":[],"created_at":"2024-11-05T12:25:16.906Z","updated_at":"2025-10-30T01:32:06.931Z","avatar_url":"https://github.com/renepardon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/npm/v/swagger-jsonapi-codegen.svg) ![](https://img.shields.io/npm/dt/swagger-jsonapi-codegen.svg) [![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg?v=102)](https://github.com/renepardon/swagger-jsonapi-codegen)\n\n[![NPM](https://nodei.co/npm/swagger-jsonapi-codegen.png?downloads=true\u0026downloadRank=true)](https://www.npmjs.com/package/swagger-jsonapi-codegen/)\n\n---\n\n# Swagger JSONAPI codegen\n\nGenerates valid Angular 4/5 (Typescript) API client file from Swagger documentation with Observables instead of Promises. The lib folder from this package is based on the *swagger-js-codegen*.\n\nWhere **-i** points to a valid swagger.json documentation and **-o** to a directory to save the client into. For all available options have a look at the **build-typescript.js** file.\n\n## CLI Options\n```\n  Usage: build-typescript [options]\n\n\n  Options:\n\n    -i, --input [path]        The file to use\n    -o, --output_path [path]  The output for the api ts to be placed\n    -n, --output_name [name]  Defaults to the api_\u003cversion\u003e.ts\n    -u, --url_host [url]      The host to the api, overrides the host in the swagger. EG: -u https://www.yourdomain.com\n    -h, --help                output usage information\n\n```\n\n## Examples \nSimple use case package.json script:\n\n    \"swagger-codegen\": \"node ./node_modules/ts-node/dist/bin.js ./node_modules/swagger-jsonapi-codegen/build-typescript.js -i ./documentation/build/swagger.json -o ./src/app/api/\"\n    \nOverride the base host from your swagger file:\n\n    \"swagger-codegen\": \"node ./node_modules/ts-node/dist/bin.js ./node_modules/swagger-jsonapi-codegen/build-typescript.js -i ./documentation/build/swagger.json -o ./src/app/api/ -u https://www.yourdomain.com\"","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenepardon%2Fswagger-jsonapi-codegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenepardon%2Fswagger-jsonapi-codegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenepardon%2Fswagger-jsonapi-codegen/lists"}