API 01: Get Product List

Simple demonstration of a REST GET request returning a JSON array.

🎯 Purpose for OutSystems Tutorial

This API is used to demonstrate the **simplest form of REST API consumption** in OutSystems. It shows how to:

🔗 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
]
            
▶️ Watch the Tutorial on Consuming This API!