POST api/courses/signup

设置报名学生

Request Information

URI Parameters

None.

Body Parameters

SignUpDto
NameDescriptionTypeAdditional information
Luc

报名人集合

Collection of UserCourse

None.

Request Formats

application/json, text/json

Sample:
{
  "Luc": [
    {
      "CourseId": "578522d3-6f67-4049-b20d-46feb226075f",
      "StudentId": "sample string 2",
      "LearnLength": 3,
      "CreatedTime": "2024-09-25T00:07:56.8125598+08:00"
    },
    {
      "CourseId": "578522d3-6f67-4049-b20d-46feb226075f",
      "StudentId": "sample string 2",
      "LearnLength": 3,
      "CreatedTime": "2024-09-25T00:07:56.8125598+08:00"
    }
  ]
}

text/html

Sample:
{"Luc":[{"CourseId":"578522d3-6f67-4049-b20d-46feb226075f","StudentId":"sample string 2","LearnLength":3,"CreatedTime":"2024-09-25T00:07:56.8125598+08:00"},{"CourseId":"578522d3-6f67-4049-b20d-46feb226075f","StudentId":"sample string 2","LearnLength":3,"CreatedTime":"2024-09-25T00:07:56.8125598+08:00"}]}

application/xml, text/xml

Sample:
<SignUpDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Luc xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:UserCourse>
      <d2p1:CourseId>578522d3-6f67-4049-b20d-46feb226075f</d2p1:CourseId>
      <d2p1:CreatedTime>2024-09-25T00:07:56.8125598+08:00</d2p1:CreatedTime>
      <d2p1:LearnLength>3</d2p1:LearnLength>
      <d2p1:StudentId>sample string 2</d2p1:StudentId>
    </d2p1:UserCourse>
    <d2p1:UserCourse>
      <d2p1:CourseId>578522d3-6f67-4049-b20d-46feb226075f</d2p1:CourseId>
      <d2p1:CreatedTime>2024-09-25T00:07:56.8125598+08:00</d2p1:CreatedTime>
      <d2p1:LearnLength>3</d2p1:LearnLength>
      <d2p1:StudentId>sample string 2</d2p1:StudentId>
    </d2p1:UserCourse>
  </Luc>
</SignUpDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

设置报名学生

JsonRtnDtoOfBoolean
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": true
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":true}

application/xml, text/xml

Sample:
<JsonRtnDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data>true</Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfboolean>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":true});