1.1.1 • Published 4 years ago

bendapi-ts v1.1.1

Weekly downloads
32
License
ISC
Repository
-
Last release
4 years ago

How to update client

  1. Copy content of http://xia01-i01-dsb02.lab.rcch.ringcentral.com:8000/api/v1/swagger.json
  2. Open the website 'https://editor.swagger.io/' and paste the content. Then delete the 'BasicAuthentication' field under the 'security'and delete the 'Children' field which has been reported as error and change the 'child' next to 'Children' that has been deleted to 'Children'. Click 'Generate Client' with 'typescript-node'.
  3. Unpack the zip file that downloaded from 'https://editor.swagger.io/' and copy 'api.ts' to the project 'https://git.ringcentral.com/TA/tools/bendapi-ts'.
  4. There may be some errors in the 'api.ts', you need to fix them. Such as: 'http.ClientResponse' only can be used when the version of nodejs lower than 8, so we need replace 'http.ClientResponse' with 'http.IncomingMessage'; We should use 'toISOString' other than 'toString' to convert a Date type object to a string in the 'serialize' function.
  5. Run example.ts to test.
  6. Modify the version field in package.json and run command 'npm pack' to generate a .tgz file. Following that upload the .tgz file to 'https://git.ringcentral.com/TA/resources/tree/master/packages'.
1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago