From the course: Building APIs with Swagger and the OpenAPI Specification

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Generating server stubs and client SDKs

Generating server stubs and client SDKs - REST Tutorial

From the course: Building APIs with Swagger and the OpenAPI Specification

Start my 1-month free trial

Generating server stubs and client SDKs

- [Instructor] To kick off our course project, we're going to generate a server stub and client SDK for our H Sports catalog API. To do that, we just navigate to the API definition within SwaggerHub, and then using the Export option, we're able to export a client SDK, as well as a server stub in various languages and frameworks. Let's first build out our server stub. We're going to be using the spring framework, so we just click on spring, and then SwaggerHub's going to prompt us for where to save the generated code. We're going to put this code within the course_workspace folder of our desktop. Let's go ahead and name this downloaded artifact the hsports-catalog-server file, and we'll go ahead and download that. Now we can build out our client SDK. For our client SDK we're going to be using TypeScript and Angular, so go ahead and select that option. We're going to be prompted for another download. This time, we're going to go ahead and name this downloaded artifact…

Contents