First of all, I'm using DRACOON cloud. Current versions at moment of creating this issue are 4.20.3 (core) and 1.3.1 (branding).
I just found an issue in your Swagger reference for the Branding API. I recently added Branding API endpoints to my development fork of your C# SDK. I implemented all the models according to the Swagger reference available at /branding/api/swagger-ui.html#. While I can use the branding colors without any problems, I realized that I'm not getting any valid image information to use the CI logo for example.
After some debugging I found that the Branding API response from GET /v1/branding differs from what is documented in Swagger. According to Swagger reference, the images are part of result as noticed:
// collection of SimpleImageResponse instances
Where SimpleImageResponse is defined as following:
"id": /* integer($int64) */,
"type": /* string */,
"url": /* string */
However, the actual result from the GET /v1/branding route describes the images with the following model:
"type": /* string, as declared in SimpleImageResponse */,
// collection of ImageFileResponse as described below
Where ImageFileResponse (name invented by myself) is:
"size": /* string, one of "small", "medium" or "large" */,
"url": /* string, the URL to the image */
In fact, with this knowledge, it's just a simple task to adapt the different response to the SDK. However, you guys may want to correct the Swagger reference.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.