/files

GET /files restricted

This request returns the files accessible for a given user.

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

Request example

GET /v2/files HTTP/1.1
Host: api.lionsclubs.ch
X-Authorization: access-token

Response example

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{
    "success": true,
    "files": [
        {
            "id": 1,
            "title": "Name of the document",
            "type": "pdf",
            "group": "LC Olten",
            "categories": [
                "Minutes"
            ]
        },
        {
            "...": "..."
        }
    ]
}

GET /files/id/access-token

This request returns a given file.

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

Request example

GET /v2/files/id/access-token HTTP/1.1
Host: api.lionsclubs.ch

Response example

HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Length: length

(binary data)