POST api/exercise

“Post”的文档。

Request Information

Parameters

NameDescriptionAdditional information
info
“info”的文档。

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "id": 1,
  "number": 2,
  "exercise_range": "sample string 3",
  "answer": "sample string 4",
  "select_answer": "sample string 5",
  "Right_or_wrong": "sample string 6",
  "userid": "sample string 7",
  "name": "sample string 8"
}

application/xml, text/xml

Sample:
<confirm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/wxapi01.Models">
  <Right_or_wrong>sample string 6</Right_or_wrong>
  <answer>sample string 4</answer>
  <exercise_range>sample string 3</exercise_range>
  <id>1</id>
  <name>sample string 8</name>
  <number>2</number>
  <select_answer>sample string 5</select_answer>
  <userid>sample string 7</userid>
</confirm>

application/x-www-form-urlencoded

Sample:

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