Apigee API management is a powerful API management platform that helps enterprises build, manage, monetize and scale APIs. Apigee provides tools to help assist your organization no matter where you are in the API lifecycle. Developers are at the center of API development, adoption and growth. In addition to discovery and onboarding, developers need tools that will simplify the development process and cut down time of development.
Apigee understands the needs of developers and provides powerful comprehensive tools to simplify and speed up API development. In addition to accessing Apigee in the Google Cloud console, Apigee is available via most commonly used IDEs via the Cloud Clode plug-in. With the Cloud Code plugin in VSCode, developers can create workspaces, build proxies, and even leverage Gemini Code Assist to streamline development. To better understand the plug-in let’s first take a closer look at a workspace.
Workspace for organization
A workspace in Apigee is a collection of folders that are automatically created to help you develop APIs. Workspaces save time by providing you with a structured starting point to leverage all the tools you need for API development in one location. A workspace consists of:
API proxy: Proxies consist of a proxy endpoint (your API URL) and a target endpoint (connection point to your backend service). A proxy decouples your API from your backend.
Shared flow: A shared flow allows you to reuse common functionality like policies and resources across multiple APIs within an organization.
Environments: An environment is dedicated space for creating, testing and deploying API proxies.
Test data: Test data allows you to bundle together a set of common resources that a developer might see in a production environment. Things like API products, developer accounts, test developer applications and values that your API would need to function.
Emulators: Emulators allow you to verify the functionality through unit and manual testing using a docker image (local runtime).
Gemini Code Assist for API management
Gemini Code Assist unlocks the power of generative AI to help you build great software. Create an Open API specification from requirements that you describe in natural language within seconds all from within the Cloud Code plugin. With tight integration with API hub, you can register these specifications right from the plugin.
Harnessing the power of Gemini Code Assist starts with a prompt. A prompt allows you to describe your API specification in natural language. Gemini Code Assist offers contextual AI assistance by understanding objects in your organization's API hub, which it uses to generate a tailored specification response in seconds based on your business requirements. It does this by reusing objects, meta-data and security schemas from specifications that are already registered in your organization's API hub to promote consistency across all of your APIs.
Let’s say I wanted to create an API for placing new orders. In my prompt I may write, “Create an API for placing new orders”. Gemini will then take a look at all the API’s registered in API hub and use those business requirements to generate a draft. In my specification Gemini will pull objects and schemas from the API’s in my registry to match the business requirements of other APIs. I can then refine my prompt until I get my desired specification using the editor. Additionally I can even see my prompt history all from the same screen.
Mock servers for increased velocity
Testing is a vital part of the API development process. The Cloud Code Plugin allows you to not only develop APIs but also test them locally. Whenever an API specification is generated a local mock server is also created alongside the specification. You can interact with your API from within the same UI you created your specification. Additionally you can modify parameters and insert mock values to simulate common scenarios and use cases. These auto generated mock servers allow for faster functionality verification of your API proxies.
Get started
Ready to build and deploy an API with the Cloud Code plugin? Click here to get started. With Gemini Code Assist for API management reimagine API development.
Comentarios