# Is it possible to use restClient for JAX-RS endpoint?

**URL:** <https://discuss.liferay.com/t/is-it-possible-to-use-restclient-for-jax-rs-endpoint/143>\
**Category:** General\
**Created:** [November 3, 2025, 6:36pm UTC](https://discuss.liferay.com/t/is-it-possible-to-use-restclient-for-jax-rs-endpoint/143 "2025-11-03T18:36:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyank\_Gajera](https://dub1.discourse-cdn.com/flex014/user_avatar/discuss.liferay.com/priyank_gajera/32/339_2.png) [@Priyank\_Gajera](https://discuss.liferay.com/u/Priyank_Gajera)\
**Post date:** [November 3, 2025, 6:36pm UTC](https://discuss.liferay.com/t/is-it-possible-to-use-restclient-for-jax-rs-endpoint/143/1 "2025-11-03T18:36:05Z")

</div>

Hello Team,

We have custom JAX-RS endpoint, and we wanted to use it in fragment using restClient.

restClient is working fine for headless endpoints but seems to be not working with JAX-RS custom endpoint

Thanks  
Priyank Gajera

---

<div class="post-metadata">

**Author:** ![dnebing](https://dub1.discourse-cdn.com/flex014/user_avatar/discuss.liferay.com/dnebing/32/24_2.png) [@dnebing](https://discuss.liferay.com/u/dnebing)\
**Post date:** [November 7, 2025, 10:51pm UTC](https://discuss.liferay.com/t/is-it-possible-to-use-restclient-for-jax-rs-endpoint/143/2 "2025-11-07T22:51:49Z")

</div>

The `restClient` guy is designed to talk to Liferay’s RESTBuilder-based services. If you use RESTBuilder, the `restClient` should work fine. For just regular JAX-RS applications, I don’t know that it is meant to support that.
