mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 01:25:39 -05:00
* Fix #6477 controller login + fix dashboard layout - Service endpoints shoudl be on own column, cut off smaller screen - Controller login not working due to 404 error This is due to a breaking API change We have requested fixes to help mitigate need for cluster name, but for now have a default value for this Finally, modified code so it's easier to update swagger API and also added instructions on how to update in future
12 lines
694 B
Plaintext
12 lines
694 B
Plaintext
How to update the Swagger-generated API to contact the controller
|
|
|
|
1. You need to get the API specification. Long-term you should be able to get from the server,
|
|
but for now go to the internal repository and find the checked in SwaggerClient.yaml there.
|
|
|
|
2. Copy the content from there, and add into https://editor.swagger.io/
|
|
3. Choose Generate Client, and choose Typescript-Node as the client to generate
|
|
4. This will download a zip file. Open it and copy contents of api.ts
|
|
5. Copy this content to apiGenerated.ts
|
|
- keep the copyright header and everything above the let defaultBasePath = xyz line,
|
|
- Override the rest of the file
|
|
6. Format the apiGenerated.ts file so it passes gulp hygiene |