POST api/newsbar/sck/news/insert

Request Information

URI Parameters

None.

Body Parameters

NewSckNews
NameDescriptionTypeAdditional information
title

string

None.

highlight

string

None.

contact

string

None.

link

string

None.

month

integer

None.

year

integer

None.

keywords

string

None.

important

boolean

None.

news_images

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "title": "sample string 1",
  "highlight": "sample string 2",
  "contact": "sample string 3",
  "link": "sample string 4",
  "month": 5,
  "year": 6,
  "keywords": "sample string 7",
  "important": true,
  "news_images": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<NewSckNews xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aplikacija_za_prijavu_Evenata.Models">
  <contact>sample string 3</contact>
  <highlight>sample string 2</highlight>
  <important>true</important>
  <keywords>sample string 7</keywords>
  <link>sample string 4</link>
  <month>5</month>
  <news_images xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </news_images>
  <title>sample string 1</title>
  <year>6</year>
</NewSckNews>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.