Custom Confluence REST API ,removing version number from path

Praveen October 25, 2017

Followed Developing a Rest Service Plugin and adjusted @path annotation to create restapi of url: base_url/rest/myrestresource/1.0/

I would like to remove the version no and have a REST API of url base_url/rest/myrestresource/ 

 

Any input would be helpful.

1 answer

1 accepted

0 votes
Answer accepted
Praveen October 25, 2017

Fixed, found this in documentation

Rest Plugin module

Version:This is the version of the REST API. This is not the same thing as the plugin version. Different versions of the same API can be provided by different plugins. Version numbers follow the same pattern as OSGi versions, i.e. major.minor.micro.qualifier where majorminor and micro are integers. If version is none, then the REST API will not contain a version number in its URL.

AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 25, 2017

Thanks for following up to help the next person who runs into the issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events