mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +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",
|
"summary": "Profile - Create",
|
||||||
"description": "Creates a new *profile* for a merchant",
|
"description": "Creates a new *profile* for a merchant",
|
||||||
"operationId": "Create A Profile",
|
"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": {
|
"requestBody": {
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
@ -767,6 +781,18 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"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": {
|
"responses": {
|
||||||
@ -806,6 +832,18 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"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": {
|
"requestBody": {
|
||||||
@ -864,6 +902,18 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"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": {
|
"responses": {
|
||||||
|
|||||||
@ -139,6 +139,13 @@ pub async fn profile_list() {}
|
|||||||
#[utoipa::path(
|
#[utoipa::path(
|
||||||
post,
|
post,
|
||||||
path = "/v2/profiles",
|
path = "/v2/profiles",
|
||||||
|
params(
|
||||||
|
(
|
||||||
|
"X-Merchant-Id" = String, Header,
|
||||||
|
description = "Merchant ID of the profile.",
|
||||||
|
example = json!({"X-Merchant-Id": "abc_iG5VNjsN9xuCg7Xx0uWh"})
|
||||||
|
),
|
||||||
|
),
|
||||||
request_body(
|
request_body(
|
||||||
content = ProfileCreate,
|
content = ProfileCreate,
|
||||||
examples(
|
examples(
|
||||||
@ -169,7 +176,12 @@ pub async fn profile_create() {}
|
|||||||
put,
|
put,
|
||||||
path = "/v2/profiles/{profile_id}",
|
path = "/v2/profiles/{profile_id}",
|
||||||
params(
|
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(
|
request_body(
|
||||||
content = ProfileCreate,
|
content = ProfileCreate,
|
||||||
@ -276,7 +288,12 @@ pub async fn routing_update_default_config() {}
|
|||||||
get,
|
get,
|
||||||
path = "/v2/profiles/{profile_id}",
|
path = "/v2/profiles/{profile_id}",
|
||||||
params(
|
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(
|
responses(
|
||||||
(status = 200, description = "Profile Updated", body = ProfileResponse),
|
(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",
|
path = "/v2/profiles/{profile_id}/connector_accounts",
|
||||||
params(
|
params(
|
||||||
("profile_id" = String, Path, description = "The unique identifier for the business profile"),
|
("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(
|
responses(
|
||||||
(status = 200, description = "Merchant Connector list retrieved successfully", body = Vec<MerchantConnectorResponse>),
|
(status = 200, description = "Merchant Connector list retrieved successfully", body = Vec<MerchantConnectorResponse>),
|
||||||
|
|||||||
Reference in New Issue
Block a user