MockService
Mock Service Management - Unified configuration hub for organizing mock interfaces and virtual runtime environments
Query the list of mock service
授权
Use existing opaque tokens for authentication
参数
查询参数
"int64"
Project ID, required when creating a service
"int64"
"int64"
"CREATED"
"FILE_IMPORT"
"ASSOC_SERVICE"
"int64"
"date-time"
Page data size, default 1, maximum 100000
"int32"
100000
1
Page data size, default 10, maximum 2000
"int32"
2000
1
Sort field
Sorting method
"ASC"
"DESC"
Filter field name
Filter condition (EQUAL, NOT_EQUAL, GREATER_THAN, etc.)
"GREATER_THAN"
"LESS_THAN"
"GREATER_THAN_EQUAL"
"LESS_THAN_EQUAL"
"EQUAL"
"NOT_EQUAL"
"MATCH"
"MATCH_END"
"NOT_MATCH"
"NOT_MATCH_END"
"IN"
"NOT_IN"
"IS_NULL"
"IS_NOT_NULL"
Filter value
Filter field name
Filter condition (EQUAL, NOT_EQUAL, GREATER_THAN, etc.)
"GREATER_THAN"
"LESS_THAN"
"GREATER_THAN_EQUAL"
"LESS_THAN_EQUAL"
"EQUAL"
"NOT_EQUAL"
"MATCH"
"MATCH_END"
"NOT_MATCH"
"NOT_MATCH_END"
"IN"
"NOT_IN"
"IS_NULL"
"IS_NOT_NULL"
Filter value
Filter field name
Filter condition (EQUAL, NOT_EQUAL, GREATER_THAN, etc.)
"GREATER_THAN"
"LESS_THAN"
"GREATER_THAN_EQUAL"
"LESS_THAN_EQUAL"
"EQUAL"
"NOT_EQUAL"
"MATCH"
"MATCH_END"
"NOT_MATCH"
"NOT_MATCH_END"
"IN"
"NOT_IN"
"IS_NULL"
"IS_NOT_NULL"
Filter value
Query information scope
"BASIC"
"DETAIL"
响应
OK
Replace mock service
授权
Use existing opaque tokens for authentication
请求体
响应
OK
Add mock service
授权
Use existing opaque tokens for authentication
请求体
响应
OK
Delete mock services
授权
Use existing opaque tokens for authentication
参数
查询参数
Mock service ids
200
0
true
Force deletion flag
响应
OK
Update mock service
授权
Use existing opaque tokens for authentication
请求体
响应
OK
Synchronize the service setting and apis to mock service instance
Associated mock service based on the service
授权
Use existing opaque tokens for authentication
参数
路径参数
Mock service id
"int64"
Services id
"int64"
响应
OK
Import the mock apis example
Stop mock service by agent
Start mock service by agent
Import the apis to existed mock service
授权
Use existing opaque tokens for authentication
请求体
Import mock service id
"int64"
Strategy for handling duplicate apis. The COVER value overrides the local api, and the IGNORE value ignores the synchronization current api
"COVER"
"IGNORE"
The delete flag when not existed. Whether to delete a local api when it does not exist in the current synchronized data
Apis specification content. API definition string content in json or yaml format, multiple files import is not supported
Apis specification file. API definition file in json or yaml format, multiple files need to be compressed into a zip file before uploading
"binary"
响应
OK
Import the mock service from file
授权
Use existing opaque tokens for authentication
请求体
Project ID, required when creating a service
"int64"
Import the source of the mock service
"OPENAPI"
"POSTMAN"
"ANGUS"
Apis document file, the apis documents file and text must specify one, and only import file when both exist
"binary"
Apis document text, the apis documents file and text must specify one, and only import file when both exist
Mock service name
1
Specify the mock service running node ID
"int64"
Specify the port on which to run the service on the node
"int32"
The cloud service edition is fixed at xxx.angusmock.cloud, and the privatized version allows users to freely enter the domain name
Mock request authentication configuration
Mock request CORS configuration
Mock service configuration
响应
OK
Import the mock service example
Generate associated mock service based on the service
授权
Use existing opaque tokens for authentication
请求体
响应
OK
Query the detail of mock service
Query the associated apis ids of mock service
授权
Use existing opaque tokens for authentication
参数
路径参数
Mock service id
"int64"
响应
OK
Fulltext search the list of mock service
授权
Use existing opaque tokens for authentication
参数
查询参数
"int64"
Project ID, required when creating a service
"int64"
"int64"
"CREATED"
"FILE_IMPORT"
"ASSOC_SERVICE"
"int64"
"date-time"
Page data size, default 1, maximum 100000
"int32"
100000
1
Page data size, default 10, maximum 2000
"int32"
2000
1
Sort field
Sorting method
"ASC"
"DESC"
Filter field name
Filter condition (EQUAL, NOT_EQUAL, GREATER_THAN, etc.)
"GREATER_THAN"
"LESS_THAN"
"GREATER_THAN_EQUAL"
"LESS_THAN_EQUAL"
"EQUAL"
"NOT_EQUAL"
"MATCH"
"MATCH_END"
"NOT_MATCH"
"NOT_MATCH_END"
"IN"
"NOT_IN"
"IS_NULL"
"IS_NOT_NULL"
Filter value
Filter field name
Filter condition (EQUAL, NOT_EQUAL, GREATER_THAN, etc.)
"GREATER_THAN"
"LESS_THAN"
"GREATER_THAN_EQUAL"
"LESS_THAN_EQUAL"
"EQUAL"
"NOT_EQUAL"
"MATCH"
"MATCH_END"
"NOT_MATCH"
"NOT_MATCH_END"
"IN"
"NOT_IN"
"IS_NULL"
"IS_NOT_NULL"
Filter value
Filter field name
Filter condition (EQUAL, NOT_EQUAL, GREATER_THAN, etc.)
"GREATER_THAN"
"LESS_THAN"
"GREATER_THAN_EQUAL"
"LESS_THAN_EQUAL"
"EQUAL"
"NOT_EQUAL"
"MATCH"
"MATCH_END"
"NOT_MATCH"
"NOT_MATCH_END"
"IN"
"NOT_IN"
"IS_NULL"
"IS_NOT_NULL"
Filter value
Query information scope
"BASIC"
"DETAIL"
响应
OK
Export the apis from existed mock service
授权
Use existing opaque tokens for authentication
参数
查询参数
Export mock service id
"int64"
Export apis ids. Specify the apis to export when scope is by APIS
, export all when not specified
true
Mock apis document format. Available values yaml or json, the default value is yaml
"yaml"
"json"
"yaml, json"
响应
OK
Delete the association between mock service and api service
授权
Use existing opaque tokens for authentication
参数
路径参数
Mock service id
"int64"
响应
OK