Required role: | API |
All Verbs | /api/Query/ClubBotSearchPhrases |
---|
import Foundation
import ServiceStack
// @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="ClubBotSearchPhrases")
public class FindClubBotSearchPhrases : QueryDb<ClubBotSearchPhrasesInstance>
{
required public init(){ super.init() }
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
}
}
public class ClubBotSearchPhrasesInstance : Codable
{
public var clubBotSearchPhraseId:Int?
public var searchPhrase:String?
public var context:String?
public var query:String?
public var language:String?
required public init(){}
}
Swift FindClubBotSearchPhrases 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Query/ClubBotSearchPhrases HTTP/1.1
Host: api.clubmanagercentral.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Skip":0,"Take":0,"OrderBy":"String","OrderByDesc":"String","Include":"String","Fields":"String","Meta":{"String":"String"}}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Offset":0,"Total":0,"Results":[{"ClubBotSearchPhraseId":0,"SearchPhrase":"String","Context":"String","Query":"String","Language":"String"}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}