...
- An API metadata artifact is created in the WSO2 Governance Registry (for more information see Governance Artifacts).
- It has a LifeCycle that has Development, Testing and Production states.
- If any API comes to the Production state, and if the production API gets updated frequently, demote the API to Testing state. (In this case, if API is getting updated more than 3 times within 2 minutes, the API is demoted back to Testing state. This indicates that it should be tested more).
Prerequisites:
...
- Login to G-Reg management console
https://localhost:9443/carbon/
as an admin. - Go to Home > Extensions > Configure > Lifecycles. Click Add new Lifecycle and you see a configuration XML file. Just
- Click on Save. Now you have created a life cycle called "SampleLifecycle".
- Go to Home > Metadata > Add > API and create an API by filling out the required fields.
- Attach the previouly created "SimpleLifycycle" to the API that you saved. See here for more details on how to achieve this.
- Once a Lifecycle is attached to the API, you can see that it is in Development state.
- Click Promote to move it to Testing and do the same to push it to Production.
- Once it is in Production, this is the scenario: If you edit the API artifact (which is now in Production state) three times, you can see that it automatically demotes back to Testing state.
...