Units API.

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

GET /api/units/11610986/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://l10n.opensuse.org/api/translations/doc-sle-translations/adm_sudo-master/ar/?format=api",
    "source": [
        "On <phrase role=\"productname\"><phrase os=\"osuse\">openSUSE Leap</phrase><phrase os=\"sles\">SUSE Linux Enterprise Server</phrase><phrase os=\"sled\">SUSE Linux Enterprise Desktop</phrase></phrase>, <command>sudo</command> is configured by default to work similarly to su. However, <command>sudo</command> offers the possibility to allow users to run commands with privileges of any other user in a highly configurable manner. This can be used to assign roles with specific privileges to certain users and groups. It is for example possible to allow members of the group <systemitem class=\"groupname\">users</systemitem> to run a command with the privileges of <systemitem class=\"username\">wilber</systemitem>. Access to the command can be further restricted by, for example, forbidding to specify any command options. While su always requires the <systemitem class=\"username\">root</systemitem> password for authentication with PAM, <command>sudo</command> can be configured to authenticate with your own credentials. This increases security by not having to share the <systemitem class=\"username\">root</systemitem> password. For example, you can allow members of the group <systemitem class=\"groupname\">users</systemitem> to run a command <command>frobnicate</command> as <systemitem class=\"username\">wilber</systemitem>, with the restriction that no arguments are specified. This can be used to assign roles with specific abilities to certain users and groups."
    ],
    "previous_source": "",
    "target": [
        ""
    ],
    "id_hash": 5507362714647821522,
    "content_hash": 5507362714647821522,
    "location": "xml/adm_sudo.xml:27",
    "context": "",
    "note": "(itstool) path: chapter/para",
    "flags": "",
    "state": 0,
    "fuzzy": false,
    "translated": false,
    "approved": false,
    "position": 4,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 176,
    "source_unit": "https://l10n.opensuse.org/api/units/12692202/?format=api",
    "priority": 100,
    "id": 11610986,
    "web_url": "https://l10n.opensuse.org/translate/doc-sle-translations/adm_sudo-master/ar/?checksum=cc6e1535afd07cd2",
    "url": "https://l10n.opensuse.org/api/units/11610986/?format=api",
    "explanation": "",
    "extra_flags": ""
}