# branch: v1 访问usercenter-api:v1->account-service:v1
curl --location '127.0.0.1:80/user.get' \
--header 'branch: v1' \
--header 'Content-Type: application/json' \
--data '{
"id":1
}'
# response
{
"id": 1
"name": "edison1/1"
}
# branch: v1 访问usercenter-api:v2->account-service:v2
curl --location '127.0.0.1:80/user.get' \
--header 'branch: v2' \
--header 'Content-Type: application/json' \
--data '{
"id":1
}'
# response
{
"id": 2
"name": "edison2/2"
}
curl --location '127.0.0.1:80/user.get' \
--header 'branch: v2' \
--header 'Content-Type: application/json' \
--data '{
"id":1
}'
# response
{
"id": 2,
"name": "edison2/1"
}