From the course: Building APIs with Swagger and the OpenAPI Specification
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Client modifications - REST Tutorial
From the course: Building APIs with Swagger and the OpenAPI Specification
Client modifications
- [Instructor] There's one final piece of our course project that we need to put in place. We need to set up our Angular application to use the Apigee proxy URL so that the application accesses the production instance of our API. So, within Apigee, navigate to the proxies and we'll grab the hsports-catalog proxy. And inside of the configuration, we can grab the production URL. So just copy this address, and now we're going to head over to Visual Studio Code, where I have the hsports client application loaded. So within this Angular application, we're going to expand the source directory, and then the app directory, followed by rest, and then API. Inside of this directory, you'll find the product.service.ts class. Go ahead and open this class, and then I'm going to hide the sidebar so we can get a better view. If we take a look at the class, you'll notice, within this TypeScript file, we are still pointing to the mock API server running on SwaggerHub. Now, this worked out great before…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Project architecture3m
-
Generating server stubs and client SDKs1m 48s
-
Building an API client3m 10s
-
Client SDK internals1m 24s
-
API implementation7m 53s
-
Packaging the API implementation2m
-
Hosting APIs in Azure3m 23s
-
API server setup5m 16s
-
Publishing public APIs3m 8s
-
API management with Apigee6m 18s
-
Monitoring API usage1m 59s
-
Client modifications2m 47s
-
-