Skip to content

API to return list of countries for Trial sign up

Aishwarya Subramanian requested to merge countries_option into master

What does this MR do?

This MR adds an API that returns a list of countries that users can select while opting for a trial. The list is obtained using the countries gem.

Required for trial sign up as part of https://gitlab.com/gitlab-org/gitlab-ee/issues/13233

API contract:

GET /-/countries

Response:

[["Afghanistan", "AF"],["Albania", "AL"],["Algeria", "DZ"],..]

CE changes: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32688/diffs

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Aishwarya Subramanian

Merge request reports