<back to all web services

FindTranslations

The following routes are available for this service:
GET/RestApi/translations/translations
import Foundation
import ServiceStack

public class FindTranslations : ITranslationsFilter, Codable
{
    public var skip:Int?
    public var take:Int?
    public var orderExpression:String
    public var type:[String]
    public var searchText:String
    public var actualSourceLanguage:String
    public var targetLanguage:[String]
    public var service:[String]
    public var translationStatus:[TranslationStatus]
    public var status:[String]
    public var projectIds:[String]
    public var startDate:Date?
    public var endDate:Date?
    public var errorsOnly:Bool

    required public init(){}
}

public enum TranslationStatus : Int, Codable
{
    case Marked = 101
    case Sending = 201
    case Sent = 202
    case Received = 301
    case Importing = 302
    case Imported = 303
    case Completed = 304
    case Archived = 401
    case Deleted = 402
    case Rejected = 403
    case SendingError = 501
    case ImportingError = 502
    case ReceivingError = 503
}


Swift FindTranslations DTOs

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

HTTP + OTHER

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

GET /RestApi/translations/translations HTTP/1.1 
Host: www.imglobal.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[{"Title":"String","ActualSourceLanguage":{"Code":"String","Name":"String","Count":0},"TargetLanguage":{"Code":"String","Name":"String","Count":0},"ItemType":{"FullName":"String","Name":"String","Count":0},"TranslationStatus":{"Name":"String","Value":"String","Count":0,"Action":"String","SuccessfulActionMessage":"String"},"PreviewLink":"String","Status":"String","ErrorMessage":"String","ProjectId":"00000000-0000-0000-0000-000000000000","DateModified":"\/Date(-62135596800000-0000)\/"}]