Skip to main content

__create_subscription_impl

Function __create_subscription_impl 

Source
pub async fn __create_subscription_impl(
    state: State<AppState>,
    payload: Json<CreateSubscription>,
) -> Result<Json<SubscriptionHal>, HandlerError>
Expand description

Create a new subscription mapping.

Creates a new subscription mapping between a source branch and a target repository.

§Responses

201: Json - Subscription created successfully 401: () - Unauthorized 408: () - Request timeout 422: () - Validation error 500: () - Internal server error

§Metadata

@tag subscriptions