Units API.

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

GET /api/units/35466/?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_arch-handbook/zh_CN/?format=api",
    "source": [
        "Determine how invocations of <citerefentry><refentrytitle>access</refentrytitle><manvolnum>2</manvolnum></citerefentry> and related calls by the subject credential should return when performed on the passed vnode using the passed access flags. This should generally be implemented using the same semantics used in <function>mpo_check_vnode_open</function>. Return <returnvalue>0</returnvalue> for success, or an <varname>errno</varname> value for failure. Suggested failure: <errorcode>EACCES</errorcode> for label mismatches or <errorcode>EPERM</errorcode> for lack of privilege."
    ],
    "previous_source": "",
    "target": [
        "根据相关主体信任状决定其对给定 vnode 以给定访问标志执行的 <citerefentry><refentrytitle>access</refentrytitle><manvolnum>2</manvolnum></citerefentry>和其他相关调用的返回值。一般,应采用与<function>mpo_check_vnode_open</function>相同的语义来实现该函数。成功,则返回 <returnvalue>0</returnvalue>;否则,返回一个<varname>errno</varname>值。建议使用的错误编码:<errorcode>EACCES</errorcode>,用于标记不匹配;<errorcode>EPERM</errorcode>,用于权限不够。"
    ],
    "id_hash": -8324136245628053778,
    "content_hash": -8324136245628053778,
    "location": "book.translate.xml:11843",
    "context": "",
    "note": "(itstool) path: sect3/para",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 1255,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 59,
    "source_unit": "https://translate-dev.freebsd.org/api/units/103395/?format=api",
    "priority": 100,
    "id": 35466,
    "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=0c7aba301162d6ee",
    "url": "https://translate-dev.freebsd.org/api/units/35466/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2019-10-20T12:21:58.394976Z"
}