NectaVendorsApi

<back to all web services

GetUser

Get User. Use -1 as ID to get sensible default values for new elements.

Requires Authentication
Required permission:view_user
The following routes are available for this service:
GET/admin/user/{Id}
GetUser Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
AsVendorquerybool?NoOptional parameter for ID -1 to populate sensible default values for the Vendor fields as well
UserDto Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
RoleformRoleNo
UserNameformstringNo
AuthMethodformAuthMethodNo
VendorformVendorHeaderDtoNo
VendorHeaderDto Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
GuidformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /admin/user/{Id} HTTP/1.1 
Host: vendors-klueh-api-ts.necta.at 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"Role":1,"UserName":"String","AuthMethod":1,"Vendor":{"Id":0,"Name":"String","Guid":"String"}}