Created
September 30, 2022 11:37
-
-
Save Mitya88/fe528a279642f0176b54d63d1f7e6556 to your computer and use it in GitHub Desktop.
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
{ | |
"Services": [ | |
{ | |
"Url": "https://sandboxapi.ordercloud.io/v1", | |
"Endpoints": [ | |
{ | |
"Path": "/products/", | |
"ItemPath": "Items", | |
"Method": "GET", | |
"ItemType": "Product", | |
"Title":"%[Name]", | |
"Description":"%[Description]", | |
"Uri": "%[coveo_url]/products/[%ID]", | |
"ClickableUri": "%[coveo_url]/products/[%ID]", | |
"Metadata": { | |
"id": "%[ID]" | |
} | |
} | |
], | |
"Authentication":{ | |
"OAuth": { | |
"Query": { | |
"RefreshUrl": "https://sandboxapi.ordercloud.io/oauth/token", | |
"Method": "POST", | |
"Parameters": { | |
"grant_type": { | |
"Type": "Payload", | |
"Value": "client_credentials" | |
}, | |
"refresh_token": { | |
"Type": "Payload", | |
"Value": "@RefreshToken", | |
"IsRefreshToken": true | |
}, | |
"scope":{ | |
"Type":"Payload", | |
"Value":"ProductReader" | |
}, | |
"client_id": { | |
"Type": "Payload", | |
"Value": "@ClientId" | |
}, | |
"client_secret": { | |
"Type": "Payload", | |
"Value": "@ClientSecret" | |
} | |
} | |
}, | |
"Response": { | |
"AccessToken": "access_token", | |
"SupportsRefreshToken" : "true", | |
"RefreshToken": "refresh_token", | |
"ExpiresIn": "expires_in", | |
"TokenType": "token_type" | |
} | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment