Obviously there is some extension point being used to let the tenant deploy the swatch endpoint. Why not add an additional extension point to the resource serving the widget endpoint that let's additional links be added?
Obviously there is some extension point being used to let the tenant deploy the swatch endpoint. Why not add an additional extension point to the resource serving the widget endpoint that let's additional links be added?
--
You received this message because you are subscribed to the Google Groups "API Craft" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-craft+...@googlegroups.com.
Visit this group at http://groups.google.com/group/api-craft.
For more options, visit https://groups.google.com/d/optout.
If each microservice is to have complete isolation at that level, perhaps you need an 'API root' per microservice, and the root can offer templated links to get the various widget resources, e.g. (HAL):
GET /
Host: swatchservice.myapi.com
{
"_links": {
"widget-swatch": {
" href": "/widget/{id}/swatch",
"templated ": true
}
}
}
That would let you have isolation, and at the same time give you most of the HATEOAS benefits.
If you needed a centralized facade, you could always compose all the API roots together for the centralized API root.
To unsubscribe from this group and stop receiving emails from it, send an email to api-craft+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/api-craft.