-
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.
Updated API from documentation release
- Loading branch information
1 parent
3fb2376
commit f254d17
Showing
11 changed files
with
41 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{ | ||
"message": "Cannot query field 'aaa' on type 'PaymentQueryResult'", | ||
"message": "Object 35d33405-2d39-4528-b195-fa3ab6beb927 has a different version than expected. Expected: 1 - Actual: 2.", | ||
"path": ["deleteProduct"], | ||
"locations": [ | ||
{ | ||
"line": 3, | ||
"column": 16 | ||
"line": 2, | ||
"column": 3 | ||
} | ||
], | ||
"extensions": { | ||
"code": "InvalidInput" | ||
"code": "ConcurrentModification", | ||
"currentVersion": 2 | ||
} | ||
} |
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 @@ | ||
{ "productKey": "a-product-key" } |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"query": "\n query query_1($productId: String){\n product(key:$productId){\n key\n }\n }\n ", | ||
"operationName": "query_1", | ||
"variables": { "productId": "f8ded810-a1" } | ||
"query": "query getProductByKey($productKey: String!) { product(key: $productKey) { id version }}", | ||
"operationName": "getProductByKey", | ||
"variables": { "productKey": "a-product-key" } | ||
} |
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 |
---|---|---|
@@ -1,25 +1,8 @@ | ||
{ | ||
"data": { | ||
"products": { | ||
"results": [ | ||
{ | ||
"id": "00f230ac-da51-4a18-99eb-83368f1435b1", | ||
"masterData": { | ||
"staged": { | ||
"skus": [ | ||
"test" | ||
], | ||
"name": "Test" | ||
}, | ||
"current": { | ||
"skus": [ | ||
"test" | ||
], | ||
"name": "Test" | ||
} | ||
} | ||
} | ||
] | ||
"product": { | ||
"id": "35d33405-2d39-4528-b195-fa3ab6beb927", | ||
"version": 2 | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
#%RAML 1.0 DataType | ||
(package): GraphQL | ||
displayName: GraphQLRequest | ||
example: !include ../../examples/graphql-query.example.json | ||
description: The query, operation name, and variables that are sent to the GraphQL API. | ||
type: object | ||
properties: | ||
query: | ||
type: string | ||
description: String representation of the _Source Text_ of the _Document_ that is specified in the [Language section of the GraphQL specification](https://spec.graphql.org/draft/#sec-Language). | ||
operationName?: | ||
type: string | ||
description: Name of the operation, if you defined several operations in `query`. | ||
variables?: | ||
type: GraphQLVariablesMap | ||
description: '' | ||
description: JSON object that contains key-value pairs in which the keys are variable names and the values are variable values. |
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