DigiOffice Gateway Web Services

<back to all web services

GetProjectDetails

Requires Authentication
The following routes are available for this service:
GET/api/projects/{ID}
namespace IDB.API.DTO.Project

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ProjectDetails() = 
        member val ID:Int32 = new Int32() with get,set
        member val GlobalID:Guid = new Guid() with get,set
        member val Number:String = null with get,set
        member val Name:String = null with get,set
        member val Description1:String = null with get,set
        member val Description2:String = null with get,set
        member val Active:Boolean = new Boolean() with get,set
        member val CorrespondenceInternalCompanyID:Int32 = new Int32() with get,set
        member val CorrespondenceInternalCompanyName:String = null with get,set
        member val CorrespondenceInternalCompanyGlobalID:Guid = new Guid() with get,set
        member val Postalcode:String = null with get,set
        member val City:String = null with get,set
        member val CountryID:Int32 = new Int32() with get,set
        member val CountryGlobalID:Guid = new Guid() with get,set
        member val CountryName:String = null with get,set
        member val GeoLocation:String = null with get,set
        member val AddressComplete:String = null with get,set
        member val CategoryID:Int32 = new Int32() with get,set
        member val CategoryDescription:String = null with get,set
        member val CategoryGlobalID:Guid = new Guid() with get,set

    [<AllowNullLiteral>]
    type GetProjectDetails() = 
        member val ID:Int32 = new Int32() with get,set

F# GetProjectDetails DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/projects/{ID} HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ID":0,"GlobalID":"00000000-0000-0000-0000-000000000000","Number":"String","Name":"String","Description1":"String","Description2":"String","Active":false,"CorrespondenceInternalCompanyID":0,"CorrespondenceInternalCompanyName":"String","CorrespondenceInternalCompanyGlobalID":"00000000-0000-0000-0000-000000000000","Postalcode":"String","City":"String","CountryID":0,"CountryGlobalID":"00000000-0000-0000-0000-000000000000","CountryName":"String","GeoLocation":"String","AddressComplete":"String","CategoryID":0,"CategoryDescription":"String","CategoryGlobalID":"00000000-0000-0000-0000-000000000000"}