mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
docs(v2): Added 'X-Merchant-Id' to headers in Profile API docs (#6291)
This commit is contained in:
@ -711,6 +711,20 @@
|
||||
"summary": "Profile - Create",
|
||||
"description": "Creates a new *profile* for a merchant",
|
||||
"operationId": "Create A Profile",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "X-Merchant-Id",
|
||||
"in": "header",
|
||||
"description": "Merchant ID of the profile.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"X-Merchant-Id": "abc_iG5VNjsN9xuCg7Xx0uWh"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
@ -767,6 +781,18 @@
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "X-Merchant-Id",
|
||||
"in": "header",
|
||||
"description": "Merchant ID of the profile.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"X-Merchant-Id": "abc_iG5VNjsN9xuCg7Xx0uWh"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@ -806,6 +832,18 @@
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "X-Merchant-Id",
|
||||
"in": "header",
|
||||
"description": "Merchant ID of the profile.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"X-Merchant-Id": "abc_iG5VNjsN9xuCg7Xx0uWh"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
@ -864,6 +902,18 @@
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "X-Merchant-Id",
|
||||
"in": "header",
|
||||
"description": "Merchant ID of the profile.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"example": {
|
||||
"X-Merchant-Id": "abc_iG5VNjsN9xuCg7Xx0uWh"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
||||
@ -139,6 +139,13 @@ pub async fn profile_list() {}
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/v2/profiles",
|
||||
params(
|
||||
(
|
||||
"X-Merchant-Id" = String, Header,
|
||||
description = "Merchant ID of the profile.",
|
||||
example = json!({"X-Merchant-Id": "abc_iG5VNjsN9xuCg7Xx0uWh"})
|
||||
),
|
||||
),
|
||||
request_body(
|
||||
content = ProfileCreate,
|
||||
examples(
|
||||
@ -169,7 +176,12 @@ pub async fn profile_create() {}
|
||||
put,
|
||||
path = "/v2/profiles/{profile_id}",
|
||||
params(
|
||||
("profile_id" = String, Path, description = "The unique identifier for the profile")
|
||||
("profile_id" = String, Path, description = "The unique identifier for the profile"),
|
||||
(
|
||||
"X-Merchant-Id" = String, Header,
|
||||
description = "Merchant ID of the profile.",
|
||||
example = json!({"X-Merchant-Id": "abc_iG5VNjsN9xuCg7Xx0uWh"})
|
||||
),
|
||||
),
|
||||
request_body(
|
||||
content = ProfileCreate,
|
||||
@ -276,7 +288,12 @@ pub async fn routing_update_default_config() {}
|
||||
get,
|
||||
path = "/v2/profiles/{profile_id}",
|
||||
params(
|
||||
("profile_id" = String, Path, description = "The unique identifier for the profile")
|
||||
("profile_id" = String, Path, description = "The unique identifier for the profile"),
|
||||
(
|
||||
"X-Merchant-Id" = String, Header,
|
||||
description = "Merchant ID of the profile.",
|
||||
example = json!({"X-Merchant-Id": "abc_iG5VNjsN9xuCg7Xx0uWh"})
|
||||
),
|
||||
),
|
||||
responses(
|
||||
(status = 200, description = "Profile Updated", body = ProfileResponse),
|
||||
@ -339,6 +356,11 @@ pub async fn routing_retrieve_default_config() {}
|
||||
path = "/v2/profiles/{profile_id}/connector_accounts",
|
||||
params(
|
||||
("profile_id" = String, Path, description = "The unique identifier for the business profile"),
|
||||
(
|
||||
"X-Merchant-Id" = String, Header,
|
||||
description = "Merchant ID of the profile.",
|
||||
example = json!({"X-Merchant-Id": "abc_iG5VNjsN9xuCg7Xx0uWh"})
|
||||
),
|
||||
),
|
||||
responses(
|
||||
(status = 200, description = "Merchant Connector list retrieved successfully", body = Vec<MerchantConnectorResponse>),
|
||||
|
||||
Reference in New Issue
Block a user