Units API.

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

GET /api/units/34430/?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": [
        "The <literal>STATICMETHOD</literal> keyword is used like the <literal>METHOD</literal> keyword except the kobj data is not at the head of the object structure so casting to kobj_t would be incorrect. Instead <literal>STATICMETHOD</literal> relies on the Kobj data being referenced as 'ops'. This is also useful for calling methods directly out of a class's method table."
    ],
    "previous_source": "",
    "target": [
        "关键词<literal>STATICMETHOD</literal>类似关键词<literal>METHOD</literal>。对于每个Kobj对象,一般其头部都有一些Kobj专有的数据。<literal>METHOD</literal>定义的方法就假设这些专有数据位于对象头部;假如对象头部没有这些专有数据,这些方法对这个对象的访问就可能出错。而<literal>STATICMETHOD</literal>定义的对象可以不受这个限制:这样描述出的方法,其操作的数据不由这个类的某个对象实例给出,而是全都由调用这个方法时的操作数(译者注:即参数)给出。这也对于在某个类的方法表之外调用这个方法有用。"
    ],
    "id_hash": -2052569294612074824,
    "content_hash": -2052569294612074824,
    "location": "book.translate.xml:3188",
    "context": "",
    "note": "(itstool) path: sect2/para",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 411,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": true,
    "num_words": 54,
    "source_unit": "https://translate-dev.freebsd.org/api/units/102553/?format=api",
    "priority": 100,
    "id": 34430,
    "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=6383cf19fdc5eeb8",
    "url": "https://translate-dev.freebsd.org/api/units/34430/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2019-10-20T12:21:46.615395Z"
}