Units API.

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

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

{
    "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_filtering-bridge/en/?format=api",
    "source": [
        "# Things that we have kept state on before get to go through in a hurry\nadd check-state\n\n# Throw away RFC 1918 networks\nadd drop all from 10.0.0.0/8 to any in via fxp0\nadd drop all from 172.16.0.0/12 to any in via fxp0\nadd drop all from 192.168.0.0/16 to any in via fxp0\n\n# Allow the bridge machine to say anything it wants\n# (if the machine is IP-less do not include these rows)\nadd pass tcp from 1.2.3.4 to any setup keep-state\nadd pass udp from 1.2.3.4 to any keep-state\nadd pass ip from 1.2.3.4 to any\n\n# Allow the inside hosts to say anything they want\nadd pass tcp from any to any in via xl0 setup keep-state\nadd pass udp from any to any in via xl0 keep-state\nadd pass ip from any to any in via xl0\n\n# TCP section\n# Allow SSH\nadd pass tcp from any to any 22 in via fxp0 setup keep-state\n# Allow SMTP only towards the mail server\nadd pass tcp from any to relay 25 in via fxp0 setup keep-state\n# Allow zone transfers only by the slave name server [dns2.nic.it]\nadd pass tcp from 193.205.245.8 to ns 53 in via fxp0 setup keep-state\n# Pass ident probes.  It is better than waiting for them to timeout\nadd pass tcp from any to any 113 in via fxp0 setup keep-state\n# Pass the \"quarantine\" range\nadd pass tcp from any to any 49152-65535 in via fxp0 setup keep-state\n\n# UDP section\n# Allow DNS only towards the name server\nadd pass udp from any to ns 53 in via fxp0 keep-state\n# Pass the \"quarantine\" range\nadd pass udp from any to any 49152-65535 in via fxp0 keep-state\n\n# ICMP section\n# Pass 'ping'\nadd pass icmp from any to any icmptypes 8 keep-state\n# Pass error messages generated by 'traceroute'\nadd pass icmp from any to any icmptypes 3\nadd pass icmp from any to any icmptypes 11\n\n# Everything else is suspect\nadd drop log all from any to any"
    ],
    "previous_source": "",
    "target": [
        "# Things that we have kept state on before get to go through in a hurry\nadd check-state\n\n# Throw away RFC 1918 networks\nadd drop all from 10.0.0.0/8 to any in via fxp0\nadd drop all from 172.16.0.0/12 to any in via fxp0\nadd drop all from 192.168.0.0/16 to any in via fxp0\n\n# Allow the bridge machine to say anything it wants\n# (if the machine is IP-less do not include these rows)\nadd pass tcp from 1.2.3.4 to any setup keep-state\nadd pass udp from 1.2.3.4 to any keep-state\nadd pass ip from 1.2.3.4 to any\n\n# Allow the inside hosts to say anything they want\nadd pass tcp from any to any in via xl0 setup keep-state\nadd pass udp from any to any in via xl0 keep-state\nadd pass ip from any to any in via xl0\n\n# TCP section\n# Allow SSH\nadd pass tcp from any to any 22 in via fxp0 setup keep-state\n# Allow SMTP only towards the mail server\nadd pass tcp from any to relay 25 in via fxp0 setup keep-state\n# Allow zone transfers only by the slave name server [dns2.nic.it]\nadd pass tcp from 193.205.245.8 to ns 53 in via fxp0 setup keep-state\n# Pass ident probes.  It is better than waiting for them to timeout\nadd pass tcp from any to any 113 in via fxp0 setup keep-state\n# Pass the \"quarantine\" range\nadd pass tcp from any to any 49152-65535 in via fxp0 setup keep-state\n\n# UDP section\n# Allow DNS only towards the name server\nadd pass udp from any to ns 53 in via fxp0 keep-state\n# Pass the \"quarantine\" range\nadd pass udp from any to any 49152-65535 in via fxp0 keep-state\n\n# ICMP section\n# Pass 'ping'\nadd pass icmp from any to any icmptypes 8 keep-state\n# Pass error messages generated by 'traceroute'\nadd pass icmp from any to any icmptypes 3\nadd pass icmp from any to any icmptypes 11\n\n# Everything else is suspect\nadd drop log all from any to any"
    ],
    "id_hash": 6538149532364871187,
    "content_hash": 6538149532364871187,
    "location": "article.translate.xml:280",
    "context": "",
    "note": "(itstool) path: sect1/programlisting",
    "flags": "no-wrap",
    "labels": [],
    "state": 100,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 48,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 344,
    "source_unit": "https://translate-dev.freebsd.org/api/units/98142/?format=api",
    "priority": 100,
    "id": 98142,
    "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_filtering-bridge/en/?checksum=dabc2c5becfe9613",
    "url": "https://translate-dev.freebsd.org/api/units/98142/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2019-10-20T12:03:43.570716Z"
}