-
Notifications
You must be signed in to change notification settings - Fork 338
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
Added Graph QL Support #244
Changes from all commits
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 |
---|---|---|
|
@@ -241,10 +241,11 @@ final kColorHttpMethodPost = Colors.blue.shade800; | |
final kColorHttpMethodPut = Colors.amber.shade900; | ||
final kColorHttpMethodPatch = kColorHttpMethodPut; | ||
final kColorHttpMethodDelete = Colors.red.shade800; | ||
final kColorHttpMethodGraphQL = Colors.green.shade800; | ||
|
||
enum RequestItemMenuOption { edit, delete, duplicate } | ||
|
||
enum HTTPVerb { get, head, post, put, patch, delete } | ||
enum HTTPVerb { get, head, post, put, patch, delete , graphql } | ||
|
||
enum FormDataType { text, file } | ||
|
||
|
@@ -255,6 +256,7 @@ const kMethodsWithBody = [ | |
HTTPVerb.put, | ||
HTTPVerb.patch, | ||
HTTPVerb.delete, | ||
HTTPVerb.graphql, | ||
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. Same comment that I left in the code above. Instead, you can define a |
||
]; | ||
|
||
const kDefaultHttpMethod = HTTPVerb.get; | ||
|
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. A separate service file must be made for GraphQL instead of modifying this one. 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. Thanks for giving the info! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GraphQL operates over HTTP, it doesn’t map directly to HTTP verbs like a RESTful service does. GraphQL, on the other hand, is a query language and data manipulation language for APIs.