C# 클래스 WorldSurveyKit.Controllers.FilesController

상속: ApiController
파일 보기 프로젝트 열기: ntheile/World-Survey-Kit

공개 메소드들

메소드 설명
DeleteFile ( int id ) : HttpResponseMessage

DELETE's a file by id

GetFile ( int id ) : HttpResponseMessage

Gets all the files that belong to an organization

PostFile ( File file ) : HttpResponseMessage

CREATE's a new file for the org passed in

PutFile ( int id, File file ) : HttpResponseMessage

Update a file, for example update the published date by passing in the updated_at field, note this is not a patch and all valus must be passed in.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
GetOrgId ( int fileId ) : int

메소드 상세

DeleteFile() 공개 메소드

DELETE's a file by id
public DeleteFile ( int id ) : HttpResponseMessage
id int
리턴 System.Net.Http.HttpResponseMessage

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetFile() 공개 메소드

Gets all the files that belong to an organization
public GetFile ( int id ) : HttpResponseMessage
id int
리턴 System.Net.Http.HttpResponseMessage

PostFile() 공개 메소드

CREATE's a new file for the org passed in
public PostFile ( File file ) : HttpResponseMessage
file WorldSurveyKit.Models.File
리턴 System.Net.Http.HttpResponseMessage

PutFile() 공개 메소드

Update a file, for example update the published date by passing in the updated_at field, note this is not a patch and all valus must be passed in.
public PutFile ( int id, File file ) : HttpResponseMessage
id int
file WorldSurveyKit.Models.File
리턴 System.Net.Http.HttpResponseMessage