Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

project-alvarium/Alvarium-Server

Repository files navigation

Alvarium Server

In this readme you shall be able to call an endpoint that stores sent data as annotations, into our private setup tangle and return a score

Host Details:
IP: 100.64.26.21
Port: 9090

Add Content endpoint (Post):

http://{IP}:{Port}/api/data

Expected Request Body

req body {
	"DataID" : "Any Unqiue String",
  "Content" : "Any Unqiue String" 
}

Expected Response Body (Success):

res body {
	"message" : "ok",
  "DataID" : "Unique Sent String",
  "Score" : "Random Number" 
}

Expected Response Body (Failure):

res body {
	"message" : "Failed"
}

Get Content endpoint (Get):

http://{IP}:{Port}/api/data/{DataID}

Expected Request Body

req body {
	"DataID" : "Unqiue data ID String"
}

Expected Response Body (Success):

res body {
  "DataID" : "Unique Sent String",
  "Content" : "Any Unqiue String",
  "Score" : "Random Number" 
}

Expected Response Body (Failure):

res body {
	"message" : "Failed"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published