POST api/resource/getresource?id={id}

获取一条资源

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

获取一条资源

JsonRtnDtoOfResourceDto
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

ResourceDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "ResourceTypeName": "sample string 1",
    "knowledgePointName": "sample string 2",
    "AppArrange": {
      "TypeName": "sample string 1",
      "Path": "sample string 2",
      "PID": 3
    },
    "Data": {},
    "UserId": 4,
    "ResourceName": "sample string 5",
    "Suffix": "sample string 6",
    "ResourceTypeCode": "sample string 7",
    "TechType": 8,
    "AppArrangeId": 1,
    "AppArrangePath": "sample string 9",
    "ResourceOrigin": "sample string 10",
    "Labls": "sample string 11",
    "ConvertState": 12,
    "Intro": "sample string 13",
    "PageTotal": 14,
    "ProfessionalCourseId": 15,
    "ProfessionalPath": "sample string 16",
    "DownAmount": 17,
    "ViewAmount": 18,
    "Prime": "2024-09-25T00:08:24.7524909+08:00",
    "Top": "2024-09-25T00:08:24.7524909+08:00",
    "Shared": true,
    "Audit": 1,
    "Copyright": true,
    "Grade": 21,
    "Semester": 1,
    "IsPreparation": true,
    "RepositoryId": 23,
    "Id": "720aafcf-0d7a-4601-a50d-085c9621c350",
    "CreatedTime": "2024-09-25T00:08:24.7524909+08:00",
    "IsDeleted": true,
    "LastUpdatedTime": "2024-09-25T00:08:24.7524909+08:00"
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"ResourceTypeName":"sample string 1","knowledgePointName":"sample string 2","AppArrange":{"TypeName":"sample string 1","Path":"sample string 2","PID":3},"Data":{},"UserId":4,"ResourceName":"sample string 5","Suffix":"sample string 6","ResourceTypeCode":"sample string 7","TechType":8,"AppArrangeId":1,"AppArrangePath":"sample string 9","ResourceOrigin":"sample string 10","Labls":"sample string 11","ConvertState":12,"Intro":"sample string 13","PageTotal":14,"ProfessionalCourseId":15,"ProfessionalPath":"sample string 16","DownAmount":17,"ViewAmount":18,"Prime":"2024-09-25T00:08:24.7524909+08:00","Top":"2024-09-25T00:08:24.7524909+08:00","Shared":true,"Audit":1,"Copyright":true,"Grade":21,"Semester":1,"IsPreparation":true,"RepositoryId":23,"Id":"720aafcf-0d7a-4601-a50d-085c9621c350","CreatedTime":"2024-09-25T00:08:24.7524909+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:08:24.7524909+08:00"}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfResourceDtov3CTEUQJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data>
    <CreatedTime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:08:24.7524909+08:00</CreatedTime>
    <Id xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">720aafcf-0d7a-4601-a50d-085c9621c350</Id>
    <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsDeleted>
    <LastUpdatedTime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:08:24.7524909+08:00</LastUpdatedTime>
    <AppArrangeId xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">1</AppArrangeId>
    <AppArrangePath xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 9</AppArrangePath>
    <Audit xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">初始状态</Audit>
    <ConvertState xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">12</ConvertState>
    <Copyright xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</Copyright>
    <DownAmount xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">17</DownAmount>
    <Grade xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">21</Grade>
    <Intro xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 13</Intro>
    <IsPreparation xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsPreparation>
    <Labls xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 11</Labls>
    <PageTotal xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">14</PageTotal>
    <Prime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:08:24.7524909+08:00</Prime>
    <ProfessionalCourseId xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">15</ProfessionalCourseId>
    <ProfessionalPath xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 16</ProfessionalPath>
    <RepositoryId xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">23</RepositoryId>
    <ResourceName xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 5</ResourceName>
    <ResourceOrigin xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 10</ResourceOrigin>
    <ResourceTypeCode xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 7</ResourceTypeCode>
    <Semester xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">第一学期</Semester>
    <Shared xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</Shared>
    <Suffix xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 6</Suffix>
    <TechType xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">8</TechType>
    <Top xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:08:24.7524909+08:00</Top>
    <UserId xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">4</UserId>
    <ViewAmount xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">18</ViewAmount>
    <AppArrange>
      <PID>3</PID>
      <Path>sample string 2</Path>
      <TypeName>sample string 1</TypeName>
    </AppArrange>
    <Data />
    <ResourceTypeName>sample string 1</ResourceTypeName>
    <knowledgePointName>sample string 2</knowledgePointName>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfResourceDtov3CTEUQJ>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"ResourceTypeName":"sample string 1","knowledgePointName":"sample string 2","AppArrange":{"TypeName":"sample string 1","Path":"sample string 2","PID":3},"Data":{},"UserId":4,"ResourceName":"sample string 5","Suffix":"sample string 6","ResourceTypeCode":"sample string 7","TechType":8,"AppArrangeId":1,"AppArrangePath":"sample string 9","ResourceOrigin":"sample string 10","Labls":"sample string 11","ConvertState":12,"Intro":"sample string 13","PageTotal":14,"ProfessionalCourseId":15,"ProfessionalPath":"sample string 16","DownAmount":17,"ViewAmount":18,"Prime":"2024-09-25T00:08:24.7524909+08:00","Top":"2024-09-25T00:08:24.7524909+08:00","Shared":true,"Audit":1,"Copyright":true,"Grade":21,"Semester":1,"IsPreparation":true,"RepositoryId":23,"Id":"720aafcf-0d7a-4601-a50d-085c9621c350","CreatedTime":"2024-09-25T00:08:24.7524909+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:08:24.7524909+08:00"}});