LiteSun commented on issue #823:
URL:
https://github.com/apache/apisix-dashboard/issues/823#issuecomment-747847820
In order to manage api more finely, I propose to add api version management
feature.
## front-end
- add version management section in route step1 page

- when `enable version` turn on, section `version config` and `version
table` will show.


- when click `add` or `edit`, `Edit version drawer` will show.

## back-end
- `POST /apisix/admin/routes` and `PUT /apisix/admin/routes` need to
support `version`.
```json
{
...,
...,
version: {
enable: true,
location:'header' | 'url' | 'first part of path',
strip_versio?n: false,
name:'string',
default: 'string',
version_list:[{
value:'v1',
override target host:'string',
expires: timestamp
},{}]
}
}
```
- need a new API to get version list, `get /version`:
```json
version_list:[{
value:'v1',
override target host:'string',
expires: timestamp
},{}]
```
## apisix
need to discuss.
cc @juzhiyuan @liuxiran @moonming @membphis @nic-chen
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]