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

As a developer using headless endpoints, I'd like to get a page of countries

    Details

      Description

      Country Schema
      	Fields:
      		- id (internal liferay id)
      		- name
      			- string
      		- title (localized)
      			title_i18n:
      				additionalProperties:
      					type: string
      				readOnly: true
      				type: object
      		- a2 (two-letter iso code)
      			- string
      			- validate exactly 2 digits
      		- a3 (three-letter iso code)
      			- string
      			- validate exactly 3 digits
      		- number (unique, common identifying code)
      			- number
      		- idd (international direct dial, phone prefix)
      			- number
      		- active
      			- boolean
      			- default: true
      		- position
      			- double
      			- default: 0.0
      		- billingAllowed
      			- boolean
      			- default: true
      		- shippingAllowed
      			- boolean
      			- default: true
      		- groupFilterEnabled
      			- boolean
      			- default: false
      		- subjectToVAT
      			- boolean
      			- default: false
      		- zipRequired
      			- boolean
      			- default: true
      		- regions
      			- array of Region components
      	Required fields: 
      		- a2
      		- a3
      		- name
      		- number
      	Sortable fields:
      		- a2
      		- a3
      		- name
      		- number
      		- idd
      		- position
      
      Region Schema
      	Fields
      		- id
      		- name
      		- regionCode
      		- active
      		- title (localized)
      			title_i18n:
      				additionalProperties:
      					type: string
      				readOnly: true
      				type: object
      		- countryId
      			readonly
      	Required fields: 
      		- regionCode
      		- name
      
      Paths:
      /countries
      	GET:
      	getCountryPage
      	query parameters:
      		active
      		page
      		pageSize
      		search
      		sort
      

      Return a 200 status code and the requested objects on success

        Attachments

          Activity

            People

            Assignee:
            eric.park Eric Park
            Reporter:
            drew.brokke Drew Brokke
            Engineering Assignee:
            Product Team User and System Mngt
            Recent user:
            Eduardo Zoby
            Participants of an Issue:
            Backend Developer(s) Assigned:
            Drew Brokke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master