Units API.

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

GET /api/units/98007/?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/articles_cups/en/?format=api",
    "source": [
        "# Log general information in error_log - change \"info\" to \"debug\" for\n# troubleshooting...\nLogLevel info\n\n# Administrator user group...\nSystemGroup wheel\n\n# Listen for connections on Port 631.\nPort 631\n#Listen localhost:631\nListen /var/run/cups.sock\n\n# Show shared printers on the local network.\nBrowsing On\nBrowseOrder allow,deny\n#BrowseAllow @LOCAL\nBrowseAllow 192.168.1.* # change to local LAN settings\nBrowseAddress 192.168.1.* # change to local LAN settings\n\n# Default authentication type, when authentication is required...\nDefaultAuthType Basic\nDefaultEncryption Never # comment this line to allow encryption\n\n# Allow access to the server from any machine on the LAN\n<Location />\n  Order allow,deny\n  #Allow localhost\n  Allow 192.168.1.* # change to local LAN settings\n</Location>\n\n# Allow access to the admin pages from any machine on the LAN\n<Location /admin>\n  #Encryption Required\n  Order allow,deny\n  #Allow localhost\n  Allow 192.168.1.* # change to local LAN settings\n</Location>\n\n# Allow access to configuration files from any machine on the LAN\n<Location /admin/conf>\n  AuthType Basic\n  Require user @SYSTEM\n  Order allow,deny\n  #Allow localhost\n  Allow 192.168.1.* # change to local LAN settings\n</Location>\n\n# Set the default printer/job policies...\n<Policy default>\n  # Job-related operations must be done by the owner or an administrator...\n  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs \\\nSet-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription \\\nGet-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job \\\nCUPS-Move-Job>\n    Require user @OWNER @SYSTEM\n    Order deny,allow\n  </Limit>\n\n  # All administration operations require an administrator to authenticate...\n  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer \\\nDisable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs \\\nDeactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer \\\nPromote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class \\\nCUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>\n    AuthType Basic\n    Require user @SYSTEM\n    Order deny,allow\n  </Limit>\n\n  # Only the owner or an administrator can cancel or authenticate a job...\n  <Limit Cancel-Job CUPS-Authenticate-Job>\n    Require user @OWNER @SYSTEM\n    Order deny,allow\n  </Limit>\n\n  <Limit All>\n    Order deny,allow\n  </Limit>\n</Policy>"
    ],
    "previous_source": "",
    "target": [
        "# Log general information in error_log - change \"info\" to \"debug\" for\n# troubleshooting...\nLogLevel info\n\n# Administrator user group...\nSystemGroup wheel\n\n# Listen for connections on Port 631.\nPort 631\n#Listen localhost:631\nListen /var/run/cups.sock\n\n# Show shared printers on the local network.\nBrowsing On\nBrowseOrder allow,deny\n#BrowseAllow @LOCAL\nBrowseAllow 192.168.1.* # change to local LAN settings\nBrowseAddress 192.168.1.* # change to local LAN settings\n\n# Default authentication type, when authentication is required...\nDefaultAuthType Basic\nDefaultEncryption Never # comment this line to allow encryption\n\n# Allow access to the server from any machine on the LAN\n<Location />\n  Order allow,deny\n  #Allow localhost\n  Allow 192.168.1.* # change to local LAN settings\n</Location>\n\n# Allow access to the admin pages from any machine on the LAN\n<Location /admin>\n  #Encryption Required\n  Order allow,deny\n  #Allow localhost\n  Allow 192.168.1.* # change to local LAN settings\n</Location>\n\n# Allow access to configuration files from any machine on the LAN\n<Location /admin/conf>\n  AuthType Basic\n  Require user @SYSTEM\n  Order allow,deny\n  #Allow localhost\n  Allow 192.168.1.* # change to local LAN settings\n</Location>\n\n# Set the default printer/job policies...\n<Policy default>\n  # Job-related operations must be done by the owner or an administrator...\n  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs \\\nSet-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription \\\nGet-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job \\\nCUPS-Move-Job>\n    Require user @OWNER @SYSTEM\n    Order deny,allow\n  </Limit>\n\n  # All administration operations require an administrator to authenticate...\n  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer \\\nDisable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs \\\nDeactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer \\\nPromote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class \\\nCUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>\n    AuthType Basic\n    Require user @SYSTEM\n    Order deny,allow\n  </Limit>\n\n  # Only the owner or an administrator can cancel or authenticate a job...\n  <Limit Cancel-Job CUPS-Authenticate-Job>\n    Require user @OWNER @SYSTEM\n    Order deny,allow\n  </Limit>\n\n  <Limit All>\n    Order deny,allow\n  </Limit>\n</Policy>"
    ],
    "id_hash": -5013769016378229320,
    "content_hash": -5013769016378229320,
    "location": "article.translate.xml:288",
    "context": "",
    "note": "(itstool) path: sect1/programlisting",
    "flags": "no-wrap",
    "labels": [],
    "state": 100,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 48,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": true,
    "num_words": 293,
    "source_unit": "https://translate-dev.freebsd.org/api/units/98007/?format=api",
    "priority": 100,
    "id": 98007,
    "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/articles_cups/en/?checksum=3a6b83a4c8ea7db8",
    "url": "https://translate-dev.freebsd.org/api/units/98007/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2019-10-20T12:02:13.092596Z"
}