fix: new sample

This commit is contained in:
Jean-Baptiste Pasquier 2021-06-15 22:01:52 +02:00
parent a5730680d0
commit 43eb878ae6
1 changed files with 42 additions and 28 deletions

View File

@ -1,17 +1,16 @@
{ {
"client": { "client": {
"name": "Sample of a functional Orbit", "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": [{ "components": [{
"type": "registering", "type": "registering",
"parameters": { "parameters": {
"dataSrc": "server://open-communities/",
"authority": "http://localhost:8000/", "authority": "http://localhost:8000/",
"authorityName": "dataserver" "authorityName": "dataserver"
}, },
"endpoints": {
"get": "http://localhost:8000/open-communities/"
},
"route": false "route": false
}, },
{ {
@ -31,51 +30,66 @@
}, },
{ {
"type": "dashboard", "type": "dashboard",
"endpoints": { "parameters": {
"get": "http://localhost:8000/dashboards/" "dataSrc": "server://dashboards/"
} },
"experimental": [
"routing"
]
}, },
{ {
"type": "profileDirectory", "type": "profileDirectory",
"endpoints": { "parameters": {
"get": "http://localhost:8000/users/", "dataSrc": "federation://users/",
"skills": "http://localhost:8000/skills/", "rangeSkills": "federation://skills/",
"uploads": "http://localhost:8000/upload/" "paginateBy": "30",
"uploads": "server://upload/"
}, },
"route": "members" "route": "members",
"experimental": [
"routing"
]
}, },
{ {
"type": "jobBoard", "type": "jobBoard",
"endpoints": { "parameters": {
"get": "http://localhost:8000/job-offers/", "dataSrc": "federation://job-offers/current/",
"post": "http://localhost:8000/job-offers/", "dataSrcExpired": "federation://job-offers/expired/",
"skills": "http://localhost:8000/skills/" "postDataSrc": "server://job-offers/",
"rangeSkills": "federation://skills/"
}, },
"route": "job-offers" "route": "job-offers",
"experimental": [
"routing"
]
}, },
{ {
"type": "projects", "type": "projects",
"endpoints": { "parameters": {
"get": "http://localhost:8000/projects/", "captains": "federation://users/",
"post": "http://localhost:8000/projects/", "circles": "federation://circles/",
"captains": "http://localhost:8000/users/", "dataSrc": "federation://projects/",
"users": "http://localhost:8000/users/", "dataSrcJoinable": "federation://projects/joinable/",
"post": "server://projects/",
"users": "federation://users/",
"noRender": "",
"xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket" "xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket"
} }
}, },
{ {
"type": "circles", "type": "circles",
"endpoints": { "parameters": {
"get": "http://localhost:8000/circles/", "dataSrc": "federation://circles/",
"post": "http://localhost:8000/circles/", "dataSrcJoinable": "federation://circles/joinable/",
"owners": "http://localhost:8000/users/", "owners": "federation://users/",
"users": "http://localhost:8000/users/", "post": "server://circles/",
"users": "federation://users/",
"xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket" "xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket"
} }
}, },
{ {
"type": "chat", "type": "chat",
"endpoints": { "parameters": {
"xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket" "xmpp": "wss://xmpp-dev.startinblox.com/xmpp-websocket"
}, },
"route": "messages" "route": "messages"