C# Class WorldSurveyKit.Controllers.FilesController

Inheritance: ApiController
Afficher le fichier Open project: ntheile/World-Survey-Kit

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
GetOrgId ( int fileId ) : int

Method Details

DeleteFile() public méthode

DELETE's a file by id
public DeleteFile ( int id ) : HttpResponseMessage
id int
Résultat System.Net.Http.HttpResponseMessage

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetFile() public méthode

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

PostFile() public méthode

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

PutFile() public méthode

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
Résultat System.Net.Http.HttpResponseMessage