Home
Author Manual
Builder Manual
Development

clone API
clone API is called from fpm cli with command fpm clone. This API clones FPM package to local. This API is only available in FPM remote feature.

API

URL and Parameters
The URL of the API is: /-/clone/

Request Method
Request Method of this API is GET

Response
The output of the API is:

#[derive(serde::Serialize, serde::Deserialize, std::fmt::Debug)]
pub struct CloneResponse {
    pub package_name: String,
    pub files: std::collections::BTreeMap<String, Vec<u8>>,
}

TODO
This API ideally should take URL of FPM package to clone.