forked from geonetwork/core-geonetwork
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INSPIRE / Validation / Add API usage.
When using the JRC INSPIRE validator, users can follow their API usage and check if the quota of request is over or not. The usage API return the number of validation per day. Usage seems to not be updated right after triggering validation, and the API reflect the usage after some time.
- Loading branch information
1 parent
7cb1dd0
commit fe74691
Showing
5 changed files
with
93 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
web-ui/src/main/resources/catalog/components/utility/partials/inspireapiusage.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div data-ng-show="inspireApiUsage"> | ||
<span data-translate="">inspireApiQuotaCurrentValue</span><br /> | ||
<span data-ng-if="!inspireApiUsage.body.items">{{inspireApiUsage.body}}</span> | ||
|
||
<ul data-ng-if="inspireApiUsage.body.items"> | ||
<li data-ng-repeat="date in inspireApiUsage.body.items"> | ||
<span>{{date.date}}:</span> | ||
<span data-translate="">inspireApiQuotaValidation</span> | ||
<span>{{date.uses}}</span> | ||
<span> / </span> | ||
<span data-translate="">inspireApiQuotaRemaining</span> | ||
<span>{{date.remaining_uses}}</span> | ||
</li> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters