Send a request to the CanDIG network
POST
/fanout
const url = 'https://raw.githubusercontent.com/federation/v1/fanout';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"user_jwt":"example","method":"GET","path":"example","payload":{},"service":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://raw.githubusercontent.com/federation/v1/fanout \ --header 'Content-Type: application/json' \ --data '{ "user_jwt": "example", "method": "GET", "path": "example", "payload": {}, "service": "example" }'Entry point for Tyk to pass ALL requests to CanDIG microservices. Federation broadcasting defined by ‘federation’ header.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” federation
string
Flag for federated query. Federation assumed unless false is specified
Request Body
Section titled “Request Body ” Media type application/json
object
user_jwt
User jwt, if not the one in the Authorization header
string
method
required
Method to be called on the endpoint
string
path
required
Path to be called at the endpoint
string
payload
required
Body of the request to be made
object
service
required
Name of service to be called, e.g. katsu or htsget
string
Responses
Section titled “ Responses ”Response to a search request, either federated or not
Invalid input, object invalid
Authorization Error
Expression not found
Internal Error
Federation node time out