Skip to content

FileIds in endpoints #16

@Rello

Description

@Rello

https://github.com/tobiasKaminsky/declarativetest/blob/main/lib/Capabilities.php#L26-L32

Hi,

what should we do with the content to be transmitted to endpoints?
I am currently looking at using it for my app.
I think it will come down to transmitting a fileId on the first version. we need a way to tell in the capabilites how the endpoint is expecting it.

Option A:
replacement variable with the GET in the URL

[
"name" => "Convert to PDF", 
"url" => "/ocs/v2.php/apps/declarativetest/convertFile/{fileId}", 
"filter" => "image/", 
"method" => "GET",
"payload" => ""
],

Option B:
replacement variable in the POST payload

[
"name" => "Convert to PDF", 
"url" => "/ocs/v2.php/apps/declarativetest/convertFile", 
"filter" => "image/", 
"method" => "POST", 
"payload" => "fileid={fileId}, otherContent=xzw"
],

what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions