The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to send base url with context path when developing own rest API on my bamboo plugin?

Tam Vo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 18, 2018

I created a bamboo server with context path "/bamboo" into server.xml and set full path url on baseUrl field of bamboo server <my-ip:8085/bamboo>.

But when I developed custom rest API and send a request

<rest name="My Rest Resource" key="my-rest-resource" path="/api">
</rest>

It will send with the request my-ip:8085/projects, not my-ip:8085/bamboo/projects and show 404 (not found) error.

Do I miss a config it or another reason to send API with full path correctly <my-ip:8085/bamboo/projects>?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Gonchik Tsymzhitov
Community Champion
February 10, 2019

Hi! 

Looks like you forget get info in your app about base url.

 

Cheers,

Gonchik Tsymzhitov

TAGS
AUG Leaders

Atlassian Community Events