Merge branch 'main' into adil/add_acm_demo

This commit is contained in:
Adil Hafeez 2024-12-06 16:17:26 -08:00
commit 285a66fdb6
40 changed files with 5270 additions and 1124 deletions

View file

@ -194,17 +194,11 @@ pub struct Parameter {
pub in_path: Option<bool>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EndpointDetails {
pub name: String,
pub path: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash, Default)]
pub enum HttpMethod {
#[default]
#[serde(rename = "GET")]
Get,
#[default]
#[serde(rename = "POST")]
Post,
}
@ -218,6 +212,14 @@ impl Display for HttpMethod {
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EndpointDetails {
pub name: String,
pub path: Option<String>,
#[serde(rename = "http_method")]
pub method: Option<HttpMethod>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PromptTarget {
pub name: String,