38 lines
674 B
TypeScript
38 lines
674 B
TypeScript
![]() |
|
||
|
namespace _zeitbild.api
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
*/
|
||
|
export function make(
|
||
|
) : lib_plankton.rest.type_rest
|
||
|
{
|
||
|
const rest_subject : lib_plankton.rest.type_rest = lib_plankton.rest.make(
|
||
|
{
|
||
|
"title": "zeitbild",
|
||
|
"versioning_method": "header",
|
||
|
"versioning_header_name": "X-Api-Version",
|
||
|
"set_access_control_headers": true,
|
||
|
"authentication": {
|
||
|
"kind": "key_header",
|
||
|
"parameters": {"name": "X-Session-Key"}
|
||
|
},
|
||
|
}
|
||
|
);
|
||
|
// meta
|
||
|
{
|
||
|
_zeitbild.api.register_meta_ping(rest_subject);
|
||
|
_zeitbild.api.register_meta_spec(rest_subject);
|
||
|
}
|
||
|
// calendar
|
||
|
{
|
||
|
_zeitbild.api.register_calendar_list(rest_subject);
|
||
|
}
|
||
|
|
||
|
|
||
|
return rest_subject;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|