Quantcast
Channel: Active questions tagged atlassian-plugin-sdk - Stack Overflow
Viewing all articles
Browse latest Browse all 280

Bitbucket 7.21 Plugin - create custom rest endpoint

$
0
0

I need to create a custom rest endpoint in a Bitbucket Plugin (Bitbucket Server 7.21).I didn't find any information, only Chatgpt sad, that I need to add "rest" and "rest-resource" to my atlassian-plugin.xml:

<rest key="rest-module" path="/rest" version="1.0"><description>Custom REST API</description></rest><rest-resource key="my-rest-resource"                   class="com.avono.atlassian.plugins.bitbucket.mooglereview.api.MyRestResource"/>

But it also doesn't work. The url "http://:7990/rest/custom-api/1.0/example" gives me 404 back.

How to register the new api right? How the url would look like?

Thanks in advance.


Viewing all articles
Browse latest Browse all 280

Trending Articles