Skip to main content

Remove Method from Service

Endpoint: DELETE /api/registry/service/{registryName}/methods

Removes a method from a registered service.

Path parameters

ParameterDescriptionTypeRequired/ Optional
nameThe name of the service to remove the method from.stringRequired.

Query parameters

ParameterDescriptionTypeRequired/ Optional
serviceNameThe operation name of the method to remove. For example, getPetById.stringRequired.
methodThe path of the method to remove. For example, /pet/{petId}.stringRequired.
methodTypeThe method type of the method to remove. For example, GET.stringRequired.

Response

Returns 200 OK, indicating that the method has been removed successfully.

Examples

Remove a method from a service

Request

curl -X 'DELETE' \
'https://<YOUR-SERVER-URL>/api/registry/service/petstore/methods?serviceName=getPetById&method=%2Fpet%2F%7BpetId%7D&methodType=GET' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>'

Response

Returns 200 OK, indicating that the method has been removed successfully.