Units API.

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

GET /api/units/157268/?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_linux-emulation/es/?format=api",
    "source": [
        "This infrastructure is necessary to avoid races when opening files outside the working directory. Imagine that a process consists of two threads, thread A and thread B. Thread A issues <literal>open(./tmp/foo/bah., flags, mode)</literal> and before returning it gets preempted and thread B runs. Thread B does not care about the needs of thread A and renames or removes <filename>/tmp/foo/</filename>. We got a race. To avoid this we can open <filename>/tmp/foo</filename> and use it as <varname>dirfd</varname> for <function>openat</function> syscall. This also enables user to implement per-thread working directories."
    ],
    "previous_source": "",
    "target": [
        "Esta infraestructura es necesaria para evitar carreras al abrir archivos fuera del directorio de trabajo. Imagine que un proceso consta de dos subprocesos, el subproceso A y el subproceso B. Problemas del subproceso A <literal>abrir(./tmp/foo/bah., flags, mode)</literal> y antes de regresar se reemplaza y se ejecuta el hilo B. El hilo B no se preocupa por las necesidades del hilo A y cambia el nombre o elimina<filename>/tmp/foo/</filename>. Tenemos una carrera. Para evitar esto podemos abrir <filename>/tmp/foo</filename> and use it as <varname>dirfd</varname>para <function>openat</function>syscall. Esto también permite al usuario implementar directorios de trabajo por subproceso."
    ],
    "id_hash": 8222897637007509107,
    "content_hash": 8222897637007509107,
    "location": "article.translate.xml:2318",
    "context": "",
    "note": "(itstool) path: sect3/para",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 349,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 87,
    "source_unit": "https://translate-dev.freebsd.org/api/units/157267/?format=api",
    "priority": 100,
    "id": 157268,
    "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_linux-emulation/es/?checksum=f21d99d5863b4673",
    "url": "https://translate-dev.freebsd.org/api/units/157268/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2020-04-18T18:14:55.395014Z"
}