Basic concepts in Apidog
This article introduces some core concepts in Apidog. Many of these concepts may differ from similar products (such as Postman). Understanding these definitions and differences will help you better comprehend Apidog's workflow.
Endpoint
Apidog is an API-first product, meaning everything starts with defining APIs, and Endpoints are the core elements in APIs.
In Apidog's main interface, Endpoints are basic elements, grouped together in a directory form. For each Endpoint, you can modify its definition, preview it, send requests based on this endpoint spec, or save requests as endpoint cases.
This structure is very different from Postman and is more like an extension based on OAS - an API spec that can directly debug and save requests.
In Postman, the basic element is a request, and requests are essentially separate from API specs. This means that when the API spec changes, all requests and scripts need to be rewritten.
In Apidog, all endpoint cases (corresponding to Postman's requests) are based on API specs. When API specs change, endpoint cases naturally change, and all test scenarios and CI/CD based on this can be automatically or manually updated, which is very suitable for development teams to maintain and update APIs.
Request
In Apidog, you can also create Requests. Requests don't need to be based on endpoint specs, and their definition is the same as Postman requests. You can also parse a successful request into an endpoint spec.
Test scenario
When you need to send a batch of requests together (similar to running a Postman Collection), you'll need to use a Test scenario.
A test scenario includes a series of requests. These requests can be imported into the test scenario from endpoint specs or endpoint cases, and can be automatically or manually updated as the API spec changes.
Test scenarios also support logic components such as If, for, forEach, etc. You can pass data between requests, dynamically generate request parameters, and more.
Based on test scenarios, you can also view test reports, run performance tests, manage test data, integrate CI/CD, and more.
Environment
Environments in Apidog are similar to environments in Postman, containing many variables. You can use different values of the same environment variable when switching environments.
However, Apidog's environments also include another important concept: services. Each service corresponds to a prefix URL. Because Endpoints defined in OAS all start with /, they can be sent to different services. In Apidog, you don't need to write {{Base_url}}
at the beginning of requests, storing services in the form of variables. You just need to switch to the corresponding environment, and all requests will be sent directly to the corresponding service in the environment.
Project
A collection of endpoints, requests, schemas, environments, test scenarios, etc., forms a project. In Apidog, Project is the basic unit of collaboration.
A Project corresponds to an OAS definition. You can also import an OAS as a project or export an OAS from a project.
Compared to Apidog, an Apidog Project roughly corresponds to a Postman Collection, while an Apidog Team corresponds to a Postman Workspace.