Units API.

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

GET /api/units/11977966/?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-base/master/sv/?format=api",
    "source": [
        "Service with name '%{service_name}' does not exist"
    ],
    "previous_source": "",
    "target": [
        "Tjänsten med namnet %{service_name} finns inte"
    ],
    "id_hash": 6488031987638865410,
    "content_hash": 6488031987638865410,
    "location": "library/network/src/lib/network/susefirewall2services.rb:259, library/network/src/lib/network/susefirewall2services.rb:417, library/network/src/lib/network/susefirewalldservices.rb:124",
    "context": "",
    "note": "Returns service definition.\nSee @services for the format.\nIf *silent* is `false` (the default), the method throws an exception\n{Yast::SuSEFirewalServiceNotFound} if service is not found on disk.\n\n@param [String] service_name name including the \"service:\" prefix\n@param [String] silent whether to silently return nil\nwhen service is not found\n@api private\nImmediately writes the configuration of service defined by package to the\nservice definition file. Service must be defined by package, this function\ndoesn't work for hard-coded services (SuSEFirewallServices).\nFunction throws an exception {Yast::SuSEFirewalServiceNotFound}\nif service is not known (undefined) or it is not a service\ndefined by package.\n\n@param [String] service ID (e.g., \"service:ssh\")\n@param [Hash<String, Array<String>>] store_definition of full service definition\n@return [Boolean] if successful (nil in case of developer's mistake)\n\n@see #IsKnownService\n@see #ServiceDefinedByPackage\n\n@example\nSetNeededPortsAndProtocols (\n\"service:something\",\n{\n\"tcp_ports\"      => [ \"22\", \"ftp-data\", \"400:420\" ],\n\"udp_ports\"      => [ ],\n\"rpc_ports\"      => [ \"portmap\", \"ypbind\" ],\n\"ip_protocols\"   => [ \"esp\" ],\n\"broadcast_ports\"=> [ ],\n}\n)\nIf service description is the default one then we know that we haven't read the service\ninformation just yet. Lets do it now",
    "flags": "perl-brace-format",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 335,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 7,
    "source_unit": "https://l10n.opensuse.org/api/units/12685851/?format=api",
    "priority": 100,
    "id": 11977966,
    "web_url": "https://l10n.opensuse.org/translate/yast-base/master/sv/?checksum=da0a1eb7ba960e02",
    "url": "https://l10n.opensuse.org/api/units/11977966/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2020-10-02T02:30:59.552144Z"
}