| GET POST | /api/projects |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports IDB.API.DTO.Project.Operations
Imports IDB.API.DTO.Registrationprofile
Namespace Global
Namespace IDB.API.DTO.Project.Operations
Public Partial Class GetProjects
Implements IFilterRequest
Implements IPageOptions
Implements IModifiedSince
Implements ISearchCriteria
Public Overridable Property SearchCriteria As String Implements ISearchCriteria.SearchCriteria
Public Overridable Property PageSize As Integer Implements IPageOptions.PageSize
Public Overridable Property PageNumber As Integer Implements IPageOptions.PageNumber
Public Overridable Property ModifiedSince As Date? Implements IModifiedSince.ModifiedSince
Public Overridable Property OrderBy As String
Public Overridable Property Active As Boolean?
Public Overridable Property RegistrationProfileFieldID As Guid Implements IFilterRequest.RegistrationProfileFieldID
Public Overridable Property DependableFields As List(Of RegistrationProfileFieldValue)
End Class
End Namespace
Namespace IDB.API.DTO.Registrationprofile
Public Partial Class RegistrationProfileFieldValue
Public Overridable Property DocumentFieldID As Guid
Public Overridable Property Value As String
Public Overridable Property ShadowValue As String
Public Overridable Property IsModifiedByUser As Boolean
End Class
End Namespace
End Namespace
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.
POST /api/projects HTTP/1.1
Host: dogw.klokgroep.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
SearchCriteria: String,
PageSize: 0,
PageNumber: 0,
ModifiedSince: 0001-01-01,
OrderBy: String,
Active: False,
DependableFields:
[
{
Value: String,
ShadowValue: String,
IsModifiedByUser: False
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
[
{
ID: 0,
Number: String,
Name: String,
Description1: String,
Description2: String,
City: String,
Active: False
}
]