How to implement Bean Validation for REST services

Hi,

I have a custom REST API setup in a plugin and I was wondering how to implement bean validation for the GET/POST/etc methods. I did a search of the Confluence sources for “import javax.validation” and didn’t find any so it appears the built-in Confluence REST APIs don’t use bean validation.

Is it possible to implement some sort of bean validation for REST services? We are using Confluence version 5.10.8.

Thanks!

1 Like

I am trying to create Jira Plugin with REST API. Same question here.

Hi @alj,

You should be able to use any Jersey supported annotations for bean validation or any third party library.