From 278785cde1e2ec0b294385855e31bbef59cf3cda Mon Sep 17 00:00:00 2001 From: Fenris Wolf Date: Thu, 25 Sep 2025 16:53:06 +0200 Subject: [PATCH] [fix] http/rest invocations --- source/api/functions.ts | 6 +++--- source/api/transformations/datetime.ts | 6 +++--- source/main.ts | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source/api/functions.ts b/source/api/functions.ts index 28ebbe2..34d29d4 100644 --- a/source/api/functions.ts +++ b/source/api/functions.ts @@ -5,9 +5,9 @@ namespace _zeitbild.api /** */ export function make( - ) : lib_plankton.rest.type_rest + ) : lib_plankton.rest_http.type_rest { - const rest_subject : lib_plankton.rest.type_rest = lib_plankton.rest.make( + const rest_subject : lib_plankton.rest_http.type_rest = lib_plankton.rest_http.make( { "title": "zeitbild", "versioning_method": "header", @@ -15,7 +15,7 @@ namespace _zeitbild.api "set_access_control_headers": true, "authentication": { "kind": "key_header", - "parameters": {"name": "X-Session-Key"} + "data": {"name": "X-Session-Key"} }, } ); diff --git a/source/api/transformations/datetime.ts b/source/api/transformations/datetime.ts index bb2a51d..bc47058 100644 --- a/source/api/transformations/datetime.ts +++ b/source/api/transformations/datetime.ts @@ -8,7 +8,7 @@ namespace _zeitbild.api options : { nullable ?: boolean; } = {} - ) : lib_plankton.rest.type_oas_schema + ) : lib_plankton.rest_http.type_oas_schema { options = Object.assign( { @@ -49,7 +49,7 @@ namespace _zeitbild.api options : { nullable ?: boolean; } = {} - ) : lib_plankton.rest.type_oas_schema + ) : lib_plankton.rest_http.type_oas_schema { options = Object.assign( { @@ -90,7 +90,7 @@ namespace _zeitbild.api options : { nullable ?: boolean; } = {} - ) : lib_plankton.rest.type_oas_schema + ) : lib_plankton.rest_http.type_oas_schema { options = Object.assign( { diff --git a/source/main.ts b/source/main.ts index 0cf97b0..999e3e6 100644 --- a/source/main.ts +++ b/source/main.ts @@ -383,11 +383,11 @@ async function main( } case "api-doc": { lib_plankton.log.set_main_logger([]); - const rest_subject : lib_plankton.rest.type_rest = _zeitbild.api.make(); + const rest_subject : lib_plankton.rest_http.type_rest = _zeitbild.api.make(); lib_plankton.log.conf_pop(); process.stdout.write( JSON.stringify( - lib_plankton.rest.to_oas(rest_subject), + lib_plankton.rest_http.to_oas(rest_subject), undefined, "\t" ) @@ -439,11 +439,11 @@ async function main( await _zeitbild.auth.init(); - const rest_subject : lib_plankton.rest.type_rest = _zeitbild.api.make(); + const rest_subject : lib_plankton.rest_http.type_rest = _zeitbild.api.make(); const server : lib_plankton.server.type_subject = lib_plankton.server.make( async (input, metadata) => { const http_request : lib_plankton.http.type_request = lib_plankton.http.decode_request(input.toString()); - const http_response : lib_plankton.http.type_response = await lib_plankton.rest.call( + const http_response : lib_plankton.http.type_response = await lib_plankton.rest_http.call( rest_subject, http_request, {