Trendsic Platform Service

<back to all web services

SamGovWdSearchRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/wage-determinations/samgov/search
import Foundation
import ServiceStack

public class SamGovWdSearchRequest : Codable
{
    public var state:String
    public var constructionType:String
    public var q:String

    required public init(){}
}

public class SamGovWdSearchResponse : Codable
{
    public var responseStatus:ResponseStatus
    public var results:[SamGovWdSummary] = []

    required public init(){}
}

public class SamGovWdSummary : Codable
{
    public var wdNumber:String
    public var revision:Int
    public var constructionTypes:String
    public var counties:String
    public var publishDate:Date?
    public var modifiedDate:Date?
    public var isActive:Bool

    required public init(){}
}


Swift SamGovWdSearchRequest DTOs

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

HTTP + CSV

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

GET /v1/wage-determinations/samgov/search HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Results":[{"WdNumber":"String","Revision":0,"ConstructionTypes":"String","Counties":"String","PublishDate":"0001-01-01T00:00:00.0000000","ModifiedDate":"0001-01-01T00:00:00.0000000","IsActive":false}]}