POST api/Categories/AddCategory

Request Information

URI Parameters

None.

Body Parameters

CategoryModel
NameDescriptionTypeAdditional information
CategoryID

integer

None.

CategoryName

string

None.

SessionGuid

string

None.

ImageUrl

string

None.

imgFile

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryID": 1,
  "CategoryName": "sample string 2",
  "SessionGuid": "sample string 3",
  "ImageUrl": "sample string 4",
  "imgFile": "sample string 5"
}

application/xml, text/xml

Sample:
<CategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YemekTarifiApi.Models">
  <CategoryID>1</CategoryID>
  <CategoryName>sample string 2</CategoryName>
  <ImageUrl>sample string 4</ImageUrl>
  <SessionGuid>sample string 3</SessionGuid>
  <imgFile>sample string 5</imgFile>
</CategoryModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.