Publish the New Version and Deprecate the Old
You publish an API to make it available for subscription in the API Store. If you set up multiple tenants, your tenant store will be visible to other tenants as well. Therefore, users of the other tenants can view the APIs that are published in your default API Store. This allows you to advertise your APIs to a wider audience. Although the APIs that are published in your tenant store are visible to the users of other tenant stores, they need to sign in to your tenant store in order to subscribe to and use them.
For a description of the API lifecycle stages, see API lifecycle.
The steps below show you how to publish an API to its default API Store:
Sign in to the WSO2 API Publisher as a user who has the publisher role assigned.
https://<hostname>:9443/publisherClick on the API that you prototyped in the previous tutorial (e.g.,
PhoneVerification 2.0.0).Click GO TO OVERVIEW.
Go to the API's Lifecycle tab and click Publish.
The API is now published to the default API Store.
Sign in to the default Store and click on the APIs menu to see the API that you just published listed there.
Go back to the WSO2 API Publisher and click the API that you want to deprecate (e.g.,
PhoneVerification 1.0.0).Go to the API's Lifecycle tab and click Deprecate.
The API is now deprecated.Go back to the WSO2 API Store, click the Applications menu and open the TestApp Application, which you use to subscribe to the API. Click the Subscriptions tab to see the deprecated API.
The subscriptions made to the older API versions should be deprecated now.
You have published an API to the API Store and deprecated its previous versions.