{"_id":"@culttm/platzi-api-client","name":"@culttm/platzi-api-client","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@culttm/platzi-api-client","version":"1.0.0","description":"OpenAPI client for fakeStoreApiClient","author":{"name":"OpenAPI-Generator Contributors"},"repository":{"type":"git","url":"git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git"},"keywords":["openapi-client","openapi-generator"],"license":"Unlicense","peerDependencies":{"@angular/core":"^14.2.0","rxjs":"^7.4.0"},"module":"fesm2015/culttm-platzi-api-client.mjs","es2020":"fesm2020/culttm-platzi-api-client.mjs","esm2020":"esm2020/culttm-platzi-api-client.mjs","fesm2020":"fesm2020/culttm-platzi-api-client.mjs","fesm2015":"fesm2015/culttm-platzi-api-client.mjs","typings":"culttm-platzi-api-client.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./culttm-platzi-api-client.d.ts","esm2020":"./esm2020/culttm-platzi-api-client.mjs","es2020":"./fesm2020/culttm-platzi-api-client.mjs","es2015":"./fesm2015/culttm-platzi-api-client.mjs","node":"./fesm2015/culttm-platzi-api-client.mjs","default":"./fesm2020/culttm-platzi-api-client.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"},"bugs":{"url":"https://github.com/GIT_USER_ID/GIT_REPO_ID/issues"},"homepage":"https://github.com/GIT_USER_ID/GIT_REPO_ID#readme","_id":"@culttm/platzi-api-client@1.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.3.2","dist":{"integrity":"sha512-R3ZjXwEeyXwjLC4A8RTF7c8B13xFW8efHS03G4QCOmWj236qrbF/wdG4ENAAyFcVbFSvGkLj4DLuCALkRUwaCg==","shasum":"f17efa834dd9c132b5e99d84e7621ca091d4688e","tarball":"https://registry.npmjs.org/@culttm/platzi-api-client/-/platzi-api-client-1.0.0.tgz","fileCount":40,"unpackedSize":614175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBQZATRY6ZXjTfAg/VNfiEshnbl+uaJ/YZ/f8s9N/JlcAiEAqZGQJu+t/7X77BzKNEor8czsTcNV7jIb8EXD1yT0hU4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF3UoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlHA/+PAO+m8kWXQ0v2VM+vZdaRoXs++6DlOFSFZ6Px+cP0iE7kNUw\r\nZgseFCSnayfSrs0lAdKhpeqV/dukAi0SCdLTRktw8kCRfPY57JHX/k1JCuMx\r\nFb93twUEVeVCbr3FYmPrgKHpi4l9wls6Zy8gHW2DElJzNWGVeMsTtnW65N/Y\r\n0Z7EQvPdzgSnfKHuSU2zy+Xojrxa32S7ua78tc1vQ8GfFwCRZAFbojCGOnbF\r\na078jcs7o9aSJzr3yWW9drt+jRhXgM3SMOU9vKDULQdM85uo393Lfwy5iydV\r\ncQHtpwBQ1TBXqryn564eg1ld2s2KfXHKOtfE13LAykzTx6s8b4VnxyV6lywZ\r\n7B7EBkId4kGg345ag3Ux8qD32I5wlwDgZi+SYPMQjGJyZh8h7TAb/Np3vEfE\r\nyK+kepDvQqITYP0WPVoNJbeChL9BJdqbzViEv+OZ31Jq9O9OZJWPQbx6Tk6b\r\nrqZvojOCw2t4evOwsvoajOkbaNje1G69uU4A+P+G5PiPMQy7MN7x1BY8ol4S\r\nnEs92ngoPeUy3U3ftoK4bF08EFnA1T48oxvt5g04MJfewWXUtfuUNMfYaM7M\r\n/egGfAQcIZO+KQrKCk0ky3Ml1WWpQ/mWX8EX00aDwJcI1zcWtA87mOZ7Fy1k\r\nNFlf4RRUMFU4PvtZ6Z1ZP3fgIVM/6/AT9Z4=\r\n=7FQl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"culttm","email":"culttm@gmail.com"},"directories":{},"maintainers":[{"name":"culttm","email":"culttm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/platzi-api-client_1.0.0_1662481703898_0.6555830408011498"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-06T16:28:23.845Z","1.0.0":"2022-09-06T16:28:24.075Z","modified":"2022-09-06T16:28:24.257Z"},"maintainers":[{"name":"culttm","email":"culttm@gmail.com"}],"description":"OpenAPI client for fakeStoreApiClient","homepage":"https://github.com/GIT_USER_ID/GIT_REPO_ID#readme","keywords":["openapi-client","openapi-generator"],"repository":{"type":"git","url":"git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git"},"author":{"name":"OpenAPI-Generator Contributors"},"bugs":{"url":"https://github.com/GIT_USER_ID/GIT_REPO_ID/issues"},"license":"Unlicense","readme":"## fakeStoreApiClient@1.0.0\n\n### Building\n\nTo install the required dependencies and to build the typescript sources run:\n```\nnpm install\nnpm run build\n```\n\n### publishing\n\nFirst build the package then run ```npm publish dist``` (don't forget to specify the `dist` folder!)\n\n### consuming\n\nNavigate to the folder of your consuming project and run one of next commands.\n\n_published:_\n\n```\nnpm install fakeStoreApiClient@1.0.0 --save\n```\n\n_without publishing (not recommended):_\n\n```\nnpm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save\n```\n\n_It's important to take the tgz file, otherwise you'll get trouble with links on windows_\n\n_using `npm link`:_\n\nIn PATH_TO_GENERATED_PACKAGE/dist:\n```\nnpm link\n```\n\nIn your project:\n```\nnpm link fakeStoreApiClient\n```\n\n__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.\nPlease refer to this issue https://github.com/angular/angular-cli/issues/8284 for a solution / workaround.\nPublished packages are not effected by this issue.\n\n\n#### General usage\n\nIn your Angular project:\n\n\n```\n// without configuring providers\nimport { ApiModule } from 'fakeStoreApiClient';\nimport { HttpClientModule } from '@angular/common/http';\n\n@NgModule({\n    imports: [\n        ApiModule,\n        // make sure to import the HttpClientModule in the AppModule only,\n        // see https://github.com/angular/angular/issues/20575\n        HttpClientModule\n    ],\n    declarations: [ AppComponent ],\n    providers: [],\n    bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n```\n// configuring providers\nimport { ApiModule, Configuration, ConfigurationParameters } from 'fakeStoreApiClient';\n\nexport function apiConfigFactory (): Configuration {\n  const params: ConfigurationParameters = {\n    // set configuration parameters here.\n  }\n  return new Configuration(params);\n}\n\n@NgModule({\n    imports: [ ApiModule.forRoot(apiConfigFactory) ],\n    declarations: [ AppComponent ],\n    providers: [],\n    bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n```\n// configuring providers with an authentication service that manages your access tokens\nimport { ApiModule, Configuration } from 'fakeStoreApiClient';\n\n@NgModule({\n    imports: [ ApiModule ],\n    declarations: [ AppComponent ],\n    providers: [\n      {\n        provide: Configuration,\n        useFactory: (authService: AuthService) => new Configuration(\n          {\n            basePath: environment.apiUrl,\n            accessToken: authService.getAccessToken.bind(authService)\n          }\n        ),\n        deps: [AuthService],\n        multi: false\n      }\n    ],\n    bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n```\nimport { DefaultApi } from 'fakeStoreApiClient';\n\nexport class AppComponent {\n    constructor(private apiGateway: DefaultApi) { }\n}\n```\n\nNote: The ApiModule is restricted to being instantiated once app wide.\nThis is to ensure that all services are treated as singletons.\n\n#### Using multiple OpenAPI files / APIs / ApiModules\nIn order to use multiple `ApiModules` generated from different OpenAPI files,\nyou can create an alias name when importing the modules\nin order to avoid naming conflicts:\n```\nimport { ApiModule } from 'my-api-path';\nimport { ApiModule as OtherApiModule } from 'my-other-api-path';\nimport { HttpClientModule } from '@angular/common/http';\n\n@NgModule({\n  imports: [\n    ApiModule,\n    OtherApiModule,\n    // make sure to import the HttpClientModule in the AppModule only,\n    // see https://github.com/angular/angular/issues/20575\n    HttpClientModule\n  ]\n})\nexport class AppModule {\n\n}\n```\n\n\n### Set service base path\nIf different than the generated base path, during app bootstrap, you can provide the base path to your service.\n\n```\nimport { BASE_PATH } from 'fakeStoreApiClient';\n\nbootstrap(AppComponent, [\n    { provide: BASE_PATH, useValue: 'https://your-web-service.com' },\n]);\n```\nor\n\n```\nimport { BASE_PATH } from 'fakeStoreApiClient';\n\n@NgModule({\n    imports: [],\n    declarations: [ AppComponent ],\n    providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],\n    bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n\n#### Using @angular/cli\nFirst extend your `src/environments/*.ts` files by adding the corresponding base path:\n\n```\nexport const environment = {\n  production: false,\n  API_BASE_PATH: 'http://127.0.0.1:8080'\n};\n```\n\nIn the src/app/app.module.ts:\n```\nimport { BASE_PATH } from 'fakeStoreApiClient';\nimport { environment } from '../environments/environment';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [ ],\n  providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],\n  bootstrap: [ AppComponent ]\n})\nexport class AppModule { }\n```\n","readmeFilename":"README.md"}