Skip to content

Commit 7943a54

Browse files
authored
Merge pull request #61 from TharmiganK/lifecycle
Add Lifecycle Management documentation
2 parents ce20a0e + bb789da commit 7943a54

11 files changed

+57
-22
lines changed

Diff for: en/docs/api-management/lifecycle-management.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Lifecycle Management
2+
3+
API lifecycle management is an important aspect of API management. The API lifecycle consists of various states that an API passes through, from creation to retirement. In Devant, there are six distinct lifecycle states: `created`, `pre-released`, `published`, `blocked`, `deprecated`, and `retired`.
4+
5+
By leveraging the various lifecycle states, API managers can optimize the development process and ensure that subscribers have access to the latest and most reliable APIs.
6+
7+
## API lifecycle states
8+
9+
The following lifecycle states are applicable to APIs in Devant:
10+
11+
| **API lifecycle state** | **Use case** | **Corresponding action** |
12+
|-----------------------|------------|-----------|
13+
| `CREATED` | The API is created but is not ready for consumption.| The API is not visible to subscribers in the Developer Portal.|
14+
| `PRE-RELEASED` | A prototype is created for early promotion and consumer testing. You can deploy a new API or a new version of an existing API as a prototype to provide subscribers with an early implementation of the API.|The API is published to the Developer Portal as a pre-release.|
15+
| `PUBLISHED` | The API is ready for subscribers to view and subscribe to via the Developer Portal| The API is visible in the Developer Portal and is available for subscription.|
16+
| `BLOCKED` | Access to the API is temporarily blocked.| Runtime calls are blocked, and the API is not visible in the Developer Portal.|
17+
| `DEPRECATED` | The old version of an API is moved to this state when a newer version of the API is PUBLISHED.| The API is deployed and is available to existing subscribers. New subscriptions are disabled. Existing subscribers can continue to use it as usual until the API is retired.|
18+
| `RETIRED` | The API is no longer in use when it is in this state.| The API is unpublished and deleted from the Developer Portal.|
19+
20+
## Manage the lifecycle of an API
21+
22+
To change the lifecycle state of an API via the Devant Console, follow the instructions given below:
23+
24+
!!! tip
25+
You must have publishing privileges to manage the lifecycle states of an integration.
26+
27+
1. Sign in to the [Devant Console](https://console.devant.dev/).
28+
2. Select the project.
29+
3. In the **Integrations** pane, click on the integration for which you want to manage the lifecycle.
30+
4. In the overview page, click **Lifecycle Status** to view the lifecycle management page.
31+
5. You will see the lifecycle state transition diagram indicating the current lifecycle state of the integration. Just above the lifecycle state transition diagram, The possible lifecycle states you can apply to the integration are displayed just above the lifecycle state transition diagram. Click on a required lifecycle state to apply it to the integration. For example, if an integration is in the `Created` state, you can click either `Pre-release` or `Publish`.
32+
33+
![Lifecycle Management](../assets/img/api-management/lifecycle-management.png){.cInlineImage-full}
320 KB
Loading

Diff for: en/docs/devant-concepts/endpoint.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
An Endpoint is a network-exposed function that resides within an integration. In Devant, **Integration Type** `Integration as API` exposes one or more endpoints. Each endpoint in an integration can have a service contract (OpenAPI, GraphQL SDL) associated with it. This contract is used to expose the endpoint to consumers. In the absence of a contract, Devant uses /* exposed on all HTTP verbs as the default contract to expose the service or the integration.
44

5-
Each endpoint exposed in a component is considered a single API. Therefore, Devant allows you to do API management per endpoint for a given component. For example, you can perform lifecycle management and configure security settings per endpoint in a given component.
5+
Each endpoint exposed in an integration is considered a single API. Therefore, Devant allows you to do API management per endpoint for a given integration. For example, you can perform lifecycle management and configure security settings per endpoint in a given integration.
66

77
[//]: # (Todo: Uncomment the following after the required page is completed)
88
[//]: # (See [Configure Endpoints](../develop-components/configure-endpoints.md) to learn how to configure endpoints when developing components in Devant.)

Diff for: en/docs/devant-concepts/organization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Devant roles are defined as follows:
3636
- **API Subscriber**: An API subscriber is a developer in a particular organization. An API subscriber can subscribe to an API, manage subscriptions, manage integrations, generate API keys, and manage API keys.
3737
- **Admin**: An administrator is responsible for all administration tasks, including user management, customizing the Developer Portal, managing projects, enabling analytics, managing domains, etc.
3838
- **Billing Admin**: Is responsible for billing administration that includes viewing tiers, creating and viewing organizations, managing invoices, viewing and creating subscriptions, and viewing and creating payment methods.
39-
- **Devant DevOps**: A Devant DevOps user is a user with access to the Devant DevOps portal, enabling them to actively manage, ensure dependable deployment, and monitor components.
39+
- **Devant DevOps**: A Devant DevOps user is a user with access to the Devant DevOps portal, enabling them to actively manage, ensure dependable deployment, and monitor integrations.
4040
- **Developer**: Users who develop, deploy, and manage integrations at scale.
4141
- **External API subscriber**: External API subscribers are API consumers who have access only to the API Developer Portal. They can join an organization with the sole purpose of consuming APIs.
4242
- **Environment Manager (Deprecated)**: Manages deployment environments.

Diff for: en/docs/devant-samples/explore-the-demo-organization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ When you join the demo organization, you gain access to a comprehensive, read-on
2424
Key aspects you can explore include:
2525

2626
- **Projects and integrations**: View the sample projects and their respective integrations, where each integration serves a distinct function within the customer rewards management system.
27-
- **Component details and architecture**: Understand the architecture by exploring how each integration is configured, including environment variables, API keys, and other dependencies that enable the required functionality.
27+
- **Integration details and architecture**: Understand the architecture by exploring how each integration is configured, including environment variables, API keys, and other dependencies that enable the required functionality.
2828
- **Build and deployment pipelines**: Inspect the build configurations and deployment history for each integration.
2929
- **Delivery insights, usage insights, and observability metrics**: Analyze metrics and insights for each integration.

Diff for: en/docs/manage-databases-and-caches/add-devant-managed-databases-and-caches-to-the-marketplace.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ Once the database is added to the Marketplace, it can be consumed via a connecti
4646
!!! note
4747
To remove a database or cache that you added to the Marketplace, click the corresponding **Remove from Marketplace**. This action prevents new connections to the removed database, but existing connections remain unaffected.
4848

49-
For details on using a database connection in your component, see [Use a Database Connection in Your Component](../sharing-and-reusing/use-a-database-connection-in-your-integration.md).
49+
For details on using a database connection in your integration, see [Use a Database Connection in Your Integration](../sharing-and-reusing/use-a-database-connection-in-your-integration.md).

Diff for: en/docs/manage-databases-and-caches/devant-managed-databases-and-caches.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Devant-Managed Databases, Vector Databases, and Caches
22

33
Devant allows you to create PostgreSQL and MySQL databases as well as Devant-Managed Cache instances on all major cloud providers (AWS, Azure, GCP, and DigitalOcean) as fully Devant-managed platform services.
4-
These databases and caches can be seamlessly provisioned to offer persistence and caching capabilities for all your Devant components. Devant provides various service plans for each type, ranging from smaller instances for development purposes to production-grade databases with automatic backups and high-availability multi-nodes.
4+
These databases and caches can be seamlessly provisioned to offer persistence and caching capabilities for all your Devant integrations. Devant provides various service plans for each type, ranging from smaller instances for development purposes to production-grade databases with automatic backups and high-availability multi-nodes.
55

66
!!! info "Note"
77
- The capability to create Devant-managed databases, vector databases, and cache services is available only for paid Devant users.

Diff for: en/docs/sharing-and-reusing/create-a-connection.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To create a connection to an API or a database, follow the step-by-step instruct
2222
7. Select an **Access Mode** and **Authentication Scheme** for the connection.
2323
8. Click **Create**.
2424

25-
This creates the connection and displays its details for each environment, along with an inline guide on how to use the connection in your component.
25+
This creates the connection and displays its details for each environment, along with an inline guide on how to use the connection in your integration.
2626

2727
!!! note
2828
During connection creation, secret values for the lowest environment are visible, allowing you to copy them for local use if necessary. Secret values for higher environments remain hidden to ensure security.
@@ -47,15 +47,15 @@ To create a connection to an API or a database, follow the step-by-step instruct
4747

4848
Prerequisites:
4949

50-
- Create a Devant-managed database. For details, see [Devant-Managed Databases and Caches](../../manage-databases-and-caches/Devant-managed-databases-and-caches.md).
51-
- Add the database to the Marketplace. For details, see [Add Devant-Managed Databases and Caches to the Marketplace](../../manage-databases-and-caches/add-Devant-managed-databases-and-caches-to-the-marketplace.md).
50+
- Create a Devant-managed database. For details, see [Devant-Managed Databases and Caches](../manage-databases-and-caches/devant-managed-databases-and-caches.md).
51+
- Add the database to the Marketplace. For details, see [Add Devant-Managed Databases and Caches to the Marketplace](../manage-databases-and-caches/add-devant-managed-databases-and-caches-to-the-marketplace.md).
5252

5353
Follow these steps to create a connection to a Devant-managed database:
5454

55-
1. In the Devant Console, go to the top navigation menu and set the visibility level as [project](../../Devant-concepts/connections.md#project-connections) or [component](../../Devant-concepts/connections.md#component-connections) as follows:
55+
1. In the Devant Console, go to the top navigation menu and set the visibility level as [project](../devant-concepts/connections.md#project-connections) or [integration](../devant-concepts/connections.md#integration-connections) as follows:
5656

5757
- **Project Connection**: Select an organization and a project in that organization.
58-
- **Component Connection**: Select an organization, a project in that organization, and a component in the selected project.
58+
- **Integration Connection**: Select an organization, a project in that organization, and an integration in the selected project.
5959

6060
2. In the left navigation menu, click **Dependencies** and then **Connections**. This page lists all the existing connections.
6161
3. Click **+Create**. This opens the Marketplace view where you can browse and search for services or databases.
@@ -71,9 +71,9 @@ To create a connection to an API or a database, follow the step-by-step instruct
7171

7272
3. Click **Create**.
7373

74-
This creates the connection and displays the database connection details for each environment, along with an inline guide on how to use the connection in your component.
74+
This creates the connection and displays the database connection details for each environment, along with an inline guide on how to use the connection in your integration.
7575

7676
!!! note
7777
During connection creation, secret values for the lowest environment are visible, allowing you to copy them for local use if necessary. Secret values for higher environments remain hidden to ensure security.
7878

79-
For step-by-step instructions on using a database in your component, see [Use a Database Connection in Your Component](./use-a-database-connection-in-your-integration.md).
79+
For step-by-step instructions on using a database in your integration, see [Use a Database Connection in Your integration](./use-a-database-connection-in-your-integration.md).

Diff for: en/docs/sharing-and-reusing/use-a-connection-in-your-integration.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To integrate another service into your application, click the appropriate tab be
3535
| resourceRef | A unique, readable identifier of the service being connected to. |
3636

3737

38-
2. If you've previously added a `connectionReferences` section under `dependencies`, append this as another item under `connectionReferences`. Upon deploying the component, Devant automatically creates a subscription if applicable and the necessary configurations to establish the connection will be injected into the Devant-defined environment variables.
38+
2. If you've previously added a `connectionReferences` section under `dependencies`, append this as another item under `connectionReferences`. Upon deploying the integration, Devant automatically creates a subscription if applicable and the necessary configurations to establish the connection will be injected into the Devant-defined environment variables.
3939
4040
The following table details the Devant-defined environment variables:
4141

@@ -123,7 +123,7 @@ To integrate another service into your application, click the appropriate tab be
123123

124124
2. Replace `<YOUR_ENV_VARIABLE_NAME_HERE>` with an appropriate environment variable name of your choice. If you have previously added a service reference section under `dependencies`, append this as another item under `serviceReferences`.
125125

126-
Upon deploying the component, Devant automatically creates a subscription if applicable and populates the specified environment variables with actual values.
126+
Upon deploying the integration, Devant automatically creates a subscription if applicable and populates the specified environment variables with actual values.
127127

128128

129129
The following table provides details on the configuration keys associated with the connection:
@@ -186,7 +186,7 @@ To integrate another service into your application, click the appropriate tab be
186186

187187
2. Replace `<YOUR_ENV_VARIABLE_NAME_HERE>` with an appropriate environment variable name of your choice. If you have previously added an outbound service reference, append this as another item under `serviceReferences`.
188188

189-
Upon deploying the component, Devant automatically creates a subscription if applicable and populates the specified environment variables with actual values.
189+
Upon deploying the integration, Devant automatically creates a subscription if applicable and populates the specified environment variables with actual values.
190190

191191

192192
The following table provides details on the configuration keys associated with the connection:

Diff for: en/docs/sharing-and-reusing/use-a-database-connection-in-your-integration.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To integrate a database into your application, click the appropriate tab below b
3535
| resourceRef | A unique, readable identifier of the database being connected to. |
3636

3737

38-
2. If you've previously added a `connectionReferences` section under `dependencies`, append this as another item under `connectionReferences`. Upon deploying the component, the necessary configurations to establish the connection will be injected into Devant-defined environment variables.
38+
2. If you've previously added a `connectionReferences` section under `dependencies`, append this as another item under `connectionReferences`. Upon deploying the integration, the necessary configurations to establish the connection will be injected into Devant-defined environment variables.
3939

4040
The following table details the Devant-defined environment variables:
4141

@@ -73,7 +73,7 @@ To integrate a database into your application, click the appropriate tab below b
7373
=== "Component.yaml file (v1.0)"
7474

7575
!!! note
76-
The `component.yaml v1.0` file is considered legacy. For new components, we recommend using the latest version, `component.yaml v1.1`, which offers enhanced usability and features.
76+
The `component.yaml v1.0` file is considered legacy. For new integrations, we recommend using the latest version, `component.yaml v1.1`, which offers enhanced usability and features.
7777

7878
1. Copy and paste the snippet from the developer guide into the `component.yaml` file.
7979

@@ -111,7 +111,7 @@ To integrate a database into your application, click the appropriate tab below b
111111

112112
2. Replace `<YOUR_ENV_VARIABLE_NAME_HERE>` with an appropriate environment variable name of your choice. If you have previously added a service reference section under `dependencies`, append this as another item under `serviceReferences`.
113113

114-
Upon deploying the component, Devant automatically populates the specified environment variables with actual values.
114+
Upon deploying the integration, Devant automatically populates the specified environment variables with actual values.
115115

116116
The following table provides details on the configuration keys associated with the connection:
117117

@@ -136,7 +136,7 @@ To integrate a database into your application, click the appropriate tab below b
136136
=== "Component-config.yaml file"
137137

138138
!!! note
139-
The `component-config.yaml` file is considered legacy. For new components, we recommend using the latest version, `component.yaml v1.1`, which offers enhanced usability and features.
139+
The `component-config.yaml` file is considered legacy. For new integrations, we recommend using the latest version, `component.yaml v1.1`, which offers enhanced usability and features.
140140

141141
1. Copy and paste the snippet from the developer guide into the `component-config` file under the `spec` section.
142142

@@ -173,7 +173,7 @@ To integrate a database into your application, click the appropriate tab below b
173173

174174
2. Replace `<YOUR_ENV_VARIABLE_NAME_HERE>` with an appropriate environment variable name of your choice. If you have previously added an outbound service reference, append this as another item under `serviceReferences`.
175175

176-
Upon deploying the component, Devant automatically populates the specified environment variables with actual values.
176+
Upon deploying the integration, Devant automatically populates the specified environment variables with actual values.
177177

178178

179179
The following table provides details on the configuration keys associated with the connection:
@@ -243,4 +243,4 @@ connection.connect((err) => {
243243

244244
```
245245

246-
By following these steps, your component can interact with the Devant-managed database seamlessly.
246+
By following these steps, your integration can interact with the Devant-managed database seamlessly.

Diff for: en/mkdocs.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ nav:
8787
- Resource Hierarchy: devant-concepts/resource-hierarchy.md
8888
- Organization: devant-concepts/organization.md
8989
- Project: devant-concepts/project.md
90-
- Component: devant-concepts/integration.md
90+
- Integration: devant-concepts/integration.md
9191
- Endpoint: devant-concepts/endpoint.md
9292
- CI/CD: devant-concepts/ci-cd.md
9393
- Deployment Tracks: devant-concepts/deployment-tracks.md
@@ -104,6 +104,8 @@ nav:
104104
- MySQL: manage-databases-and-caches/devant-managed-mysql-databases.md
105105
- Devant-Managed Cache: manage-databases-and-caches/devant-managed-caches.md
106106
- Add Devant-Managed Databases and Caches to the Marketplace: manage-databases-and-caches/add-devant-managed-databases-and-caches-to-the-marketplace.md
107+
- API Management:
108+
- Lifecycle Management: api-management/lifecycle-management.md
107109
- Testing:
108110
- Test REST Endpoints via the OpenAPI Console: testing/test-rest-endpoints-via-the-openapi-console.md
109111
- Monitoring and Insights:

0 commit comments

Comments
 (0)