tmf622-ordering 0.2.5

TM Forum TMF622 Product Ordering Management API implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! API route configuration for TMF622

use crate::handlers::*;
use actix_web::web;

/// Configure all TMF622 routes
pub fn configure_routes(cfg: &mut web::ServiceConfig) {
    cfg.service(
        web::scope("/tmf-api/productOrderingManagement/v4")
            .service(
                web::resource("/productOrder")
                    .route(web::get().to(get_orders))
                    .route(web::post().to(create_order)),
            )
            .service(web::resource("/productOrder/{id}").route(web::get().to(get_order_by_id))),
    );
}