Legacy Knowledge Base
Published Sep. 10, 2025

Endpoint doesn't work if I use the path specified in /api/jsonws page

Written By

Solyom Nagy-Györkös

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When we open the /api/jsonws page in Liferay and would like to use any endpoints that are namespaced, nothing happens
  • This means that all endpoints that are not under the context name of "portal" are namespaced, for example:
    • namespaced:
      /calendar.calendarbooking/move-calendar-booking-to-trash
    • not namespaced:
      /announcementsdelivery/update-delivery
  • The allowed/disallowed web services are controlled with either of the below properties are not visible and not usable even for administrators at the JSONWS API
  • jsonws.web.service.paths.includes=/calendar.calendarbooking/delete-calendar-booking
    jsonws.web.service.paths.excludes=/calendar.calendarbooking/get-calendar-booking-instance

Environment

  • Below DXP 7.3 U18
  • Below DXP 7.4 U54

Resolution

  • This is a known behavior fixed by LPS-133357, you can update to either DXP 7.3-U18 or DXP 7.4-U54 to resolve the issue
  • If you can't, you can use the workaround of changing the namespaced JSON paths in the property from/calendar.calendarbooking/move-calendar-booking-to-trashtocalendarbooking.calendarbooking/move-calendar-booking-to-trash
  • Please note, that the altered path is without the forward slash and the duplication of the namespace is a must in order for working correctly.

Additional Information

  • The propertyjsonws.web.service.api.discoverableis enabled by default. We assume, if this property is set explicitly totrue, then it will limit the discoverability of the APIs to those which are derived straight from the portal itself: Configuring JSON Web Services.
Did this article resolve your issue ?

Legacy Knowledge Base