systemprompt-api 0.2.0

HTTP API server and gateway for systemprompt.io OS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::client;
use axum::Router;
use axum::routing::{delete, get, post, put};
use systemprompt_oauth::OAuthState;

pub fn router() -> Router<OAuthState> {
    Router::new()
        .route("/", get(client::list::list_clients))
        .route("/", post(client::create::create_client))
        .route("/{client_id}", get(client::get::get_client))
        .route("/{client_id}", put(client::update::update_client))
        .route("/{client_id}", delete(client::delete::delete_client))
}