apache / apisix-dashboard

Dashboard for Apache APISIX
https://apisix.apache.org/
Apache License 2.0
1.01k stars 527 forks source link

How to use "API_VERSION" in route configuration? #2898

Open jzhao20230918 opened 11 months ago

jzhao20230918 commented 11 months ago

Issue description

hello, How deos the "Version" field in route configuration take effect? Is it just a label? Since if I add v1 or v2 to the configured url, it won't work. Thanks for your help.

Expected behavior

{}

How to Reproduce

latest apisix

Screenshots

No response

Environment

Additional context

No response

hanqingwu commented 10 months ago

hi @jzhao20230918 , like below json, you can set route Version

{
  "uri": "/test-http-server",
  "name": "test-server",
   .......
  "labels": {
    "API_VERSION": "v3",
   },
  "status": 1
}