Search code examples
node.jsstrapi

API versioning in strapi


so by default strapi puts APIs into the api folder. But what if i want to version my APIs like v1/v2/v3 etc?

I didn't see any file that has the route to api folder.


Solution

  • Unfortunately, there is no api versioning provided by Strapi right now, but the feature is to be added soon and is there in their roadmap. Refer to their productboard here.

    If you scroll down in the page mentioned above, you could see the idea request enter image description here