Skip to content

Commit

Permalink
Remove unused mocky links
Browse files Browse the repository at this point in the history
  • Loading branch information
sgayangi committed Nov 20, 2024
1 parent 00c6495 commit 9210d6e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 9210d6e

Please sign in to comment.