Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/7663599/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://l10n.opensuse.org/api/translations/yast-iplb/master/ca/?format=api",
    "source": [
        "</p><p><b><big>real servers</big> =</b> <i>ip_address|hostname[-&gt;ip_address|hostname][:portnumber|servicename</i>]\n<b>gate</b>|<b>masq</b>|<b>ipip</b> [<i>weight</i>] [<b>\"</b><i>request</i><b>\", \"</b><i>receive</i><b>\"</b>]\n</p><p>Defines a real service by IP-address (or hostname) and port (or servicename). If the port is omitted then a 0 will be used, this is intended primarily for\nfwmark services where the port for real servers is ignored. Optionally a range of <small>IP</small> addresses (or two hostnames) may be given, in which case\neach <small>IP</small> address in the range will be treated as a real server using the given port. The second argument defines the forwarding method, must be\n<b>gate</b>, <b>ipip</b> or <b>masq</b>. The thrid argument is optional and defines the weight for that real server. If omitted then a weight of 1 will be\nused. The last two arguments are also optional. They define a request-receive pair to be used to check if a server is alive. They override the request-receive\npair in the virtual server section. These two strings must be quoted. If the request string starts with http://... the IP-address and port of the real\nserver is overridden, otherwise the IP-address and port of the real server is used.\n"
    ],
    "previous_source": "",
    "target": [
        "</p><p><b><big>servidors reals</big> =</b> <i>adreça_ip|nom d'amfitrió[-&gt;adreça_ip|nom d'amfitrió][:número_de_port|nom_del_servei</i>]\n<b>passarel·la</b>|<b>màscara</b>|<b>ipip</b> [<i>pes</i>] [<b>\"</b><i>sol·licitud</i><b>\", \"</b><i>recepció</i><b>\"</b>]\n</p><p>Defineix un servei real amb una adreça IP (o nom d'amfitrió) i port (o nom de servei). Si s'omet el port, s'usa 0; això està previst principalment per a\nserveis fwmark en què s'ignora el port dels servidors reals. De forma opcional, es pot proporcionar una gamma d'adreces <small>IP</small> (o dos noms d'amfitrió), en aquest cas\ncada adreça <small>IP</small> de la gamma es tractarà com a un servidor que usa el port triat. El segon argument defineix el mètode de redireccionament, i ha de ser\n<b>gate</b>, <b>ipip</b> o <b>masq</b>. El tercer argument és opcional i defineix el pes per a aquest servidor real. Si s'omet, s'usa un pes d'1.\nEls dos últims arguments també són opcionals. Defineixen un parell sol·licitud-recepció que s'usa per comprobar si el servidor és viu. Sobreescriuen el parell sol·licitud-recepció\na la secció de servidor virtual. Les dues cadenes de text han d'anar entre cometes. Si la cadena de sol·licitud comença amb http://..., l'adreça IP i el port del servidor real\ns'ignoren, si no s'usen l'adreça IP i el port del servidor real.\n"
    ],
    "id_hash": 1125636483103487337,
    "content_hash": 1125636483103487337,
    "location": "src/include/iplb/helps.rb:135",
    "context": "",
    "note": "",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 45,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 180,
    "source_unit": "https://l10n.opensuse.org/api/units/12575770/?format=api",
    "priority": 100,
    "id": 7663599,
    "web_url": "https://l10n.opensuse.org/translate/yast-iplb/master/ca/?checksum=8f9f106ae19a7569",
    "url": "https://l10n.opensuse.org/api/units/7663599/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2018-02-14T02:35:14.319446Z"
}