🎯 Purpose for OutSystems Tutorial
This API is used to demonstrate the **simplest form of REST API consumption** in OutSystems. It shows how to:
- Define the **REST Method** (GET).
- Consume an API that returns a simple **List/Array** structure.
- Automatically map the **JSON structure** to a List of Structures/Entities in OutSystems.
🔗 API Endpoint Details
Method:
GET
Endpoint URL:
https://api.ankitg.in/api/products.php
Headers:
No custom headers required. Returns Content-Type: application/json.
Request Body:
None required.
💬 Expected Response (200 OK)
Response Structure:
Returns a **JSON Array** of Product objects.
| Parameter | Type | Description |
|---|---|---|
| id | Integer | Unique identifier for the product. |
| name | Text | The product's official name. |
| price | Decimal | The product's price. |
| inStock | Boolean | Availability status. |
| category | Text | The category of the product. |
Example Response:
[
{
"id": 101,
"name": "OutSystems Pro Course",
"price": 499.99,
"inStock": true,
"category": "Digital"
},
{
"id": 102,
"name": "API Integration Handbook",
"price": 29.50,
"inStock": true,
"category": "Book"
}
// ... more products
]