Quote:
Originally Posted by suzzer99
Are you putting the links in HTTP headers as mentioned in the article, or in the response body which seems to be the HATEOAS method?
Can you post a generic example of a response with links?
so we are generating a kind of generic flow that other teams can use. they do some behind the scenes stuff and then send us a hypermedia, ie a url and verb for an api call.
we call that api which returns another hypermedia which we call. then different stuff happens.
so lets say we are given to start GET on api1/startFlow?a=bunch&of=query¶ms=stuff.
we call that and it gives us back
hypermedia:Hypermedia{
action:string;
href:string;
}
example
{
action: POST,
href: api1/nextFlow?a=bunch&of=query¶ms=stuff
}
its pretty straighforward really.