API Documentation

Fetch a Resource

To make a request to fetch a single resource, you send a GET request to the endpoint, and you will get a JSON response. Here are the request details

Request URL: hub.amcow.africa/api/v1/resource/{id}

where {id} is the ID of the resource you want to fetch. The data type of {id} is integer, and is Mandatory to get a valid response from the API
Request Type: GET

JSON Response

{
    "data": {
        "author": "UN Water Africa",
        "cover": null,
        "description": "This is a description ",
        "file": "/resources/AWW6 Final Communique - DAR ES SALAAM ROADMAP.pdf",
        "id": 1,
        "tags": "Tags",
        "title": "African Water Vision 2025",
        "type": "Report"
    }
}