Skip to content

Commit

Permalink
update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
clauyan committed Nov 22, 2024
1 parent d8c4fe2 commit 006bb8c
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 28 deletions.
162 changes: 135 additions & 27 deletions loadtest/api-client/openapispec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,65 @@
"security": [{ "oauth2": ["openid"] }, { "bearer": [] }]
}
},
"/api/organisationen/{organisationId}/enable-for-its-learning": {
"put": {
"operationId": "OrganisationController_enableForitslearning",
"parameters": [
{
"name": "organisationId",
"required": true,
"in": "path",
"description": "The id of an organization",
"schema": { "nullable": false, "type": "string" }
}
],
"responses": {
"200": {
"description": "The organization was successfully enabled for itslearning.",
"headers": {
"X-Paging-Offset": {
"description": "The offset of the first item from the list. List starts with index 0."
},
"X-Paging-Limit": {
"description": "The maximum amount of items returned in one request."
},
"X-Paging-Total": {
"description": "The total amount of items in the list."
},
"X-Paging-pageTotal": {
"description": "The total amount of items in the paginated list."
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OrganisationResponseLegacy"
}
}
}
},
"400": {
"description": "The organisation could not be modified.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DbiamOrganisationError"
}
}
}
},
"401": {
"description": "Not authorized to modify the organisation."
},
"403": { "description": "Not permitted to modify the organisation." },
"500": {
"description": "Internal server error while modifying the organisation."
}
},
"tags": ["organisationen"],
"security": [{ "oauth2": ["openid"] }, { "bearer": [] }]
}
},
"/api/rolle": {
"get": {
"operationId": "RolleController_findRollen",
Expand Down Expand Up @@ -1633,7 +1692,14 @@
}
}
},
"400": { "description": "The input was not valid." },
"400": {
"description": "The input was not valid.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/DbiamRolleError" }
}
}
},
"401": { "description": "Not authorized to create the rolle." },
"403": {
"description": "Insufficient permissions to create the rolle."
Expand Down Expand Up @@ -2891,6 +2957,28 @@
"security": [{ "oauth2": ["openid"] }, { "bearer": [] }]
}
},
"/api/cron/unlock": {
"put": {
"operationId": "CronController_unlockUsersWithExpiredLocks",
"parameters": [],
"responses": {
"200": {
"description": "The users were successfully unlocked.",
"content": {
"application/json": { "schema": { "type": "boolean" } }
}
},
"401": { "description": "Not authorized to unlock users." },
"403": { "description": "Insufficient permissions to unlock users." },
"404": { "description": "Insufficient permissions to unlock users." },
"500": {
"description": "Internal server error while trying to unlock users."
}
},
"tags": ["cron"],
"security": [{ "oauth2": ["openid"] }, { "bearer": [] }]
}
},
"/api/import/upload": {
"post": {
"operationId": "ImportController_uploadFile",
Expand Down Expand Up @@ -3013,6 +3101,14 @@
"tags": ["import"],
"security": [{ "oauth2": ["openid"] }, { "bearer": [] }]
}
},
"/api/status": {
"get": {
"operationId": "StatusController_getStatus",
"parameters": [],
"responses": { "200": { "description": "" } },
"tags": ["status"]
}
}
},
"info": {
Expand Down Expand Up @@ -3281,7 +3377,8 @@
"organisation": {
"$ref": "#/components/schemas/CreatedPersonenkontextOrganisation"
},
"roleName": { "type": "string", "nullable": true },
"rollenart": { "type": "string", "nullable": true },
"rollenname": { "type": "string", "nullable": true },
"personenstatus": {
"type": "string",
"enum": ["AKTIV"],
Expand Down Expand Up @@ -3319,7 +3416,8 @@
"referrer",
"mandant",
"organisation",
"roleName",
"rollenart",
"rollenname",
"personenstatus",
"jahrgangsstufe",
"sichtfreigabe",
Expand Down Expand Up @@ -3561,7 +3659,12 @@
"$ref": "#/components/schemas/Vertrauensstufe"
},
"revision": { "type": "string" },
"personalnummer": { "type": "string", "nullable": true }
"personalnummer": { "type": "string", "nullable": true },
"dienststellen": {
"nullable": true,
"type": "array",
"items": { "type": "string" }
}
},
"required": [
"id",
Expand All @@ -3574,7 +3677,8 @@
"lokalisierung",
"vertrauensstufe",
"revision",
"personalnummer"
"personalnummer",
"dienststellen"
]
},
"PersonInfoResponse": {
Expand Down Expand Up @@ -3628,6 +3732,7 @@
"kuerzel": { "type": "string" },
"typ": { "$ref": "#/components/schemas/OrganisationsTyp" },
"traegerschaft": { "$ref": "#/components/schemas/TraegerschaftTyp" },
"itslearningEnabled": { "type": "boolean" },
"version": { "type": "number" }
},
"required": [
Expand All @@ -3639,6 +3744,7 @@
"kuerzel",
"typ",
"traegerschaft",
"itslearningEnabled",
"version"
]
},
Expand Down Expand Up @@ -3913,6 +4019,28 @@
"version"
]
},
"DbiamRolleError": {
"type": "object",
"properties": {
"i18nKey": {
"type": "string",
"enum": [
"ROLLE_ERROR",
"ADD_SYSTEMRECHT_ERROR",
"ROLLE_HAT_PERSONENKONTEXTE_ERROR",
"UPDATE_MERKMALE_ERROR",
"ROLLENNAME_ENTHAELT_LEERZEICHEN",
"NEWER_VERSION_OF_ROLLE_AVAILABLE",
"ROLLE_NAME_UNIQUE_ON_SSK"
]
},
"code": {
"type": "number",
"description": "Corresponds to HTTP Status code like 200, 404, 500"
}
},
"required": ["i18nKey", "code"]
},
"AddSystemrechtBodyParams": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -4009,27 +4137,6 @@
"version"
]
},
"DbiamRolleError": {
"type": "object",
"properties": {
"i18nKey": {
"type": "string",
"enum": [
"ROLLE_ERROR",
"ADD_SYSTEMRECHT_ERROR",
"ROLLE_HAT_PERSONENKONTEXTE_ERROR",
"UPDATE_MERKMALE_ERROR",
"ROLLENNAME_ENTHAELT_LEERZEICHEN",
"NEWER_VERSION_OF_ROLLE_AVAILABLE"
]
},
"code": {
"type": "number",
"description": "Corresponds to HTTP Status code like 200, 404, 500"
}
},
"required": ["i18nKey", "code"]
},
"PersonResponseAutomapper": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -4502,7 +4609,8 @@
"CSV_PARSING_ERROR",
"CSV_FILE_EMPTY_ERROR",
"IMPORT_TEXT_FILE_CREATION_ERROR",
"IMPORT_NUR_LERN_AN_SCHULE_ERROR"
"IMPORT_NUR_LERN_AN_SCHULE_ERROR",
"CSV_FILE_INVALID_HEADER_ERROR"
]
},
"code": {
Expand Down
1 change: 0 additions & 1 deletion loadtest/util/users.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { SharedArray } from "k6/data";
import { RollenArt } from "../api-client/generated/index.ts";
import { prettyLog } from "./debug.ts";

const DATAPATH = "../data/users.json";

Expand Down

0 comments on commit 006bb8c

Please sign in to comment.