.. AUTO-GENERATED FILE. DO NOT EDIT. Generate latest application download URL ======================================== Summary ------- - **Source repository:** ``jef-systems/jef-desktop-store-backend`` - **Source SHA:** ``d1284a9edc0941be3dbeb4c724fff6eb9bda6288`` - **Source run id:** ``28543308430`` - **Module:** ``Desktop-store`` - **Lambda function:** ``jef-desktop-store-generate-latest-application-download-url`` - **HTTP method:** ``GET`` - **Invocation mode:** ``sync`` - **Package mode:** ``no-package`` - **API category:** ``Desktop-store Complex No Package Sync GET APIs`` - **API path:** ``/jef-desktop-store-generate-latest-application-download-url`` - **Endpoint URL:** ``https://u91anelyve.execute-api.ap-southeast-1.amazonaws.com/prod/jef-desktop-store-generate-latest-application-download-url?application\_name=jef-accounting`` - **Documentation scope:** ``lambda-complex-no-packages`` Sync Read Rule -------------- This GET API is documented as a direct synchronous read path. Description ----------- Generates a 500-second S3 presigned URL for the latest Desktop Store EXE found in S3 by application\_name. Payload Example --------------- .. code-block:: json { "application_name": "jef-accounting" } Payload Schema -------------- .. code-block:: json { "root": { "type": "M", "required": true, "attributes": { "application_name": { "type": "S", "required": true, "regex": "^jef-[a-z0-9]+(-[a-z0-9]+)*$" } } } } Response Schema --------------- .. code-block:: json { "root": { "type": "M", "required": true, "attributes": { "is_accepted": { "type": "BOOL", "required": true }, "is_valid": { "type": "BOOL", "required": true }, "can_continue": { "type": "BOOL", "required": true }, "application_found": { "type": "BOOL", "required": true }, "application_active": { "type": "BOOL", "required": true }, "message_type": { "type": "S", "required": true }, "message": { "type": "S", "required": true }, "next_action": { "type": "S", "required": true }, "operation": { "type": "S", "required": true }, "status_code": { "type": "N", "required": true }, "application_id": { "type": "S", "required": false }, "application_name": { "type": "S", "required": false }, "display_name": { "type": "S", "required": false }, "version": { "type": "S", "required": false }, "platform": { "type": "S", "required": false }, "installer_type": { "type": "S", "required": false }, "file_extension": { "type": "S", "required": false }, "exe_file_name": { "type": "S", "required": false }, "exe_sha256": { "type": "S", "required": false }, "exe_size_bytes": { "type": "N", "required": false }, "s3_bucket": { "type": "S", "required": false }, "s3_key": { "type": "S", "required": false }, "s3_uri": { "type": "S", "required": false }, "download_url": { "type": "S", "required": false }, "expires_in": { "type": "N", "required": false }, "expires_at": { "type": "S", "required": false }, "source": { "type": "S", "required": false }, "last_modified": { "type": "S", "required": false }, "etag": { "type": "S", "required": false }, "failure_code": { "type": "S", "required": false }, "failure_reason": { "type": "S", "required": false }, "application": { "type": "M", "required": false } } } } CMD curl -------- .. code-block:: bat curl -X GET "https://u91anelyve.execute-api.ap-southeast-1.amazonaws.com/prod/jef-desktop-store-generate-latest-application-download-url?application_name=jef-accounting" PowerShell curl --------------- .. code-block:: powershell curl.exe -X GET "https://u91anelyve.execute-api.ap-southeast-1.amazonaws.com/prod/jef-desktop-store-generate-latest-application-download-url?application_name=jef-accounting"