| GET | /{Workspace}/Search |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.Search
Imports Field2Office.API.Model
Namespace Global
Namespace Field2Office.API.Model
Public Partial Class NamedItem
Public Overridable Property Workspace As String
Public Overridable Property ObjectId As String
Public Overridable Property [Class] As String
Public Overridable Property VersionId As String
Public Overridable Property Name As String
Public Overridable Property LastUpdated As String
End Class
End Namespace
Namespace Field2Office.API.Model.Search
'''<Summary>
'''This service needs to be called with a query filter. It will fail otherwise. Usage is /{Workspace}/Search?QUERY=John Smith (where John Smith is the text query to use for the search). CLASSES=classlist (where classlist is an optional comma separated list of classes to search. i.e. Document,Task,Contact,Feedback If this parameter is not specified, all classes are searched.
'''</Summary>
Public Partial Class Search
Public Sub New()
Results = New List(Of NamedItem)
End Sub
Public Overridable Property Workspace As String
Public Overridable Property DateGenerated As String
Public Overridable Property Results As List(Of NamedItem)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /{Workspace}/Search HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv