blob: 3836981e14aa846efd0c0d4f669c583a9dd9a19f [file] [log] [blame]
Nils Diewalda31a5152015-04-17 21:05:23 +00001% layout 'main', title => 'KorAP: Application Programming Interface';
2
Akron9490e3b2019-10-17 12:26:29 +02003%= page_title
Nils Diewalda31a5152015-04-17 21:05:23 +00004
Akron07d166a2019-07-17 17:21:29 +02005<p>Internally the communication between KorAP components is done using the KoralQuery protocol.
Akron9490e3b2019-10-17 12:26:29 +02006 The specification for KoralQuery is available on <%= ext_link_to 'GitHub', "http://korap.github.io/Koral" %>.
Akron07d166a2019-07-17 17:21:29 +02007 All API endpoints either use KoralQuery or are (more or lest) REST-ful web APIs.</p>
Nils Diewalda31a5152015-04-17 21:05:23 +00008
Helge23f7abd2024-02-27 16:35:15 +01009<p>All publicly available API endpoints (partially experimental) including their requests and responses are described in the <%= ext_link_to 'GitHub Wiki', "https://github.com/KorAP/Kustvakt/wiki" %> of <%= embedded_link_to 'doc', 'Kustvakt', 'korap', 'kustvakt' %>.</p>
Akron07d8de62020-02-04 17:45:40 +010010
Akron8a21b4d2020-04-16 16:17:42 +020011% my $api_url = $c->url_for('proxy' => (apiv => $Kalamar::API_VERSION))->to_abs->scheme('https');
12% $api_url->path->trailing_slash(1);
Helge23f7abd2024-02-27 16:35:15 +010013
14%if ($c->app->config('Kalamar')->{openapi}) {
15<p id="openapi">
16% my $openapi= $api_url->to_abs;
17% $openapi->path->merge($c->app->config('Kalamar')->{openapi})->trailing_slash(1);
18The OpenAPI documentation is described <%= ext_link_to 'here', $openapi %>.
19</p>
20% }
21
Akron07d8de62020-02-04 17:45:40 +010022<p>The root service can be found at <code id="api-service-uri"><%= $api_url %></code>.</p>