Skip to content

Commit

Permalink
Update openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf authored and github-actions[bot] committed Sep 25, 2024
1 parent e532192 commit a9e8903
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 5 deletions.
3 changes: 2 additions & 1 deletion infra/apim_v2/api/ms_internal_api/v1/openapi.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@
"tags": [
"User"
],
"summary": "Update user status with optional filter for institution, product, role and productRole",
"summary": "Update a user's product status with optional filters",
"description": "Update user status with optional filter for institution, product, role and productRole",
"operationId": "updateUserStatusUsingPUT",
"parameters": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@
"tags": [
"Institution"
],
"summary": "The API retrieves user's info including details of roles on products",
"summary": "Retrieve user's information including product role details",
"description": "Fetches detailed information about users associated with a specific institution, including their roles on various products. This endpoint is useful for administrators to obtain comprehensive user-role mappings within an institution.",
"operationId": "getInstitutionUsersUsingGET",
"parameters": [
{
Expand Down Expand Up @@ -355,7 +356,8 @@
"tags": [
"User"
],
"summary": "Retrieves user given userId and optional ProductId",
"summary": "Retrieve user information by userId and optional ProductId",
"description": "Retrieves user given userId and optional ProductId",
"operationId": "getUserInfoUsingGET",
"parameters": [
{
Expand Down
165 changes: 165 additions & 0 deletions infra/apim_v2/api_pnpg/external_api_for_pnpg/v2/openapi.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,99 @@
]
}
},
"/users/{id}": {
"get": {
"tags": [
"User"
],
"summary": "Retrieve user information by userId and optional ProductId",
"description": "Retrieves user given userId and optional ProductId",
"operationId": "getUserInfoUsingGET",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "institutionId",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "productId",
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem1"
}
}
}
},
"401": {
"description": "Not Authorized",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem1"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem1"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/Problem1"
}
}
}
}
},
"security": [
{
"bearerAuth": [
"global"
]
}
]
}
},
"/institutions": {
"get": {
"tags": [
Expand Down Expand Up @@ -1016,6 +1109,78 @@
}
}
},
"UserResponse": {
"required": [
"id",
"name",
"surname"
],
"type": "object",
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"taxCode": {
"type": "string"
},
"name": {
"pattern": "\\S",
"type": "string"
},
"surname": {
"pattern": "\\S",
"type": "string"
},
"email": {
"type": "string"
},
"workContacts": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"Problem1": {
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"instance": {
"type": "string"
},
"invalidParams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/InvalidParam1"
}
},
"status": {
"format": "int32",
"type": "integer"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"InvalidParam1": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"reason": {
"type": "string"
}
}
},
"InstitutionResource": {
"title": "InstitutionResource",
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
"tags": [
"Institution"
],
"summary": "The API retrieves user's info including details of roles on products",
"summary": "Retrieve user's information including product role details",
"description": "Fetches detailed information about users associated with a specific institution, including their roles on various products. This endpoint is useful for administrators to obtain comprehensive user-role mappings within an institution.",
"operationId": "getInstitutionUsersUsingGET",
"parameters": [
{
Expand Down Expand Up @@ -202,7 +203,8 @@
"tags": [
"User"
],
"summary": "Retrieves user given userId and optional ProductId",
"summary": "Retrieve user information by userId and optional ProductId",
"description": "Retrieves user given userId and optional ProductId",
"operationId": "getUserInfoUsingGET",
"parameters": [
{
Expand Down

0 comments on commit a9e8903

Please sign in to comment.