-
Notifications
You must be signed in to change notification settings - Fork 1
Resources
Stijn van Houwelingen edited this page Jun 23, 2022
·
7 revisions
-
GET/roomGets all rooms
[
{
"_Id":1,
"Streamer":["gjadgajsahwe8889d"],
"Title":"Crazy Stream!",
"Viewers":100,
"IsLive":true
},
{
"_Id":2,
"Streamer":["gjadgajsahwe8889d"],
"Title":"Crazy Stream!",
"Viewers":100,
"IsLive":true
},
{
"_Id":3,
"Streamer":["gjadgajsahwe8889d"],
"Title":"Crazy Stream!",
"Viewers":100,
"IsLive":true
},
{
"_Id":4,
"Streamer":["gjadgajsahwe8889d]",
"Title":"Crazy Stream!",
"Viewers":100,
"IsLive":true
}
]-
GET/room/:idGets the room matching specified ID
{
"_Id":4,
"Streamer":["gjadgajsahwe8889d"],
"Title":"Crazy Stream!",
"Viewers":100,
"IsLive":true
}-
PUT/room/:idUpdates the room matching specified ID
{
"_Id":4,
"Streamer":["gjadgajsahwe8889d"],
"Title":"Crazy Stream!",
"Viewers":100,
"IsLive":true
}-
GET/personGet all people
[
{
"_id":1,
"Name":"Harry",
"PublicKey":"OAIlfa;mpgh[fufahlajlnsflANolfhgoawo23iholadfbt24pihtglslba",
"Satochi":0.00009,
"Followed":[2,4]
},
{
"_id":2,
"Name":"Peter",
"PublicKey":"OAIlfa;mpgh[fufahlajlnsflANolfhgoawo23iholadfbt24pihtglslba",
"Satochi":0.00009,
"Followed":[2,4]
},
{
"_id":1,
"Name":"Harry",
"PublicKey":"OAIlfa;mpgh[fufahlajlnsflANolfhgoawo23iholadfbt24pihtglslba",
"Satochi":0.00009,
"Followed":[2,4]
}
]-
GET/person/:idGets the person matching the specified ID
{
"_id":2,
"Name":"Herbert",
"PublicKey":"AAO:fa/ajfAigbol24labs;1LAHG",
"Satochi":500.21884875,
"Followed":[1]
}-
POST/auth/loginGets the person depending on the attached signature
{
"_id":2,
"Name":"Herbert",
"PublicKey":"AAO:fa/ajfAigbol24labs;1LAHG",
"Satochi":500.21884875,
"Followed":[1]
}-
PUT/person/:idUpdates the person matching the specified ID
{
"_id":2,
"Name":"Herbert",
"PublicKey":"AAO:fa/ajfAigbol24labs;1LAHG",
"Satochi":999.9999999999999,
"Followed":[1,2,3,4]
}-
POST/chatsAdds a new chatmessage to the DB
{
"personId":3,
"room":2,
"message":"I am a new message!",
"dateTime":"2022-06-15 00:00:10",
"signature":"AGHPAHGOAhohtohsough2oh3orfo;uh2o;4guf"
}-
POST/roomAdds a new room -
POST/personAdds a new person