| GET | /RestApi/translations/connectors |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Telerik.Sitefinity.Translations.Web.Services.Dto.Request;
using Telerik.Sitefinity.Translations.Web.Services.Dto.Response;
namespace Telerik.Sitefinity.Translations.Web.Services.Dto.Request
{
public partial class GetConnectors
{
}
}
namespace Telerik.Sitefinity.Translations.Web.Services.Dto.Response
{
public partial class ConnectorProxy
{
public virtual string Name { get; set; }
public virtual string Title { get; set; }
public virtual int Count { get; set; }
public virtual XliffProxy Xliff { get; set; }
public virtual IEnumerable<LanguagePairProxy> SupportedLanguages { get; set; }
}
public partial class ConnectorsProxy
{
public virtual IEnumerable<ConnectorProxy> Connectors { get; set; }
public virtual IDictionary<string, string> LanguagesMapping { get; set; }
}
public partial class LanguagePairProxy
{
public virtual LanguageProxy ActualSource { get; set; }
public virtual LanguageProxy Target { get; set; }
}
public partial class LanguageProxy
{
public virtual string Code { get; set; }
public virtual string Name { get; set; }
public virtual int Count { get; set; }
}
public partial class XliffProxy
{
public virtual bool IsXliff { get; set; }
public virtual bool IsFtp { get; set; }
public virtual bool IsMachineTranslation { get; set; }
}
}
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.
GET /RestApi/translations/connectors HTTP/1.1 Host: www.imglobal.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{}