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

Client modifications - REST Tutorial

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

Start my 1-month free trial

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…

Contents