POST api/BodGlava

Request Information

URI Parameters

None.

Body Parameters

bod_glava
NameDescriptionTypeAdditional information
id

integer

None.

sifra

string

None.

za_pobjedu

integer

None.

bodovi

Collection of bodovi

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "sifra": "sample string 2",
  "za_pobjedu": 3,
  "bodovi": [
    {
      "id": 1,
      "Place": 1,
      "Fixed": 1.1,
      "bod_glava_id": 1
    },
    {
      "id": 1,
      "Place": 1,
      "Fixed": 1.1,
      "bod_glava_id": 1
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'WrccWebApi.Models.Database.bodovi' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'WrccWebApi.Models.Database.bodovi' contains cycles and cannot be serialized if reference tracking is disabled.

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 'bod_glava'.

Response Information

Resource Description

bod_glava
NameDescriptionTypeAdditional information
id

integer

None.

sifra

string

None.

za_pobjedu

integer

None.

bodovi

Collection of bodovi

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "sifra": "sample string 2",
  "za_pobjedu": 3,
  "bodovi": [
    {
      "id": 1,
      "Place": 1,
      "Fixed": 1.1,
      "bod_glava_id": 1
    },
    {
      "id": 1,
      "Place": 1,
      "Fixed": 1.1,
      "bod_glava_id": 1
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'WrccWebApi.Models.Database.bodovi' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'WrccWebApi.Models.Database.bodovi' contains cycles and cannot be serialized if reference tracking is disabled.