Skip to content

Commit

Permalink
Merge pull request #5087 from consul/doc_folder
Browse files Browse the repository at this point in the history
Clean up doc folder
  • Loading branch information
javierm committed Mar 3, 2023
2 parents 4425f0f + 56e42f2 commit 462792d
Show file tree
Hide file tree
Showing 24 changed files with 21 additions and 1,127 deletions.
251 changes: 0 additions & 251 deletions doc/README.md

This file was deleted.

431 changes: 0 additions & 431 deletions doc/api/api_en.md

This file was deleted.

431 changes: 0 additions & 431 deletions doc/api/api_es.md

This file was deleted.

17 changes: 10 additions & 7 deletions doc/api/examples/ruby/example_1.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
require "http"
require "net/http"

API_ENDPOINT = "https://decide.madrid.es/graphql".freeze
API_ENDPOINT = "https://demo.consulproject.org/graphql".freeze

def make_request(query_string)
HTTP.headers("User-Agent" => "Mozilla/5.0", accept: "application/json")
.get(
API_ENDPOINT,
params: { query: query_string.delete("\n").delete(" ") }
)
uri = URI(API_ENDPOINT)
uri.query = URI.encode_www_form(query: query_string.delete("\n").delete(" "))
request = Net::HTTP::Get.new(uri)
request[:accept] = "application/json"

Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |https|
https.request(request)
end
end

query = <<-GRAPHQL
Expand Down
18 changes: 11 additions & 7 deletions doc/api/examples/ruby/example_2.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
require "http"
require "net/http"
require "json"

API_ENDPOINT = "https://decide.madrid.es/graphql".freeze
API_ENDPOINT = "https://demo.consulproject.org/graphql".freeze

def make_request(query_string)
HTTP.headers("User-Agent" => "Mozilla/5.0", accept: "application/json")
.get(
API_ENDPOINT,
params: { query: query_string.delete("\n").delete(" ") }
)
uri = URI(API_ENDPOINT)
uri.query = URI.encode_www_form(query: query_string.delete("\n").delete(" "))
request = Net::HTTP::Get.new(uri)
request[:accept] = "application/json"

Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |https|
https.request(request)
end
end

def build_query(options = {})
Expand Down
Binary file removed doc/imgs/button_global_configuration.png
Binary file not shown.
Binary file removed doc/imgs/button_statistics.png
Binary file not shown.
Binary file removed doc/imgs/graphiql.png
Binary file not shown.
Binary file removed doc/imgs/graphql-postman-get.png
Binary file not shown.
Binary file removed doc/imgs/graphql-postman-post-body.png
Binary file not shown.
Binary file removed doc/imgs/graphql-postman-post-headers.png
Binary file not shown.
Binary file removed doc/imgs/icon_banners.png
Binary file not shown.
Binary file removed doc/imgs/icon_categories.png
Binary file not shown.
Binary file removed doc/imgs/icon_customize_site.png
Binary file not shown.
Binary file removed doc/imgs/icon_moderated_content.png
Binary file not shown.
Binary file removed doc/imgs/icon_participatory_budgeting.png
Binary file not shown.
Binary file removed doc/imgs/icon_polls.png
Binary file not shown.
Binary file removed doc/imgs/icon_profiles.png
Binary file not shown.
Binary file removed doc/imgs/panel_administration.png
Binary file not shown.
Binary file removed doc/imgs/panel_management.png
Binary file not shown.
Binary file removed doc/imgs/panel_moderation.png
Binary file not shown.
Binary file removed doc/imgs/user_preverification.png
Binary file not shown.
Binary file removed doc/imgs/user_registration.png
Binary file not shown.
Binary file removed doc/imgs/user_verification.png
Binary file not shown.

0 comments on commit 462792d

Please sign in to comment.