Home
Author Manual
Builder Manual
Development

edit API
edit API is called by the fpm editor to update the local content of fpm package where fpm serve is running.

API

URL and Parameters
The URL is /-/edit/

Request Method
Request Method of this API is POST

Input
The input of this API is:

pub struct EditRequest {
    pub url: String,
    pub value: Option<String>,
    pub path: String,
    pub operation: Option<String>,
    pub data: Option<String>,
}

Response
The output of this API is:

pub struct EditResponse {
    pub path: String,
    pub url: Option<String>,
    pub reload: bool,
}