{"id":24503338,"url":"https://github.com/pointblue/pb-api-client-gen","last_synced_at":"2026-07-18T10:04:26.944Z","repository":{"id":57321131,"uuid":"118639999","full_name":"pointblue/pb-api-client-gen","owner":"pointblue","description":"Javascript API Client Generator","archived":false,"fork":false,"pushed_at":"2018-06-26T20:36:50.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-04T14:02:02.534Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pointblue.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}},"created_at":"2018-01-23T16:50:57.000Z","updated_at":"2018-06-26T20:36:52.000Z","dependencies_parsed_at":"2022-08-26T01:10:37.407Z","dependency_job_id":null,"html_url":"https://github.com/pointblue/pb-api-client-gen","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/pointblue%2Fpb-api-client-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblue%2Fpb-api-client-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblue%2Fpb-api-client-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblue%2Fpb-api-client-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pointblue","download_url":"https://codeload.github.com/pointblue/pb-api-client-gen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243701410,"owners_count":20333630,"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":"2025-01-21T23:16:57.798Z","updated_at":"2025-10-24T23:37:30.411Z","avatar_url":"https://github.com/pointblue.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javascript API Client Generator  \n\nGenerate a Javascript API client from a swagger document, using swagger client\ngenerator.  \n\nThis project just makes it easier to define and generate API clients.  \n\n## Installation  \n\nAll commands must be run from the root path of your project  \n\n  1. `npm install pb-api-client-gen --save-dev`  \n  2. Create an `apiClients.yml` file using the example below  \n  3. Edit your project's `package.json` file and add a property named `build-api` with the value `build-api` to the \n  `scripts` object. Use the example below for reference.  \n\n## Creating an `apiClients.yml` file  \n\n`apiClients.yml` should be in the root path of your project. This file defines the clients that will be generated.    \n\n### Example file\n\n```\n- name: SpeciesRequest\n  swaggerDefinitionUrl: http://localhost/api/docs/v3/species.swagger.yaml\n  outputDirectory: resources/js/angular/apiRequest/\n```  \n\n### Properties  \n\nThe following properties are required for each client that will be generated:  \n\n  - `name` - The name of the class that will be generated\n  - `swaggerDefinitionUrl` - URL of the target swagger definition\n  - `outputDirectory` - Destination path of generated clients  \n  \n## Generating API code  \n\n  1. Edit the `package.json` file of your project. Use the example below for reference.\n  2. Run `npm run build-app` to generate the client code.  \n\nExample:  \n\n```\n  \"scripts\": {\n    \"build-api\": \"build-api\"\n  }\n```\n\n## Notes  \n\nThis project is mostly a wrapper for [https://github.com/wcandillon/swagger-js-codegen](https://github.com/wcandillon/swagger-js-codegen)  \n\nCreating an npm command - [http://blog.npmjs.org/post/118810260230/building-a-simple-command-line-tool-with-npm](http://blog.npmjs.org/post/118810260230/building-a-simple-command-line-tool-with-npm)  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointblue%2Fpb-api-client-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpointblue%2Fpb-api-client-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointblue%2Fpb-api-client-gen/lists"}