I am looking for someone who has ideas on how to best manage varying endpoints for different clients in an SAAS.
For example, in a platform that does vehicle sales, imaging several clients that have endpoints for vehicles, grouped by type
but some apps in the platform only have cars, or boats, not the other two, and some have /bicycles - it totally depends on what is setup in their database.
My api is setup by client - so it is really:
My specific question is - how can I use RAML to model the api for my system(s) - for the different clients? Is the only way to do it using auto-generated raml? Which means writing code to get RAML?
Building the variability in the api is relatively easy, for example in express, with parameters:
Are there similar approaches using RAML?
I’ll admin I’ve only read the 100 and 200 tutorials - but don’t want to become an expert before finding out I can’t do this.
I will also be asking a follow-up - what about variable fields, and creating example responses? For example, some dealerships might provide make, model, and color at the cars endpoint - another make, model, cost, and condition or something.
Anyone with experience in this area - looking forward and thanks in advance.