Can't get Media folders from api

I am having problems to execute the api call for media folders (/Litium/api/admin/media/folders). If I execute another api call eg. /Litium/api/admin/media/folders/{systemId} i will get the desired answer. The Event log is showing the following error:
Multiple controller types were found that match the URL. This can happen if attribute routes on multiple controllers match the requested URL.

The request has found the following matching controller types:
Litium.Web.WebApi.AdminApi.Generic.GetAllApiController
Litium.Web.WebApi.AdminApi.Media.FolderController

Does anyone has some idea of what to do?

I reported this as a bug just this morning: https://docs.litium.com/support/bugs/bug_details?id=55842

Not sure about possible workarounds, will have a look.

Maybe you could use the Search end-point? Are you trying to find a particular folder or do you need all of the folders?

If you search without any filters you get all folders back, regardless if they’re at root level or not. The root level folders in the results don’t have a parentFolderSystemId.

If you want a particular folder by name, you could use a request body like:

{
    "filter": [
        {
            "$type": "Litium.Data.Queryable.Conditions.FieldFilterCondition, Litium.Abstractions",
            "id": "_nameInvariantCulture",
            "culture": "*",
            "operator": "eq",
            "value": "My folder"
        }
    ]
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.