Help Center/ CodeArts Pipeline/ API Reference/ API/ Microservice Management/ Querying Whether a Microservice Is Favorited
Updated on 2025-03-25 GMT+08:00

Querying Whether a Microservice Is Favorited

Function

This API is used to query whether a microservice is favorited.

Calling Method

For details, see Calling APIs.

URI

GET /v2/{cloudProjectId}/component/{componentId}/follow/query

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

cloudProjectId

Yes

String

Project ID.

componentId

Yes

String

Microservice ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

-

String

Whether to favorite a microservice.

Example Requests

GET https://{endpoint}/v2/2d09f712e9504b61b034cc8f40e475a8/component/f7ced2341b204d2b82c607c6f0de5b4a/follow/query

Example Responses

Status code: 200

ok

true

Status Codes

Status Code

Description

200

ok

Error Codes

See Error Codes.