Add OpenAPI to documentation

Change-Id: I49a372d346bdea68dfae3e169bd62822a0259218
diff --git a/t/doc.t b/t/doc.t
index af5c2b0..4d5cd70 100644
--- a/t/doc.t
+++ b/t/doc.t
@@ -127,6 +127,13 @@
   ->status_is(200)
   ->text_is('#api-service-uri', 'https://korap.ids-mannheim.de/test/api/v1.0/');
 
+# Set openapi path
+$app->config('Kalamar')->{openapi} = '/api/v1.0/openapi/';
+
+# Check openapi endpoint
+$t->get_ok('/doc/api' => { 'X-Forwarded-Host' => 'korap.ids-mannheim.de' })
+  ->status_is(200)
+  ->element_exists('#openapi > a[href="https://korap.ids-mannheim.de/api/v1.0/openapi/"]');
 
 # Languages of dev pages
 $t->get_ok('/doc/development/kalamar')