-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add more samples * more samples * more samples * more samples * more samples * sample * fix * fix * fix * fix * fix table * fix table * fix * fix * fix * fix * fix * fix samples for apps * fix samples for apps * apidocs * rename file * rename file
- Loading branch information
1 parent
4a3ecb1
commit 02eeb81
Showing
18 changed files
with
223 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"name": "foo" | ||
}, | ||
{ | ||
"name": "bar" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"data": { | ||
"oasDocumentation": { | ||
"spec": { | ||
"displayName": "mocktarget.yaml", | ||
"contents": "c3dhZ2dlcjogJzIuMCcKaW5mbzoKICBkZXNjcmlwdGlvbjogJ09wZW5BUEkgU3BlY2lmaWNhdGlvbiBmb3IgdGhlIEFwaWdlZSBtb2NrIHRhcmdldCBzZXJ2aWNlIGVuZHBvaW50LicKICB2ZXJzaW9uOiAxLjAuMAogIHRpdGxlOiBNb2NrIFRhcmdldCBBUEkKaG9zdDogbW9ja3RhcmdldC5hcGlnZWUubmV0CnNjaGVtZXM6CiAgLSBodHRwCiAgLSBodHRwcwpzZWN1cml0eURlZmluaXRpb25zOgog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5nCiAgICAgIG9wZXJhdGlvbklkOiBWaWV3IHBlcnNvbmFsaXplZCBncmVldGluZwogICAgICBkZXNjcmlwdGlvbjogVmlldyBhIHBlcnNvbmFsaXplZCBncmVldGluZyBmb3IgdGhlIHNwZWNpZmllZCBvciBndWVzdCB1c2VyLgogICAgICBwcm9kdWNlczoKICAgICAgICAtIHRleHQvcGxhaW4KICAgICAgcGFyYW1ldGVyczoKICAgICAgICAtIG5hbWU6IHVzZXIKICAgICAgICAgIGluOiBxdWVyeQogICAgICAgICAgZGVzY3JpcHRpb246IFlvdXIgdXNlciBuYW1lLgogICAgICAgICAgcmVxdWlyZWQ6IGZhbHNlCiAgICAgICAgICB0eXBlOiBzdHJpbmcKICAgICAgcmVzcG9uc2VzOgogICAgICAgICcyMDAnOgogICAgICAgICAgZGVzY3JpcHRpb246IFN1Y2Nlc3MKICAvaWxvdmVhcGlzOgogICAgZ2V0OgogICAgICBzdW1tYXJ5OiBWaWV3IEFQSSBhZmZpcm1hdGlvbgogICAgICBvcGVyYXRpb25JZDogVmlldyBBUEkgYWZmaXJtYXRpb24KICAgICAgZGVzY3JpcHRpb246IFZpZXcgQVBJIGFmZmlybWF0aW9uIGluIEhUTUwgZm9ybWF0LgogICAgICBwcm9kdWNlczoKICAgICAgICAtIHRleHQvaHRtbAogICAgICByZXNwb25zZXM6CiAgICAgICAgJzIwMCc6CiAgICAgICAgICBkZXNjcmlwdGlvbjogU3VjY2VzcwogIC9pcDoKICAgIGdldDoKICAgICAgc3VtbWFyeTogVmlldyBJUCBhZGRyZXNzCiAgICAgIG9wZXJhdGlvbklkOiBWaWV3IElQIGFkZHJlc3MKICAgICAgZGVzY3JpcHRpb246IFZpZXcgdGhlIElQIGFkZHJlc3Mgb2YgdGhlIGNsaWVudCBpbiBKU09OIGZvcm1hdC4KICAgICAgcHJvZHVjZXM6CiAgICAgICAgLSBhcHBsaWNhdGlvbi9qc29uCiAgICAgIHJlc3BvbnNlczoKICAgICAgICAnMjAwJzoKICAg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2UtbWU6CiAgICAgICAgdHlwZTogb2JqZWN0CiAgICAgICAgZGVzY3JpcHRpb246ICdSZXBsYWNlIHdpdGggcmVxdWVzdCBwYXlsb2FkIGluIGFwcGxpY2F0aW9uL2pzb24sIGFwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCwgb3IgYXBwbGljYXRpb24veG1sIGZvcm1hdC4nCg==" | ||
}, | ||
"format": "YAML" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"id": "123", | ||
"title": "MockProduct", | ||
"description": "MockProduct", | ||
"published": true, | ||
"anonAllowed": true, | ||
"apiProductName": "MockProduct", | ||
"visibility": true, | ||
"edgeAPIProductName": "MockProduct" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[ | ||
{ | ||
"name": "MockProduct", | ||
"displayName": "MockProduct", | ||
"description": "MockProduct", | ||
"apiResources": [ | ||
"/**", | ||
"/" | ||
], | ||
"approvalType": "auto", | ||
"attributes": [ | ||
{ | ||
"name": "description", | ||
"value": "Mock Product" | ||
}, | ||
{ | ||
"name": "developer.quota.limit", | ||
"value": "10000" | ||
}, | ||
{ | ||
"name": "developer.quota.interval", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "developer.quota.timeunit", | ||
"value": "month" | ||
} | ||
], | ||
"environments": [ | ||
"dev" | ||
], | ||
"proxies": [ | ||
"mock" | ||
], | ||
"quota": "10000", | ||
"quotaInterval": "1", | ||
"quotaTimeUnit": "month", | ||
"scopes": [] | ||
} | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"name": "sampleAppGroup1", | ||
"channelUri": "channel1", | ||
"channelId": "1", | ||
"displayName": "Sample App Group 1", | ||
"status": "active", | ||
"attributes": [ | ||
{ | ||
"name": "foo", | ||
"value": "bar" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sampleAppGroup2", | ||
"channelUri": "channel2", | ||
"channelId": "2", | ||
"displayName": "Sample App Group 2", | ||
"status": "active" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[ | ||
{ | ||
"attributes": [ | ||
{ | ||
"name": "DisplayName", | ||
"value": "SampleApp" | ||
}, | ||
{ | ||
"name": "Foo", | ||
"value": "Bar" | ||
} | ||
], | ||
"credentials": [ | ||
{ | ||
"apiProducts": [ | ||
{ | ||
"apiproduct": "MockProduct", | ||
"status": "approved" | ||
} | ||
], | ||
"consumerKey": "blah", | ||
"consumerSecret": "blah", | ||
"expiresAt": "-1", | ||
"status": "approved" | ||
} | ||
], | ||
"developerId": "13a4ebde-79c6-4b33-848e-31a64f9d2145", | ||
"name": "SampleApp", | ||
"status": "approved" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"dataCollectors": [ | ||
{ | ||
"name": "dc_sampleCollector", | ||
"description": "Sample", | ||
"type": "STRING" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"variables": [ | ||
"request.header.x-api-key", | ||
"request.header.x-apikey" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"developer": [ | ||
{ | ||
"email": "[email protected]", | ||
"firstName": "Sample", | ||
"lastName": "Developer", | ||
"userName": "sample", | ||
"developerId": "13a4ebde-79c6-4b33-848e-31a64f9d2145", | ||
"status": "active" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ | ||
"samplekeystore", | ||
"testkeystore" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"keyValueEntries": [ | ||
{ | ||
"name": "foo", | ||
"value": "bar" | ||
}, | ||
{ | ||
"name": "hello", | ||
"value": "world" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"keyValueEntries": [ | ||
{ | ||
"name": "foo", | ||
"value": "bar" | ||
}, | ||
{ | ||
"name": "hello", | ||
"value": "world" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"name": "reference", | ||
"resourceType": "KeyStore", | ||
"refers": "samplekeystore" | ||
} | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"name": "TS-Mock", | ||
"host": "mocktarget.apigee.net", | ||
"isEnabled": true, | ||
"port": 443, | ||
"sSLInfo": { | ||
"enabled": true | ||
}, | ||
"protocol": "HTTP" | ||
} | ||
] |