LiteSun edited a comment 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
    
   
![image](https://user-images.githubusercontent.com/31329157/102568888-6b9a5480-411f-11eb-93b5-7f3bf69585f8.png)
   
   - when `enable version` turn on,  section `version config` and `version 
table` will show.
   
   
![image](https://user-images.githubusercontent.com/31329157/102569147-df3c6180-411f-11eb-9aee-31c67c6ddfb6.png)
   
   
![image](https://user-images.githubusercontent.com/31329157/102569417-67226b80-4120-11eb-90e4-fe0e48439d01.png)
   
   - when click `add` or `edit`, `Edit version drawer` will show.
   
![image](https://user-images.githubusercontent.com/31329157/102569807-20814100-4121-11eb-8653-7e7c02db1c80.png)
   
   ## 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]


Reply via email to