Repository navigation
CountryController API Documentation
Lee Sambridge edited this page Mar 21, 2025
·
1 revision
This document provides documentation for the Country API endpoints available in the Points.Api system.
All endpoints in the Country API require JWT Bearer authentication. Include the JWT token in the Authorization header of your requests:
Authorization: Bearer {your_jwt_token}
Retrieves a list of all available countries.
URL: /api/Country
Method: GET
Auth required: Yes (JWT Bearer token)
Success Response:
- Code: 200 OK
- Content: Array of country objects
Example Request:
GET /api/Country HTTP/1.1
Host: your-api-domain.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Example Response:
[
{
"id": 1,
"name": "United States",
"code": "US"
},
{
"id": 2,
"name": "United Kingdom",
"code": "UK"
},
{
"id": 3,
"name": "Canada",
"code": "CA"
}
]The response contains an array of country objects, each with an ID, name, and country code.
- Frequently Asked Questions
-
EZ Loyalty Points Api
- Authorization
- Summary
- End Points
- Branding End Points
- Buckets End Points
- Competition End Points
- Country End Points
- Leader Boards End Points
- Machine Learning End Points
- Partner Activities End Points
- Partner End Points
- Partner FAQs End Points
- Partner Level Points End Points
- Reward Points End Points
- Subscriptions End Points
- Users End Points
- User Points End Points
- EZ Loyalty Admin Api