Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-100483

JSONWS page code examples do not include the paramater (in some cases)

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 7.1.10 DXP FP10, 7.1.X
    • None
    • None
    • UX / Visual - Desktop

    Description

      1. Create a basic web content and get its id_ from the journalarticle table.
      2. Access the JSONWS page at /api/jsonws, choose Journal for the context, and then choose the get-article method that receives the id as parameter.
      3. Accordingly fill in the ID field and click Invoke.
      4. Click the code example tabs (Javascript, curl, URL)
      Result: None of them contain the full invocation (including the id parameter). For example,

      curl http://localhost:8080/api/jsonws/journal.journalarticle/get-article -u [email protected]:test
      

      instead of

      curl http://localhost:8080/api/jsonws/journal.journalarticle/get-article -u [email protected]:test -d id=33805
      

      However, if you invoke, let's say, the get-article which expects groupId and articleId as parameters, the examples will be generated with the two parameters that you have passed.

      Attachments

        Activity

          People

            support-lep@liferay.com SE Support
            sorin.pop Sorin Pop
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              3 years, 41 weeks, 2 days ago

              Packages

                Version Package