Units API.

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

GET /api/units/12582059/?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/yast-security/master/en/?format=api",
    "source": [
        "Ignore"
    ],
    "previous_source": "",
    "target": [
        "Ignore"
    ],
    "id_hash": -915217896732255454,
    "content_hash": -915217896732255454,
    "location": "src/include/security/widgets.rb:85",
    "context": "",
    "note": "------------------------------------------------------------------------------\nCopyright (c) 2006-2012 Novell, Inc. All Rights Reserved.\n\n\nThis program is free software; you can redistribute it and/or modify it under\nthe terms of version 2 of the GNU General Public License as published by the\nFree Software Foundation.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT\nANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\nFOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with\nthis program; if not, contact Novell, Inc.\n\nTo contact Novell about this file by physical or electronic mail, you may find\ncurrent contact information at www.novell.com.\n------------------------------------------------------------------------------\n* File:\tinclude/security/widgets.ycp\n* Module:\tSecurity configuration\n* Summary:\tSecurity widgets definitions\n* Authors:\tMichal Svec <msvec@suse.cz>\n*\n* $Id$\n*\n* This file contains the definitions of all widgets used by the\n* security module. They are all in one map (function) called\n* WIDGETS.\n\n<pre>\n\nThe WIDGETS format:\n-------------------\n\nmap WIDGETS = $[\n\"Item unique ID\" : $[\n\"Widget\" : \"ComboBox\",\n\"Label\" : \"Item Label\",\n\"Options\" : [ \"option1\", \"option2\", ... ],\n\"Value\" : \"option2\"\n],\n...\n];\n\nThe \"Value\" is the current value of this option and one from \"Options\".\n\nParticular \"Options\" can be either <string> or [ <string>, <string> ]. In the\nlatter case, the first string is used as ID and the second is displayed. For\nexample: [ \"option1\", [\"option2\",_(\"Option2 translation\")], ... ].\n\nPossible \"Widget\" values so far: \"ComboBox, CheckBox, TextEntry\".\n\nImplementation:\n---------------\n\nmap2widget(\"ID\")\n- look up the \"ID\" in the \"WIDGETS\" map\n- create the widget\n\nwidget2value(\"ID\")\n- query UI for the widget with `id(ID)\n- return its current value\n\nupdatewidget(\"ID\")\n- look up the \"ID\" and change its \"Value\" to the \"val\"\n- updates the WIDGETS map\n- called after start and after each subdialog [OK]\n- must check if the value is in \"Options\"! (TODO)\n\nprocessinput()\n- return true (OK) or false (abort, back, nil, help!, ...)\n\n</pre>\n\n*\n@return [Hash] all widgets",
    "flags": "",
    "labels": [],
    "state": 100,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 135,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": true,
    "num_words": 1,
    "source_unit": "https://l10n.opensuse.org/api/units/12582059/?format=api",
    "priority": 100,
    "id": 12582059,
    "web_url": "https://l10n.opensuse.org/translate/yast-security/master/en/?checksum=734c7e2c05319b22",
    "url": "https://l10n.opensuse.org/api/units/12582059/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2016-09-16T14:33:30Z"
}