use crate::common::{ApiError, ApiResult, Json, State};
use crate::common::ApiState;
use std::collections::HashMap;
#[utoipa::path(
post,
path = "/v1/plasticity/register_memory_area",
tag = "plasticity",
responses(
(status = 200, description = "Memory area registered successfully", body = HashMap<String, serde_json::Value>),
(status = 500, description = "Internal server error")
)
)]
pub async fn post_register_memory_area(
State(_state): State<ApiState>,
Json(_req): Json<HashMap<String, serde_json::Value>>,
) -> ApiResult<Json<HashMap<String, serde_json::Value>>> {
Err(ApiError::internal(
"Memory area registration not yet wired to API layer. \
Registration should happen automatically when mappings are created."
))
}