POST api/v1/Jokes/EditJoke

Request Information

URI Parameters

None.

Body Parameters

JokesModel
NameDescriptionTypeAdditional information
txtCategory

string

None.

txtWritter

string

None.

txtType

string

None.

txtKeywords

string

None.

KeywordsId

integer

None.

KeywordsIdstr

string

None.

KeywordsJokesList

Collection of fn_GetKeywordPerJoke_Result

None.

JOKES_ID

integer

None.

CATEGORY_ID

integer

None.

W1_ID

integer

None.

W2_ID

integer

None.

W3_ID

integer

None.

W4_ID

integer

None.

W5_ID

integer

None.

W6_ID

integer

None.

WRITER_ID

integer

None.

DATA

string

None.

TYPE_ID

integer

None.

ENABLE_

integer

None.

ischecked

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "txtCategory": "sample string 1",
  "txtWritter": "sample string 2",
  "txtType": "sample string 3",
  "txtKeywords": "sample string 4",
  "KeywordsId": 5,
  "KeywordsIdstr": "sample string 6",
  "KeywordsJokesList": [
    {
      "KEYWORD_AND_JOKE_ID": 1,
      "KEYWORD_ID": 1,
      "KEYWORD": "sample string 1",
      "SELECTED": true,
      "JOKE_ID": 1
    },
    {
      "KEYWORD_AND_JOKE_ID": 1,
      "KEYWORD_ID": 1,
      "KEYWORD": "sample string 1",
      "SELECTED": true,
      "JOKE_ID": 1
    }
  ],
  "JOKES_ID": 7,
  "CATEGORY_ID": 1,
  "W1_ID": 1,
  "W2_ID": 1,
  "W3_ID": 1,
  "W4_ID": 1,
  "W5_ID": 1,
  "W6_ID": 1,
  "WRITER_ID": 1,
  "DATA": "sample string 8",
  "TYPE_ID": 1,
  "ENABLE_": 1,
  "ischecked": true
}

text/html

Sample:
{"txtCategory":"sample string 1","txtWritter":"sample string 2","txtType":"sample string 3","txtKeywords":"sample string 4","KeywordsId":5,"KeywordsIdstr":"sample string 6","KeywordsJokesList":[{"KEYWORD_AND_JOKE_ID":1,"KEYWORD_ID":1,"KEYWORD":"sample string 1","SELECTED":true,"JOKE_ID":1},{"KEYWORD_AND_JOKE_ID":1,"KEYWORD_ID":1,"KEYWORD":"sample string 1","SELECTED":true,"JOKE_ID":1}],"JOKES_ID":7,"CATEGORY_ID":1,"W1_ID":1,"W2_ID":1,"W3_ID":1,"W4_ID":1,"W5_ID":1,"W6_ID":1,"WRITER_ID":1,"DATA":"sample string 8","TYPE_ID":1,"ENABLE_":1,"ischecked":true}

application/xml, text/xml

Sample:
<JokesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Models.Jokes">
  <CATEGORY_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</CATEGORY_ID>
  <DATA xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">sample string 8</DATA>
  <ENABLE_ xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</ENABLE_>
  <JOKES_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">7</JOKES_ID>
  <TYPE_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</TYPE_ID>
  <W1_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</W1_ID>
  <W2_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</W2_ID>
  <W3_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</W3_ID>
  <W4_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</W4_ID>
  <W5_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</W5_ID>
  <W6_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</W6_ID>
  <WRITER_ID xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">1</WRITER_ID>
  <ischecked xmlns="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">true</ischecked>
  <KeywordsId>5</KeywordsId>
  <KeywordsIdstr>sample string 6</KeywordsIdstr>
  <KeywordsJokesList xmlns:d2p1="http://schemas.datacontract.org/2004/07/SmartWorldLibrary.Repository.DB">
    <d2p1:fn_GetKeywordPerJoke_Result>
      <d2p1:JOKE_ID>1</d2p1:JOKE_ID>
      <d2p1:KEYWORD>sample string 1</d2p1:KEYWORD>
      <d2p1:KEYWORD_AND_JOKE_ID>1</d2p1:KEYWORD_AND_JOKE_ID>
      <d2p1:KEYWORD_ID>1</d2p1:KEYWORD_ID>
      <d2p1:SELECTED>true</d2p1:SELECTED>
    </d2p1:fn_GetKeywordPerJoke_Result>
    <d2p1:fn_GetKeywordPerJoke_Result>
      <d2p1:JOKE_ID>1</d2p1:JOKE_ID>
      <d2p1:KEYWORD>sample string 1</d2p1:KEYWORD>
      <d2p1:KEYWORD_AND_JOKE_ID>1</d2p1:KEYWORD_AND_JOKE_ID>
      <d2p1:KEYWORD_ID>1</d2p1:KEYWORD_ID>
      <d2p1:SELECTED>true</d2p1:SELECTED>
    </d2p1:fn_GetKeywordPerJoke_Result>
  </KeywordsJokesList>
  <txtCategory>sample string 1</txtCategory>
  <txtKeywords>sample string 4</txtKeywords>
  <txtType>sample string 3</txtType>
  <txtWritter>sample string 2</txtWritter>
</JokesModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.