From cdc067d0c0c74ec7cf715dfb3cef42a6e3740adf Mon Sep 17 00:00:00 2001 From: Vincent Texier <vit@free.fr> Date: Sat, 4 Aug 2018 10:18:50 +0000 Subject: [PATCH] Endpoints follow the WS2Pv2 RFC protocol --- rfc/0003 RFC GraphQL API for Duniter Clients.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rfc/0003 RFC GraphQL API for Duniter Clients.md b/rfc/0003 RFC GraphQL API for Duniter Clients.md index cee6c0a..0469eef 100644 --- a/rfc/0003 RFC GraphQL API for Duniter Clients.md +++ b/rfc/0003 RFC GraphQL API for Duniter Clients.md @@ -366,11 +366,11 @@ The GraphQL API is added on the server as a Duniter module. ### ENDPOINTS format -The endpoint format needs one path for the HTTP requests (queries and mutations) and one path for the websocket channel (subscriptions). +We follow the WS2P RFC proposal: https://git.duniter.org/nodes/common/doc/blob/ws2p_v2/rfc/0006_ws2p_v2.md#endpoints -The typical endpoint string is: +The endpoint format needs one path for the HTTP requests (queries and mutations) and one path for the websocket channel (subscriptions). - GVA|GVAS [DNS | IPv4 | IPv6] [PORT] [PATH] [SUBSCRIPTIONS_PATH] +So the websoket channel path is automatically deducted from the optionnal path: `path/subscriptions` ## API GraphQL Schema -- GitLab