Skip to content

Latest commit

 

History

History
85 lines (53 loc) · 2.46 KB

PackageApi.md

File metadata and controls

85 lines (53 loc) · 2.46 KB

PackageApi

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
get_package GET /service/{service_id}/version/{version_id}/package Get details of the service's Compute package.
put_package PUT /service/{service_id}/version/{version_id}/package Upload a Compute package.

get_package

List detailed information about the Compute package for the specified service.

let cfg = &Configuration::default();
let params = GetPackageParams {
    // parameters
};
get_package(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]

Return type

crate::models::PackageResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

put_package

Upload a Compute package associated with the specified service version.

let cfg = &Configuration::default();
let params = PutPackageParams {
    // parameters
};
put_package(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]
expect Option<String> We recommend using the Expect header because it may identify issues with the request based upon the headers alone instead of requiring you to wait until the entire binary package upload has completed.
package Option<std::path::PathBuf> The content of the Wasm binary package.

Return type

crate::models::PackageResponse

Authorization

token

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]