Schema graph_ql (#8406)

* First draft schema graph_ql

* Add tests for json schema procedures
This commit is contained in:
Damien Le Thiec 2023-01-23 11:31:06 +01:00 committed by GitHub
parent 68ddae7382
commit 962016e32e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 79 additions and 0 deletions

View file

@ -149,6 +149,9 @@ en:
prefill_query_info: Use the button to copy the query, then remplace the values with your data.
prefill_query_response_html: '# Response:<br># {<br># "dossier_url": "%{url}",<br># "dossier_id": "aBase64Id==",<br># "dossier_number": 42<br># }'
prefill_query_copy: Copy prefill query
json_description_title: JSON description of the procedure
json_description_info: Use the button to copy the query and learn more about the procedure and its fields thanks to a JSON description.
json_description_copy: Copy the JSON description query
registrations:
new:
title: "Create an account %{name}"

View file

@ -141,6 +141,9 @@ fr:
prefill_query_info: Copiez la requête grâce au bouton ci-dessous et remplacez les valeurs par les données dont vous disposez.
prefill_query_response_html: '# Response:<br># {<br># "dossier_url": "%{url}",<br># "dossier_id": "aBase64Id==",<br># "dossier_number": 42<br># }'
prefill_query_copy: Copier la requête de préremplissage
json_description_title: Description JSON de la démarche
json_description_info: Copiez la requête grâce au bouton ci-dessous pour découvrir les détails de la démarche et de ses champs au format JSON
json_description_copy: Copier la requête d'obtention de la description JSON
registrations:
new:
title: "Creation de compte sur %{name}"

View file

@ -198,6 +198,7 @@ Rails.application.routes.draw do
match "webhooks/helpscout", to: lambda { |_| [204, {}, nil] }, via: :head
get '/preremplir/:path', to: 'prefill_descriptions#edit', as: :preremplir
get '/preremplir/:path/schema', to: 'api/public/v1/json_description_procedures#show', as: :prefill_json_description, defaults: { format: :json }
resources :procedures, only: [], param: :path do
member do
resource :prefill_description, only: :update