From 0ad85aca21e892d9ec76597c04bdd13820a46ac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Sat, 21 Apr 2018 16:43:00 +0200 Subject: [PATCH] Shell/RPC: use GET request for `/errors` --- src/lib_rpc/RPC_service.ml | 3 +-- src/lib_rpc/RPC_service.mli | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib_rpc/RPC_service.ml b/src/lib_rpc/RPC_service.ml index ee4cbe215..04a605ccb 100644 --- a/src/lib_rpc/RPC_service.ml +++ b/src/lib_rpc/RPC_service.ml @@ -75,10 +75,9 @@ let patch_service = patch_service ~error:error_encoding let put_service = put_service ~error:error_encoding let error_service = - post_service + get_service ~description: "Schema for all the RPC errors from the shell" ~query: RPC_query.empty - ~input: Data_encoding.empty ~output: Data_encoding.json_schema RPC_path.(root / "errors") diff --git a/src/lib_rpc/RPC_service.mli b/src/lib_rpc/RPC_service.mli index 58a506994..841826035 100644 --- a/src/lib_rpc/RPC_service.mli +++ b/src/lib_rpc/RPC_service.mli @@ -79,6 +79,6 @@ val description_service: unit, Json_schema.schema Resto.Description.directory) service val error_service: - ([ `POST ], unit, unit, unit, unit, Json_schema.schema) service + ([ `GET ], unit, unit, unit, unit, Json_schema.schema) service val error_encoding: error Data_encoding.t