Units API.

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

GET /api/units/1194853/?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/documentation/booksdevelopers-handbooksecure_index/fr_FR/?format=api",
    "source": [
        "The most straightforward solution to the problem of stack-overflows is to always use length restricted memory and string copy functions.  `strncpy` and `strncat` are part of the standard C library.  These functions accept a length value as a parameter which should be no larger than the size of the destination buffer.  These functions will then copy up to 'length' bytes from the source to the destination.  However there are a number of problems with these functions.  Neither function guarantees NUL termination if the size of the input buffer is as large as the destination.  The length parameter is also used inconsistently between strncpy and strncat so it is easy for programmers to get confused as to their proper usage.  There is also a significant performance loss compared to `strcpy` when copying a short string into a large buffer since `strncpy` NUL fills up the size specified."
    ],
    "previous_source": "",
    "target": [
        ""
    ],
    "id_hash": -4657702395399893570,
    "content_hash": -4657702395399893570,
    "location": "documentation/content/en/books/developers-handbook/secure/_index.adoc:174",
    "context": "",
    "note": "type: Plain text",
    "flags": "",
    "labels": [],
    "state": 0,
    "fuzzy": false,
    "translated": false,
    "approved": false,
    "position": 37,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 146,
    "source_unit": "https://translate-dev.freebsd.org/api/units/1194754/?format=api",
    "priority": 100,
    "id": 1194853,
    "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbooksecure_index/fr_FR/?checksum=3f5c845954b40dbe",
    "url": "https://translate-dev.freebsd.org/api/units/1194853/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2021-06-08T11:36:37.347758Z"
}