a month ago - last edited a month ago
Version: SAP Commerce 2205
How can I disable Swagger in Production environment but enable Swagger in Development and Staging evironments?
In the official Enabling or Disabling Swagger UI guide, it says I need to exclude the swaggerintegration extension. However, I assume this will affect environments.
Is it possible to configure what I need via manifest.json? If not, what is the best practice or approach for this?
Hi,
As far as i know, there is no way to disable Swagger in production environ and enable it in dev and staging, after all, there is no so called "persona" for extensions in manifest.json currently.
So for your requirement, my suggestion is to have two different buildings, one includes swaggerintegraiton and deploy to dev and staging, the other excludes swaggerintegration and deploy to production.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, you cannot directly configure Swagger UI via manifest.json file in SAP commerce cloud . You can only integrate it with swaggerintegration. There is no other approach as of now.
Thanks and regards,
Pradeep Pai Karkala
SAP CX Product Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@adamreisberg commercewebservices
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.