Table of Contents |
---|
Einfache Abfrage eines einzelnen Objektes mit Standard-Eigenschaften
Code Block | ||
---|---|---|
| ||
GET /apiv2/servicedmcore/CoreIdentity/20 |
Code Block | ||
---|---|---|
| ||
{
"Id": 20,
"ValidFrom": "2017-01-01T00:00:00Z",
"Active": true,
"TenantId": 1,
"ForeignId": "mssql_113",
"ReadonlyDisplayName": "Wiwoldi Wawrinka",
"Email": {
"WasAccessDenied": false,
"Value": "wiwa@coreone.ch"
},
"DisplayName": {
"WasAccessDenied": false,
"Value": "Wiwoldi Wawrinka"
},
"CoreIdentityTypeId": {
"WasAccessDenied": false,
"Value": 1
}
} |
Abfrage eines einzelnen Objektes mit erweiterten Eigenschaften
Code Block |
---|
GET /apiv2/servicedmcore/CoreIdentity/20/
?fields=Id,Active,ForeignId,Vorname,Nachname,Private%20Adresszeile%201,CoreIdentityType.Id |
Code Block | ||
---|---|---|
| ||
{
"Active": true,
"CoreIdentityType.Id": {
"WasAccessDenied": false,
"Value": 1
},
"ForeignId": "mssql_113",
"Id": 20,
"Nachname": {
"WasAccessDenied": false,
"Value": "Wawrinka"
},
"Private Adresszeile 1": {
"WasAccessDenied": false,
"Value": "Bahnhofplatz 3h"
},
"Vorname": {
"WasAccessDenied": false,
"Value": "Wiwoldi"
}
} |
Abfragen aller verfügbaren Felder eines Objekt-Types
Code Block |
---|
GET /apiv2/servicedmcore/CoreIdentity/fields |
Code Block | ||
---|---|---|
| ||
[
{
"DisplayNameParts": [
{
"Value": "Active",
"Kind": "PlainValue"
}
],
"Name": "Active",
"TypeName": "Boolean",
"TypeFullName": "System.Boolean",
"Category": "Entity",
"Kind": "Property",
"Updateable": true
},
{
"DisplayNameParts": [
{
"Value": "Default Username",
"Kind": "PlainValue"
}
],
"Name": "Default Username",
"TypeName": "String",
"TypeFullName": "System.String, mscorlib",
"Category": "Module.DM.IdentityManagement.CoreIdentity.CustomAttributes",
"Kind": "AttributeValue",
"Updateable": true
},
...,
{
"DisplayNameParts": [
{
"Value": "ICoreIdentityType",
"Kind": "PlainValue"
},
{
"Value": "CoreIdentityAddedWorkflow",
"Kind": "PlainValue"
}
],
"Name": "CoreIdentityType.CoreIdentityAddedWorkflow",
"TypeName": "String",
"TypeFullName": "System.String",
"Category": "Entity",
"Kind": "Property",
"Updateable": true
} |
Einfache Abfrage einer Liste von Objekten mit Standard-Eigenschaften
Code Block |
---|
GET /servicedmcore/CoreIdentity |
Code Block | ||
---|---|---|
| ||
[
{
"Id": 1,
"ValidFrom": "2010-03-01T00:00:00Z",
"Active": true,
"TenantId": 1,
"ForeignId": "mssql_1",
"ReadonlyDisplayName": "Simon Gubler",
"Email": {
"WasAccessDenied": false,
"Value": "sigu@coreone.ch"
},
"DisplayName": {
"WasAccessDenied": false,
"Value": "Simon Gubler"
},
"CoreIdentityTypeId": {
"WasAccessDenied": false,
"Value": 1
}
},
{
"Id": 2,
"ValidFrom": "2014-05-30T00:00:00Z",
"Active": false,
"TenantId": 1,
"ForeignId": "mssql_todelete",
"ReadonlyDisplayName": "Marc Burkhard",
"Email": {
"WasAccessDenied": false,
"Value": null
},
"DisplayName": {
"WasAccessDenied": false,
"Value": "Marc Burkhard"
},
"CoreIdentityTypeId": {
"WasAccessDenied": false,
"Value": 1
}
},
...
] |
Abfrage einer gefilterten Liste von Objekten mit erweiterten Eigenschaften
Code Block |
---|
GET /servicedmcore/CoreIdentity
?fields=Id,Vorname,Nachname,CoreIdentityType.Id
&filter=Vorname startsWith M
&take=30
&totalcount=true |
Code Block |
---|
[
{
"CoreIdentityType.Id": {
"WasAccessDenied": false,
"Value": 1
},
"Id": 2,
"Nachname": {
"WasAccessDenied": false,
"Value": "Burkhard"
},
"Vorname": {
"WasAccessDenied": false,
"Value": "Marc"
}
},
{
"CoreIdentityType.Id": {
"WasAccessDenied": false,
"Value": 1
},
"Id": 3,
"Nachname": {
"WasAccessDenied": false,
"Value": "Suster"
},
"Vorname": {
"WasAccessDenied": false,
"Value": "Marko"
}
},
...
] |