GET api/users/{userId}/entitycriterialists?userbound={userbound}

Gets the EntityCriteriaList collection for a specific user.



Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

globally unique identifier

Required

userbound

boolean

Required



Body Parameters

None.



Response Information

Resource Description

The requested EntityCriteriaList collection.

Collection of ReadEntityCriteriaListViewModel

NameDescriptionTypeAdditional information
Id

integer

None.

EntityDefinitionId

integer

None.

EntityCategoryId

integer

None.

Name

string

None.

IsPrivate

boolean

None.

IsInUse

boolean

None.

CreationDate

string

None.

Author

ReadUserViewModel

None.

Criteria

Collection of EntityCriteriaListCriteriaViewModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "EntityDefinitionId": 2,
    "EntityCategoryId": 1,
    "Name": "sample string 3",
    "IsPrivate": true,
    "IsInUse": true,
    "CreationDate": "sample string 6",
    "Author": null,
    "Criteria": [
      {
        "CompareValue": "sample string 1",
        "EntityAttributeId": 2,
        "IsDateOfToday": true,
        "DateOfTodayDayOffset": 4,
        "ModifierId": 5,
        "RecursionPath": [
          1,
          2
        ]
      },
      {
        "CompareValue": "sample string 1",
        "EntityAttributeId": 2,
        "IsDateOfToday": true,
        "DateOfTodayDayOffset": 4,
        "ModifierId": 5,
        "RecursionPath": [
          1,
          2
        ]
      }
    ]
  },
  {
    "Id": 1,
    "EntityDefinitionId": 2,
    "EntityCategoryId": 1,
    "Name": "sample string 3",
    "IsPrivate": true,
    "IsInUse": true,
    "CreationDate": "sample string 6",
    "Author": null,
    "Criteria": [
      {
        "CompareValue": "sample string 1",
        "EntityAttributeId": 2,
        "IsDateOfToday": true,
        "DateOfTodayDayOffset": 4,
        "ModifierId": 5,
        "RecursionPath": [
          1,
          2
        ]
      },
      {
        "CompareValue": "sample string 1",
        "EntityAttributeId": 2,
        "IsDateOfToday": true,
        "DateOfTodayDayOffset": 4,
        "ModifierId": 5,
        "RecursionPath": [
          1,
          2
        ]
      }
    ]
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'VobeSoft.Models.ViewModels.ReadUserViewModel' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'VobeSoft.Models.ViewModels.ReadUserViewModel' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.