From 43eb878ae602109906c0cadf76d2588dcd023647 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Tue, 15 Jun 2021 22:01:52 +0200 Subject: [PATCH] fix: new sample --- config.sample.json | 70 +++++++++++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 28 deletions(-) diff --git a/config.sample.json b/config.sample.json index b8e2bd1..3a7a5ba 100644 --- a/config.sample.json +++ b/config.sample.json @@ -1,17 +1,16 @@ { "client": { "name": "Sample of a functional Orbit", - "logo": "https://cdn.startinblox.com/logos/webp/startinblox.webp" + "logo": "https://cdn.startinblox.com/logos/webp/startinblox.webp", + "server": "http://localhost:8000" }, "components": [{ "type": "registering", "parameters": { + "dataSrc": "server://open-communities/", "authority": "http://localhost:8000/", "authorityName": "dataserver" }, - "endpoints": { - "get": "http://localhost:8000/open-communities/" - }, "route": false }, { @@ -31,51 +30,66 @@ }, { "type": "dashboard", - "endpoints": { - "get": "http://localhost:8000/dashboards/" - } + "parameters": { + "dataSrc": "server://dashboards/" + }, + "experimental": [ + "routing" + ] }, { "type": "profileDirectory", - "endpoints": { - "get": "http://localhost:8000/users/", - "skills": "http://localhost:8000/skills/", - "uploads": "http://localhost:8000/upload/" + "parameters": { + "dataSrc": "federation://users/", + "rangeSkills": "federation://skills/", + "paginateBy": "30", + "uploads": "server://upload/" }, - "route": "members" + "route": "members", + "experimental": [ + "routing" + ] }, { "type": "jobBoard", - "endpoints": { - "get": "http://localhost:8000/job-offers/", - "post": "http://localhost:8000/job-offers/", - "skills": "http://localhost:8000/skills/" + "parameters": { + "dataSrc": "federation://job-offers/current/", + "dataSrcExpired": "federation://job-offers/expired/", + "postDataSrc": "server://job-offers/", + "rangeSkills": "federation://skills/" }, - "route": "job-offers" + "route": "job-offers", + "experimental": [ + "routing" + ] }, { "type": "projects", - "endpoints": { - "get": "http://localhost:8000/projects/", - "post": "http://localhost:8000/projects/", - "captains": "http://localhost:8000/users/", - "users": "http://localhost:8000/users/", + "parameters": { + "captains": "federation://users/", + "circles": "federation://circles/", + "dataSrc": "federation://projects/", + "dataSrcJoinable": "federation://projects/joinable/", + "post": "server://projects/", + "users": "federation://users/", + "noRender": "", "xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket" } }, { "type": "circles", - "endpoints": { - "get": "http://localhost:8000/circles/", - "post": "http://localhost:8000/circles/", - "owners": "http://localhost:8000/users/", - "users": "http://localhost:8000/users/", + "parameters": { + "dataSrc": "federation://circles/", + "dataSrcJoinable": "federation://circles/joinable/", + "owners": "federation://users/", + "post": "server://circles/", + "users": "federation://users/", "xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket" } }, { "type": "chat", - "endpoints": { + "parameters": { "xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket" }, "route": "messages"