You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/08/24 04:43:21 UTC

[GitHub] [pulsar] tuteng opened a new pull request #5032: [website]Support multi version for swagger

tuteng opened a new pull request #5032: [website]Support multi version for swagger
URL: https://github.com/apache/pulsar/pull/5032
 
 
   Fixes https://github.com/apache/pulsar/issues/3505
   
   Master Issue: https://github.com/apache/pulsar/issues/3505
   
   ### Motivation
   
   Currently, there is no version management in rest API, and the latest version will be returned every time. This is usually confusing, so add version management to rest API. The new URL is similar to this:  
   ```
   http://localhost:3000/functions-rest-api?version=2.4.0
   http://localhost:3000/functions-rest-api?version=2.3.0
   http://localhost:3000/functions-rest-api?version=master
   ```
   
   ### Modifications
   
   * Add version parse
   * Add version for link
   
   ### Verifying this change
   
   ![image](https://user-images.githubusercontent.com/1907867/63632607-2de10500-c66c-11e9-9c8f-dfc38cbeae00.png)
   
   When content is published, the folder below needs to be added according to the version number above.
   
   ![image](https://user-images.githubusercontent.com/1907867/63632604-0e49dc80-c66c-11e9-8239-8fba4aa1b71a.png)
   
   My local test did not generate JSON files before version 2.3, but it needs to be added when it is released.
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (yes / no)
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
     - If a feature is not applicable for documentation, explain why?
     - If a feature is not documented yet in this PR, please create a followup issue for adding the documentation
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services