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

Add externalReferenceCode to AccountBrief in Headless APIs

Details

    Description

      Add externalReferenceCode to the AccountBrief object so it can be used to lookup in other APIs

      Steps to verify:

      1. Add a a business account with an externalReferenceCode (e.g. "fooBar")
      2. Add a user to that account
      3. View the new account user's details in the Account Users portlet
      4. Copy the value from the userId field
      5. In the command line, run this command replacing "#####" with the copied userId:
        curl -X 'GET' 'http://localhost:8080/o/headless-admin-user/v1.0/user-accounts/#####' -u '[email protected]:test'
      6. An alternate way to call it is to invoke the "getUserAccount" endpoint found here with the userId: http://localhost:8080/o/api?endpoint=http://localhost:8080/o/headless-admin-user/v1.0/openapi.json
      7. Assert that the returned JSON response has an "accountBriefs" field with an "externalReferenceCode" parameter that matches the value you entered in step 1.

      Attachments

        Activity

          People

            eric.park Eric Park
            amos.fong Amos Fong
            Amos Fong Amos Fong
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                7.4.3.5 CE GA5
                Master