decidim-api 0.27.4 → 0.27.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/decidim-api.gemspec +36 -0
- data/docs/usage.md +2 -0
- data/lib/decidim/api/engine.rb +3 -3
- data/lib/decidim/api/version.rb +1 -1
- metadata +28 -28
- data/config/environment.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73d043af260eb9876461565004faadf0ee51236ec7881209313e55ebcdbb132c
|
4
|
+
data.tar.gz: 55f5a913266a371e767b9fe473efede71b1d8fc4c94d9f77ea847f941f4348d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25c8ce38404a11cd344c12145a7217b299174b128bdc62177f1f8e088a422b3712e0a670d0d409a3e3f00873e7cd617e2f314cebe03e0beeb5c23aed42566bcf
|
7
|
+
data.tar.gz: 77abcacd5e85ad25ce8b1859870532a957ae0a6fdc578e4a83ca3dcd77fe049c584881c53344cf6741dfbd4dd2ebb926f4b71f4481f0f0aa6ee532bac6314f91
|
data/decidim-api.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
# Maintain your gem's version:
|
6
|
+
require "decidim/api/version"
|
7
|
+
|
8
|
+
# Describe your gem and declare its dependencies:
|
9
|
+
Gem::Specification.new do |s|
|
10
|
+
s.version = Decidim::Api.version
|
11
|
+
s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
|
12
|
+
s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
|
13
|
+
s.license = "AGPL-3.0"
|
14
|
+
s.homepage = "https://github.com/decidim/decidim"
|
15
|
+
s.required_ruby_version = "~> 3.0.0"
|
16
|
+
|
17
|
+
s.name = "decidim-api"
|
18
|
+
s.summary = "Decidim API module"
|
19
|
+
s.description = "API engine for decidim"
|
20
|
+
|
21
|
+
s.files = Dir.chdir(__dir__) do
|
22
|
+
`git ls-files -z`.split("\x0").select do |f|
|
23
|
+
(File.expand_path(f) == __FILE__) ||
|
24
|
+
f.start_with?(*%w(app/ config/ docs/ lib/ Rakefile README.md))
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
s.add_dependency "decidim-core", Decidim::Api.version
|
29
|
+
s.add_dependency "graphql", "~> 1.12", "< 1.13"
|
30
|
+
s.add_dependency "graphql-docs", "~> 2.1.0"
|
31
|
+
s.add_dependency "rack-cors", "~> 1.0"
|
32
|
+
|
33
|
+
s.add_development_dependency "decidim-comments", Decidim::Api.version
|
34
|
+
s.add_development_dependency "decidim-dev", Decidim::Api.version
|
35
|
+
s.add_development_dependency "decidim-participatory_processes", Decidim::Api.version
|
36
|
+
end
|
data/docs/usage.md
CHANGED
@@ -14,6 +14,8 @@ Typically (although some particular installations may change that) you will find
|
|
14
14
|
|
15
15
|
The GraphQL format is a JSON formatted text that is specified in a query. Response is a JSON object as well. For details about specification check the official [GraphQL site](https://graphql.org/learn/).
|
16
16
|
|
17
|
+
Exercise caution when utilizing the output of this API, as it may include HTML that has not been escaped. Take particular care in handling this data, specially if you intend to render it on a webpage.
|
18
|
+
|
17
19
|
For instance, you can check the version of a Decidim installation by using `curl` in the terminal:
|
18
20
|
|
19
21
|
```
|
data/lib/decidim/api/engine.rb
CHANGED
@@ -35,9 +35,9 @@ module Decidim
|
|
35
35
|
initializer "decidim-api.graphiql" do
|
36
36
|
Decidim::GraphiQL::Rails.config.tap do |config|
|
37
37
|
config.query_params = true
|
38
|
-
config.initial_query =
|
39
|
-
File.join(__dir__, "graphiql-initial-query.txt")
|
40
|
-
)
|
38
|
+
config.initial_query = ERB::Util.html_escape(
|
39
|
+
File.read(File.join(__dir__, "graphiql-initial-query.txt"))
|
40
|
+
)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
data/lib/decidim/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: decidim-core
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - '='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.27.6
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - '='
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 0.27.6
|
15
29
|
- !ruby/object:Gem::Dependency
|
16
30
|
name: graphql
|
17
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,56 +80,42 @@ dependencies:
|
|
66
80
|
requirements:
|
67
81
|
- - '='
|
68
82
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.27.
|
83
|
+
version: 0.27.6
|
70
84
|
type: :development
|
71
85
|
prerelease: false
|
72
86
|
version_requirements: !ruby/object:Gem::Requirement
|
73
87
|
requirements:
|
74
88
|
- - '='
|
75
89
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.27.
|
77
|
-
- !ruby/object:Gem::Dependency
|
78
|
-
name: decidim-core
|
79
|
-
requirement: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - '='
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: 0.27.4
|
84
|
-
type: :development
|
85
|
-
prerelease: false
|
86
|
-
version_requirements: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - '='
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: 0.27.4
|
90
|
+
version: 0.27.6
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: decidim-dev
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - '='
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0.27.
|
97
|
+
version: 0.27.6
|
98
98
|
type: :development
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - '='
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.27.
|
104
|
+
version: 0.27.6
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: decidim-participatory_processes
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - '='
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.27.
|
111
|
+
version: 0.27.6
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
114
|
version_requirements: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - '='
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.27.
|
118
|
+
version: 0.27.6
|
119
119
|
description: API engine for decidim
|
120
120
|
email:
|
121
121
|
- josepjaume@gmail.com
|
@@ -140,8 +140,8 @@ files:
|
|
140
140
|
- app/views/decidim/api/graphiql/show.html.erb
|
141
141
|
- app/views/layouts/decidim/api/documentation.html.erb
|
142
142
|
- config/assets.rb
|
143
|
-
- config/environment.rb
|
144
143
|
- config/routes.rb
|
144
|
+
- decidim-api.gemspec
|
145
145
|
- docs/usage.md
|
146
146
|
- lib/decidim/api.rb
|
147
147
|
- lib/decidim/api/engine.rb
|
@@ -170,15 +170,15 @@ homepage: https://github.com/decidim/decidim
|
|
170
170
|
licenses:
|
171
171
|
- AGPL-3.0
|
172
172
|
metadata: {}
|
173
|
-
post_install_message:
|
173
|
+
post_install_message:
|
174
174
|
rdoc_options: []
|
175
175
|
require_paths:
|
176
176
|
- lib
|
177
177
|
required_ruby_version: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
|
-
- - "
|
179
|
+
- - "~>"
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
181
|
+
version: 3.0.0
|
182
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - ">="
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
188
|
rubygems_version: 3.2.22
|
189
|
-
signing_key:
|
189
|
+
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Decidim API module
|
192
192
|
test_files: []
|
data/config/environment.rb
DELETED
File without changes
|