Country
Countries around the world
Table name: countries
Description: For every SaaS product, countries
would come in handy in case you want to deal with things internationally.
Possible use cases:
Register a new account (user or company), select a country
Tax resident
...
Know your user's location better in order to serve them better 😉
Model
findByCode
To quickly get a Country by using the Country's Code
The CountryCode Enum
Contains every CountryCode of all countries.
Response Entity
Endpoints
[GET] saas/countries
Get a list of Countries
Request payload:
Response payload:
[GET] saas/countries/{countryUuid}
Get single Country
Response payload:
[POST] saas/countries
Create a new Country
Request payload:
Response payload:
[PUT] saas/countries/{countryUuid}
Update an existing Country
Request payload:
Response payload:
[DELETE] saas/countries/{countryUuid}
Delete an existing Country (soft)
Response payload:
Last updated