Commit Graph

20 Commits

Author SHA1 Message Date
Julian Herrero
9a60135d9f [Consistency] remove semicolons from controllers 2019-01-08 15:46:46 +01:00
Bertocq
c9bc028524 Remove all unnecesary extra spacing and Layout/ExtraSpacing list from rubocop file 2017-06-28 14:12:51 +02:00
Alberto Miedes Garcés
18db68a430 Force pagination, limit query depth and complexity 2017-05-29 09:47:39 +02:00
Alberto Miedes Garcés
70a1dbde94 Fix bug when parsing query variables sent by the GraphiQL desktop client 2017-01-31 13:52:25 +01:00
Alberto Miedes Garcés
fd240b2fc7 Rescue all exceptions in production 2017-01-27 14:46:26 +01:00
Alberto Miedes Garcés
c52602e04b Simplify the way ApiTypesCreator is used 2017-01-27 13:13:19 +01:00
Alberto Miedes Garcés
620c83fb69 Simplify the way QueryTypeCreator is used 2017-01-27 12:54:33 +01:00
Alberto Miedes Garcés
ef6d089022 Refactor GraphqlController 2017-01-25 11:17:08 +01:00
Alberto Miedes Garcés
18fb1485eb No need to specify the resolve type for GraphQL::Schema
This was needed back in the 0.18.11 version but not anymore after the
update to 1.3.0
2017-01-16 11:28:28 +01:00
Alberto Miedes Garcés
232f5aa621 Parse GraphQL query variables to JSON
This is required after updating the gem to 1.3.0
2017-01-16 11:25:12 +01:00
Alberto Miedes Garcés
7a9373942a Testing GraphQL 1.3.0 in Travis 2017-01-12 20:11:47 +01:00
Alberto Miedes Garcés
2c5925f947 Refactor GraphqlController 2017-01-03 13:24:00 +01:00
Alberto Miedes Garcés
6013f84945 Handle multiple kind of requests in GraphQL controller
* Added support for GET requests
* Added support for application/graphql content-type for POST requests
* Handling query string parsing errors in controller
* Wrote specs for all this
2016-12-03 13:36:14 +01:00
Alberto Miedes Garcés
6fca1f02fe Added clarifying comments related to GraphQL return types 2016-11-17 17:23:57 +01:00
Alberto Miedes Garcés
f6cd7a3456 Disable CSRF protection for GraphQL controller
Related documentation at:
http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtec
tion/ClassMethods.html
2016-11-13 20:07:09 +01:00
Alberto Miedes Garcés
dc62f6c914 Skip authorization check in GraphQL controller 2016-10-12 17:28:01 +02:00
Alberto Miedes Garcés
fe2546dbbb Added clarifying comments related to security 2016-10-01 08:50:16 +02:00
Alberto Miedes Garcés
eae18d9e37 Deleted useless debugging comment 2016-09-30 11:34:12 +02:00
Alberto Miedes Garcés
530da6b893 Implemented simple test query to proposals 2016-09-28 12:51:05 +02:00
Alberto Miedes Garcés
ab333d6627 Created controller and route to answer GraphQL queries 2016-09-28 12:47:07 +02:00