[fix] http/rest invocations
This commit is contained in:
parent
3d7ba02b78
commit
278785cde1
|
|
@ -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"}
|
||||
},
|
||||
}
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue