Skip to content

Commit

Permalink
Add link to API usage policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Phu2 committed Sep 19, 2023
1 parent 0daf7f3 commit 6c50d7a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/api.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
}

@main("*", scripts = hypothesisEmbed) {
<div id="usage-policy" class="alert alert-info" role="alert">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
@Html(@Messages.get("api.usage.policy", "https://lobid.org/usage-policy/"))
</div>
<h2 id="basics">@Messages.get("api.basics.header") <small><a href="#basics"><span class="glyphicon glyphicon-link"></span></a></small></h2>
<dl>
@desc("HTTP GET", routes.Application.get("DE-6", format="json"))
Expand Down
1 change: 1 addition & 0 deletions conf/messages.de
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ search.position_sort = In Ihrer Nähe

# api

api.usage.policy = Technische und sonstige Hinweise zur lobid-Nutzung finden sich in den <a class="alert-link href="{0}">Richtlinien zur API-Nutzung</>.
api.basics.header = API-Grundlagen
api.basics.search = Suche über alle Felder
api.basics.pagination = Suche mit Paginierung
Expand Down
1 change: 1 addition & 0 deletions conf/messages.en
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ search.position_sort = Close to you

# api

api.usage.policy = Technical and other guidance on the usage of lobid can be found in the <a class="alert-link href="{0}">API Usage Guidelines</a>.
api.basics.header = API basics
api.basics.search = Query all fields
api.basics.pagination = Query with pagination
Expand Down
9 changes: 9 additions & 0 deletions public/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,12 @@ small {
color: blue;
z-index: 100 !important;
}

#usage-policy {
margin-top: 20px;
/*
setting standard background-color for .alert-info
https://getbootstrap.com/docs/3.3/components/#alerts
*/
background-color: #d9edf7;
}

0 comments on commit 6c50d7a

Please sign in to comment.