SimpleIdServer icon indicating copy to clipboard operation
SimpleIdServer copied to clipboard

ResourceTypes endpoint returns "totalResults" and "itemsPerPage" not equal to number of resources in the body

Open andreidabryian opened this issue 3 years ago • 1 comments

GET https://{{Server}}{{Port}}/ResourceTypes returns the next response:

{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:ListResponse"
    ],
    "totalResults": 2,
    "itemsPerPage": 2,
    "startIndex": 1,
    "Resources": [
        {
            "schemas": [
                "urn:ietf:params:scim:schemas:core:2.0:ResourceType"
            ],
            "id": "User",
            "name": "User",
            "description": "User Schema",
            "endpoint": "/Users",
            "schema": "urn:ietf:params:scim:schemas:core:2.0:User",
            "schemaExtensions": [
                {
                    "schema": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
                    "required": false
                }
            ],
            "meta": {
                "location": "",
                "resourceType": "ResourceType"
            }
        }
    ]
}

"totalResults" and "itemsPerPage" attributes equal 2 value but should be equal 1

andreidabryian avatar Sep 08 '22 08:09 andreidabryian

Hello,

The issue is fixed in the branch master and a pre-release package (version SimpleIdServer.Scim 2.0.17-ci-00346) is already available : https://www.myget.org/feed/advance-ict/package/nuget/SimpleIdServer.Scim

KR,

SID

simpleidserver avatar Sep 08 '22 12:09 simpleidserver