Units API.

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

GET /api/units/92215/?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/boooks_developers-handbook/en/?format=api",
    "source": [
        "%include\t'system.inc'\n\n%define\tBUFSIZE\t2048\n\nsection\t.data\nhex\tdb\t'0123456789ABCDEF'\n\nsection .bss\nibuffer\tresb\tBUFSIZE\nobuffer\tresb\tBUFSIZE\n\nsection\t.text\nglobal\t_start\n_start:\n\tsub\teax, eax\n\tsub\tebx, ebx\n\tsub\tecx, ecx\n\tmov\tedi, obuffer\n\n.loop:\n\t; read a byte from stdin\n\tcall\tgetchar\n\n\t; convert it to hex\n\tmov\tdl, al\n\tshr\tal, 4\n\tmov\tal, [hex+eax]\n\tcall\tputchar\n\n\tmov\tal, dl\n\tand\tal, 0Fh\n\tmov\tal, [hex+eax]\n\tcall\tputchar\n\n\tmov\tal, ' '\n\tcmp\tdl, 0Ah\n\tjne\t.put\n\tmov\tal, dl\n\n.put:\n\tcall\tputchar\n\tjmp\tshort .loop\n\nalign 4\ngetchar:\n\tor\tebx, ebx\n\tjne\t.fetch\n\n\tcall\tread\n\n.fetch:\n\tlodsb\n\tdec\tebx\n\tret\n\nread:\n\tpush\tdword BUFSIZE\n\tmov\tesi, ibuffer\n\tpush\tesi\n\tpush\tdword stdin\n\tsys.read\n\tadd\tesp, byte 12\n\tmov\tebx, eax\n\tor\teax, eax\n\tje\t.done\n\tsub\teax, eax\n\tret\n\nalign 4\n.done:\n\tcall\twrite\t\t; flush output buffer\n\tpush\tdword 0\n\tsys.exit\n\nalign 4\nputchar:\n\tstosb\n\tinc\tecx\n\tcmp\tecx, BUFSIZE\n\tje\twrite\n\tret\n\nalign 4\nwrite:\n\tsub\tedi, ecx\t; start of buffer\n\tpush\tecx\n\tpush\tedi\n\tpush\tdword stdout\n\tsys.write\n\tadd\tesp, byte 12\n\tsub\teax, eax\n\tsub\tecx, ecx\t; buffer is empty now\n\tret"
    ],
    "previous_source": "",
    "target": [
        "%include\t'system.inc'\n\n%define\tBUFSIZE\t2048\n\nsection\t.data\nhex\tdb\t'0123456789ABCDEF'\n\nsection .bss\nibuffer\tresb\tBUFSIZE\nobuffer\tresb\tBUFSIZE\n\nsection\t.text\nglobal\t_start\n_start:\n\tsub\teax, eax\n\tsub\tebx, ebx\n\tsub\tecx, ecx\n\tmov\tedi, obuffer\n\n.loop:\n\t; read a byte from stdin\n\tcall\tgetchar\n\n\t; convert it to hex\n\tmov\tdl, al\n\tshr\tal, 4\n\tmov\tal, [hex+eax]\n\tcall\tputchar\n\n\tmov\tal, dl\n\tand\tal, 0Fh\n\tmov\tal, [hex+eax]\n\tcall\tputchar\n\n\tmov\tal, ' '\n\tcmp\tdl, 0Ah\n\tjne\t.put\n\tmov\tal, dl\n\n.put:\n\tcall\tputchar\n\tjmp\tshort .loop\n\nalign 4\ngetchar:\n\tor\tebx, ebx\n\tjne\t.fetch\n\n\tcall\tread\n\n.fetch:\n\tlodsb\n\tdec\tebx\n\tret\n\nread:\n\tpush\tdword BUFSIZE\n\tmov\tesi, ibuffer\n\tpush\tesi\n\tpush\tdword stdin\n\tsys.read\n\tadd\tesp, byte 12\n\tmov\tebx, eax\n\tor\teax, eax\n\tje\t.done\n\tsub\teax, eax\n\tret\n\nalign 4\n.done:\n\tcall\twrite\t\t; flush output buffer\n\tpush\tdword 0\n\tsys.exit\n\nalign 4\nputchar:\n\tstosb\n\tinc\tecx\n\tcmp\tecx, BUFSIZE\n\tje\twrite\n\tret\n\nalign 4\nwrite:\n\tsub\tedi, ecx\t; start of buffer\n\tpush\tecx\n\tpush\tedi\n\tpush\tdword stdout\n\tsys.write\n\tadd\tesp, byte 12\n\tsub\teax, eax\n\tsub\tecx, ecx\t; buffer is empty now\n\tret"
    ],
    "id_hash": -8598141787277080810,
    "content_hash": -8598141787277080810,
    "location": "book.translate.xml:10372",
    "context": "",
    "note": "(itstool) path: sect1/programlisting",
    "flags": "no-wrap",
    "labels": [],
    "state": 100,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 1726,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": true,
    "num_words": 192,
    "source_unit": "https://translate-dev.freebsd.org/api/units/92215/?format=api",
    "priority": 100,
    "id": 92215,
    "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_developers-handbook/en/?checksum=08ad439970e84716",
    "url": "https://translate-dev.freebsd.org/api/units/92215/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2019-11-02T20:37:23.932032Z"
}