From 9210d6eda196f41ca8dbfde0846a055f94a571f2 Mon Sep 17 00:00:00 2001 From: sgayangi Date: Wed, 20 Nov 2024 16:00:30 +0530 Subject: [PATCH] Remove unused mocky links --- .../api-versions/create-an-api-version.md | 28 +++++++++---------- .../endpoints/prod-sand-endpoints.md | 3 +- .../enable-api-security/mtls.md | 4 +-- .../enable-api-security/oauth2.md | 9 +++--- 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/en/docs/develop-and-deploy-api/api-versions/create-an-api-version.md b/en/docs/develop-and-deploy-api/api-versions/create-an-api-version.md index 86a746a63..c5c8518f2 100644 --- a/en/docs/develop-and-deploy-api/api-versions/create-an-api-version.md +++ b/en/docs/develop-and-deploy-api/api-versions/create-an-api-version.md @@ -136,25 +136,25 @@ Use the values provided in the table below in the body of your request. type: "REST" defaultVersion: false endpointConfigurations: - production: - endpoint: "https://run.mocky.io/v3/1327c339-354b-4080-8296-f6268365e67b" + production: + endpoint: "http://employee-service:8080" operations: - target: "/employee" - verb: "GET" - secured: true - scopes: [] + verb: "GET" + secured: true + scopes: [] - target: "/employee" - verb: "POST" - secured: true - scopes: [] + verb: "POST" + secured: true + scopes: [] - target: "/employee/{employeeId}" - verb: "PUT" - secured: true - scopes: [] + verb: "PUT" + secured: true + scopes: [] - target: "/employee/{employeeId}" - verb: "DELETE" - secured: true - scopes: [] + verb: "DELETE" + secured: true + scopes: [] ``` By now, you have deployed the new version of the API. You can invoke the new version of the API using the access token generated in the previous step. diff --git a/en/docs/develop-and-deploy-api/endpoints/prod-sand-endpoints.md b/en/docs/develop-and-deploy-api/endpoints/prod-sand-endpoints.md index 43b3ff0c5..b87fec6b8 100644 --- a/en/docs/develop-and-deploy-api/endpoints/prod-sand-endpoints.md +++ b/en/docs/develop-and-deploy-api/endpoints/prod-sand-endpoints.md @@ -20,7 +20,7 @@ Sample content before the modification is shown below. defaultVersion: false endpointConfigurations: production: - endpoint: "https://run.mocky.io/v3/1327c339-354b-4080-8296-f6268365e67b" + endpoint: "http://employee-service:8080" operations: - target: "/employee" verb: "GET" @@ -47,7 +47,6 @@ It is mandatory to define at least one of the production endpoint or sandbox end Update the APK configuration as the following to add different endpoints to sandbox and production endpoints. You can use your own endpoints. In this example, we have used two different mocky endpoints; these endpoints might not work when you test. - ```yaml name: "EmployeeServiceAPI" basePath: "/test" diff --git a/en/docs/develop-and-deploy-api/security/authentication/enable-api-security/mtls.md b/en/docs/develop-and-deploy-api/security/authentication/enable-api-security/mtls.md index 65470700c..f0d960252 100644 --- a/en/docs/develop-and-deploy-api/security/authentication/enable-api-security/mtls.md +++ b/en/docs/develop-and-deploy-api/security/authentication/enable-api-security/mtls.md @@ -21,7 +21,7 @@ defaultVersion: false id: "mtls-api" endpointConfigurations: production: - endpoint: "https://run.mocky.io/v3/1327c339-354b-4080-8296-f6268365e67b" + endpoint: "http://employee-service:8080" operations: - target: "/employee" verb: "GET" @@ -92,7 +92,7 @@ defaultVersion: false id: "mtls-api" endpointConfigurations: production: - endpoint: "https://run.mocky.io/v3/1327c339-354b-4080-8296-f6268365e67b" + endpoint: "http://employee-service:8080" operations: - target: "/employee" verb: "GET" diff --git a/en/docs/develop-and-deploy-api/security/authentication/enable-api-security/oauth2.md b/en/docs/develop-and-deploy-api/security/authentication/enable-api-security/oauth2.md index 82d320f91..e04ac6f30 100644 --- a/en/docs/develop-and-deploy-api/security/authentication/enable-api-security/oauth2.md +++ b/en/docs/develop-and-deploy-api/security/authentication/enable-api-security/oauth2.md @@ -8,7 +8,6 @@ By default, OAuth2 authentication is enabled for all the APIs. The default confi You can use the apk-conf file which is created in [Create an API](../../../../get-started/quick-start-guide.md) documentation and save this content into a file named `EmployeeServiceDisabledOAuth2.apk-conf`. - Sample content before the modification is shown below. ```yaml @@ -19,7 +18,7 @@ Sample content before the modification is shown below. defaultVersion: false endpointConfigurations: production: - endpoint: "https://run.mocky.io/v3/1327c339-354b-4080-8296-f6268365e67b" + endpoint: "http://employee-service:8080" operations: - target: "/employee" verb: "GET" @@ -60,7 +59,7 @@ Sample APK configuration content after the modification to disable OAuth2 is sho defaultVersion: false endpointConfigurations: production: - endpoint: "https://run.mocky.io/v3/1327c339-354b-4080-8296-f6268365e67b" + endpoint: "http://employee-service:8080" operations: - target: "/employee" verb: "GET" @@ -107,7 +106,7 @@ Sample APK configuration content after the modification to use a custom auth hea defaultVersion: false endpointConfigurations: production: - endpoint: "https://run.mocky.io/v3/1327c339-354b-4080-8296-f6268365e67b" + endpoint: "http://employee-service:8080" operations: - target: "/employee" verb: "GET" @@ -154,7 +153,7 @@ Sample APK configuration content after the modification to send the OAuth2 heade defaultVersion: false endpointConfigurations: production: - endpoint: "https://run.mocky.io/v3/1327c339-354b-4080-8296-f6268365e67b" + endpoint: "http://employee-service:8080" operations: - target: "/employee" verb: "GET"