POST api/Kommentare/{regionCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
regionCode

string

None.

Body Parameters

Kommentar
NameDescriptionTypeAdditional information
Id

integer

None.

FKMeldung

integer

None.

Beschreibung

string

None.

Zeitstempel

date

None.

FKBenutzer

integer

None.

EnableCtrls

boolean

None.

ReadOnlyTextbox

boolean

None.

BenutzerEmail

string

None.

FKPrioritaet

integer

None.

FehlertypenAnzahl

integer

None.

FKFehlertypen

Collection of integer

None.

FKStatus

integer

None.

FKSchliessungsGrund

integer

None.

FKZustaendiger

integer

None.

ZustaendigerName

string

None.

ZustaendigerEmail

string

None.

ZustaendigerMassstab

integer

None.

ZustaendigerTelefon

string

None.

Attachments

Collection of UploadedFileInfo

None.

Skizzen

Collection of Skizze

None.

SqlError

string

None.

IsValid

boolean

None.

Error

string

None.

Item

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FKMeldung": 2,
  "Beschreibung": "sample string 3",
  "Zeitstempel": "2024-11-23T19:32:16.3223568+01:00",
  "FKBenutzer": 5,
  "EnableCtrls": false,
  "ReadOnlyTextbox": true,
  "BenutzerEmail": "sample string 6",
  "FKPrioritaet": 7,
  "FehlertypenAnzahl": 2,
  "FKFehlertypen": [
    1,
    2
  ],
  "FKStatus": 9,
  "FKSchliessungsGrund": 1,
  "FKZustaendiger": 10,
  "ZustaendigerName": "sample string 11",
  "ZustaendigerEmail": "sample string 12",
  "ZustaendigerMassstab": 13,
  "ZustaendigerTelefon": "sample string 14",
  "Attachments": [
    {
      "FullName": "sample string 1",
      "Name": "sample string 2",
      "Size": 3,
      "Id": 4,
      "MeldungsId": 5,
      "KommentarId": 6,
      "ContentType": "sample string 7",
      "Zeitstempel": "2024-11-23T19:32:16.3223568+01:00"
    },
    {
      "FullName": "sample string 1",
      "Name": "sample string 2",
      "Size": 3,
      "Id": 4,
      "MeldungsId": 5,
      "KommentarId": 6,
      "ContentType": "sample string 7",
      "Zeitstempel": "2024-11-23T19:32:16.3223568+01:00"
    }
  ],
  "Skizzen": [
    {
      "id": 1,
      "mid": 2,
      "kid": 3,
      "info": "sample string 4",
      "coordinates": [
        [
          1.1,
          2.1
        ],
        [
          1.1,
          2.1
        ]
      ]
    },
    {
      "id": 1,
      "mid": 2,
      "kid": 3,
      "info": "sample string 4",
      "coordinates": [
        [
          1.1,
          2.1
        ],
        [
          1.1,
          2.1
        ]
      ]
    }
  ],
  "SqlError": "sample string 15",
  "IsValid": false,
  "Error": "Melder Email ist ungültig.\r\nVerantwortlicher Email ist ungültig."
}

text/html

Sample:
{"Id":1,"FKMeldung":2,"Beschreibung":"sample string 3","Zeitstempel":"2024-11-23T19:32:16.3223568+01:00","FKBenutzer":5,"EnableCtrls":false,"ReadOnlyTextbox":true,"BenutzerEmail":"sample string 6","FKPrioritaet":7,"FehlertypenAnzahl":2,"FKFehlertypen":[1,2],"FKStatus":9,"FKSchliessungsGrund":1,"FKZustaendiger":10,"ZustaendigerName":"sample string 11","ZustaendigerEmail":"sample string 12","ZustaendigerMassstab":13,"ZustaendigerTelefon":"sample string 14","Attachments":[{"FullName":"sample string 1","Name":"sample string 2","Size":3,"Id":4,"MeldungsId":5,"KommentarId":6,"ContentType":"sample string 7","Zeitstempel":"2024-11-23T19:32:16.3223568+01:00"},{"FullName":"sample string 1","Name":"sample string 2","Size":3,"Id":4,"MeldungsId":5,"KommentarId":6,"ContentType":"sample string 7","Zeitstempel":"2024-11-23T19:32:16.3223568+01:00"}],"Skizzen":[{"id":1,"mid":2,"kid":3,"info":"sample string 4","coordinates":[[1.1,2.1],[1.1,2.1]]},{"id":1,"mid":2,"kid":3,"info":"sample string 4","coordinates":[[1.1,2.1],[1.1,2.1]]}],"SqlError":"sample string 15","IsValid":false,"Error":"Melder Email ist ungültig.\r\nVerantwortlicher Email ist ungültig."}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'GIP_Communicator_Server.DomainObjects.SimpleRule' 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 'GIP_Communicator_Server.DomainObjects.SimpleRule' 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.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Kommentar'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.