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

As a Remote API consumer, I'd like to pass the locale parameter using the Accept-Language header

    Details

    • Type: Story
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      When you call a remote API which includes a Locale parameter, it would be useful to be able to call the method passing the locale in the Accept-Language header, instead of passing it in the parameter list.

      This way, one service method like service.foo(id, locale) could be called as service.foo(id, locale) or service.foo(id) + accept-language header.

      Consider the following points:

      • What if already exists a method version without the locale parameter?
      • What if the locale is passing as String instead of Locale data type (like languageId in JournalArticle.getArticleContent)?

        Attachments

          Activity

            People

            Assignee:
            fernando.areias Fernando Areias
            Reporter:
            jose.navarro José Manuel Navarro (Inactive)
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package