{
"namespace": "ns-contract-3",
"service": "TestContractSvc1",
"protocol": "http",
"version": "2.0",
"type": "swagger3.0",
"interfaces": [
{
"method": "GET",
"path": "/foo1"
},
{
"method": "GET",
"path": "/foo2"
},
{
"method": "GET",
"path": "/foo3"
}
]
}curl --location --request POST 'http://119.91.66.223:8090/naming/v1/service/contract/methods/delete' \
--header 'X-Polaris-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"namespace": "ns-contract-3",
"service": "TestContractSvc1",
"protocol": "http",
"version": "2.0",
"type": "swagger3.0",
"interfaces": [
{
"method": "GET",
"path": "/foo1"
},
{
"method": "GET",
"path": "/foo2"
},
{
"method": "GET",
"path": "/foo3"
}
]
}'{
"code": 200000,
"info": "execute success",
"serviceContract": {
"id": "d6d0fb32bdcf70252cc243a5e2f448ea7b68a1d7",
"interfaces": [
{
"id": "0b3f0d4f3ceecf67ffd5059bbc3d1d7adbbf1106"
},
{
"id": "5e616accd27ed9acb729364005ed17ec4a027a1c"
},
{
"id": "c3ada7cac762d818f39d7f8dfde8809c9b0c8d46"
}
]
}
}