GET | /api/documentuploads/{ID} |
---|
namespace IDB.API.DTO.Document
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type DocumentUpload() =
member val ID:Int32 = new Int32() with get,set
member val Description:String = null with get,set
member val Notes:String = null with get,set
member val FileName:String = null with get,set
member val Extension:String = null with get,set
member val FileDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val AssignedTo:String = null with get,set
member val AssignedToGroup:String = null with get,set
member val UploadedBy:String = null with get,set
member val HasPreview:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type GetDocumentUploadDetails() =
member val ID:Int32 = new Int32() with get,set
F# GetDocumentUploadDetails DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/documentuploads/{ID} HTTP/1.1 Host: digiofficeapigateway.deltares.nl Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { ID: 0, Description: String, Notes: String, FileName: String, Extension: String, FileDate: 0001-01-01, AssignedTo: String, AssignedToGroup: String, UploadedBy: String, HasPreview: False }