Endpoint unique idenfication
method and path
. However, some development projects (such as some e-commerce API documents) use a fixed URL for the API request and differentiate between APIs using parameters in the Query / Header.endpoint unique Identification
feature, which supports OperationId
, Query parameters
, Body parameters
, and Header parameters
as parameters to differentiate between APIs.1. Setting endpoint unique identification
Endpoint unique ID
is defined as a set of the directory
level. When you need to set an API as a unique identification, you need to set it in its parent directory
. Click on the directory and choose the unique identification parameter according to your needs, and after clicking save it will take effect on all APIs under that directory.2. Fill in the corresponding Parameter Value for the Unique Identifier
operationid
tab, and in both the basic information and request parameters at the bottom of the API, there is an icon of K
, which represents the parameter for the endpoint unique ID
.3. Import
Query Param
and Param Name
for it called 'action'.1.
Fixed Value
in Query parameters need not worry because this function will still be retained. However, when importing, the Fixed Value
is judged based on the URL, so it is recommended that users who have used the Fixed Value
use the endpoint unique Identification.2.
3.
endpoint unique Identification
, when importing Swagger and updating all directories, please avoid importing all projects to the root directory for updating. It is recommended to import APIs set as endpoint unique Identification
separately into that special.4. Mock Data
unique identifier
as Body Parameter
or Header Parameter
, you need to send the path + parameter name and value of the unique identifier
to get the corresponding Mock Data.1.
path + parameter name and value of the unique identifier
if the API has set the unique identifier
as Body Parameter
or Header Parameter
.2.
unique identifier
for APIs, the API documentation needs to be standardized to avoid cases where APIs have the same URL but do not have a unique identifier
set. This is to avoid the failure of obtaining Mock Data correctly.Modified at 2025-03-24 11:30:40