-
Notifications
You must be signed in to change notification settings - Fork 30
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
473d2c6
commit b7b82f5
Showing
7 changed files
with
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"query": "query getCategoryChanges($startDate: DateFilterValue!, $endDate: DateFilterValue!){categories(date:{from:$startDate to:$endDate}) {results {type modifiedAt changes {previousValue nextValue change} resource{id} }}}", | ||
"operationName": "getCategoryChanges", | ||
"variables": { | ||
"startDate": "2024-09-07T08:53:28.471Z", | ||
"endDate": "2024-11-07T08:53:28.471Z" | ||
} | ||
} |
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,34 @@ | ||
{ | ||
"data": { | ||
"categories": { | ||
"results": [ | ||
{ | ||
"type": "ResourceUpdated", | ||
"modifiedAt": "2024-11-07T08:53:28.471Z", | ||
"changes": [ | ||
{ | ||
"previousValue": { | ||
"en": "Old name for Category" | ||
}, | ||
"nextValue": { | ||
"en": "New name for Category" | ||
}, | ||
"change": "changeName" | ||
} | ||
], | ||
"resource": { | ||
"id": "cd260fc9-c575-4ba3-8789-cc4c9980ee4e" | ||
} | ||
}, | ||
{ | ||
"type": "ResourceCreated", | ||
"modifiedAt": "2024-10-22T22:39:44.201Z", | ||
"changes": [], | ||
"resource": { | ||
"id": "ffae2221-40c4-410d-bd13-e0fa4b6a4dd6" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
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,20 @@ | ||
#%RAML 1.0 DataType | ||
(package): GraphQL | ||
displayName: GraphQLError | ||
type: object | ||
description: Contains an error message, the location of the code that caused the error, and other information to help you correct the error. | ||
properties: | ||
message: | ||
type: string | ||
description: Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error. | ||
locations: | ||
type: array | ||
items: GraphQLErrorLocation | ||
description: Location within your query where the error occurred. | ||
path?: | ||
type: array | ||
items: any | ||
description: Query fields listed in order from the root of the query response up to the field in which the error occurred. `path` is displayed in the response only if an error is associated with a particular field in the query result. | ||
extensions: | ||
type: GraphQLErrorObject | ||
description: Dictionary with additional information where applicable. |
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,16 @@ | ||
#%RAML 1.0 DataType | ||
(package): GraphQL | ||
displayName: GraphQLRequest | ||
example: !include ../examples/GraphQLRequest.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: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#%RAML 1.0 DataType | ||
(package): GraphQL | ||
displayName: GraphQLResponse | ||
type: object | ||
example: !include ../examples/GraphQLResponse.json | ||
description: | | ||
`error` is present in the response only if the GraphQL query was unsuccessful. | ||
properties: | ||
data?: | ||
type: any | ||
description: JSON object that contains the results of a GraphQL query. | ||
errors?: | ||
type: array | ||
items: GraphQLError | ||
description: Errors that the GraphQL query returns. |
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