GET api/fieldregister/getfields?kpuserId={kpuserId}

List of fields for selected user

Request Information

URI Parameters

NameDescriptionTypeAdditional information
kpuserId

id of selected user from Knjiga polja

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of FRField
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2"
  },
  {
    "Id": 1,
    "Name": "sample string 2"
  }
]

text/html

Sample:
[{"Id":1,"Name":"sample string 2"},{"Id":1,"Name":"sample string 2"}]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'EkoNET.WebAPI.Models.FieldRegisterViewModel+FRField' 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 'EkoNET.WebAPI.Models.FieldRegisterViewModel+FRField' 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.