-
Notifications
You must be signed in to change notification settings - Fork 649
API Chat for GraphQL APIs implementation #13098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 9 commits
f85e96a
9f49021
bc054e0
f81fcff
ddbda0e
8a70563
017c0ce
16475b4
50be8ea
1a1618b
0828bb3
4c3e299
522602c
688096e
435e199
ea65be0
490e80c
251b96e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.wso2.carbon.apimgt.api.model; | ||
|
||
public class APIChatGraphQLSdl { | ||
private String sdl; | ||
|
||
public String getSdl() { | ||
return sdl; | ||
} | ||
|
||
public void setSdl(String sdl) { | ||
this.sdl = sdl; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -6142,6 +6142,22 @@ components: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
schema: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type: "string" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
format: "string" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sdl: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type: string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description: GraphQL API schema definition | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
example: ' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
schema { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
query: Query | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type Query { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hero(id: ID!): Character | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
allHeroes: [Character] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type Character { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id: ID! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name: String! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
appearsIn: [String] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
}' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
response: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid YAML literal for multiline Proposed fix: @@ -6139,7 +6139,7 @@
tools:
type: array
description: Extracted Http tools from the OpenAPI specification
- example: '…'
+ example: |
+ schema {
+ query: Query
+ }
+ type Query {
+ hero(id: ID!): Character
+ allHeroes: [Character]
+ }
+ type Character {
+ id: ID!
+ name: String!
+ appearsIn: [String]
+ }
sdl:
type: string
description: GraphQL API schema definition
- example: '
- schema {
- query: Query
- }
- type Query {
- hero(id: ID!): Character
- allHeroes: [Character]
- }
- type Character {
- id: ID!
- name: String!
- appearsIn: [String]
- }'
+ example: |
+ schema {
+ query: Query
+ }
+ type Query {
+ hero(id: ID!): Character
+ allHeroes: [Character]
+ }
+ type Character {
+ id: ID!
+ name: String!
+ appearsIn: [String]
+ } 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type: object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
properties: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -6175,8 +6191,6 @@ components: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
apiSpec: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type: object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title: Enriched API spec | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- tools | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
properties: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
serviceUrl: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type: string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -6202,6 +6216,10 @@ components: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
schema: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type: "string" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
format: "string" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sdl: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type: string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description: Processed GraphQL API schema definition (for GraphQL APIs) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
example: "schema { query: Query } type Query { hero(id: ID!): Character allHeroes: [Character] } type Character { id: ID! name: String! appearsIn: [String] }" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taskStatus: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use block scalar for the Proposed fix: @@ -6217,7 +6217,7 @@
tools:
type: array
description: Extracted Http tools from the OpenAPI specification
- example: "schema { query: Query } type Query { hero(id: ID!): Character allHeroes: [Character] } type Character { id: ID! name: String! appearsIn: [String] }"
+ example: |
+ schema {
+ query: Query
+ }
+ type Query {
+ hero(id: ID!): Character
+ allHeroes: [Character]
+ }
+ type Character {
+ id: ID!
+ name: String!
+ appearsIn: [String]
+ }
sdl:
type: string
description: Processed GraphQL API schema definition (for GraphQL APIs)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type: string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description: Task status (IN_PROGRESS, TERMINATED or COMPLETED) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.