Add note on api limits

This commit is contained in:
hunicus 2022-06-07 22:52:08 -04:00
parent 056a9980d6
commit ca3ca4557e
No known key found for this signature in database
GPG Key ID: 24837C51B6D81FD9
2 changed files with 10 additions and 1 deletions

View File

@ -34,7 +34,8 @@
<div class="doc-content">
<p class="hide-on-mobile no-bottom-space">Reference for the {{ network.val === '' ? 'Bitcoin' : network.val.charAt(0).toUpperCase() + network.val.slice(1) }} <ng-container i18n="api-docs.title">API service</ng-container>.</p>
<p class="api-note">Reference for the {{ network.val === '' ? 'Bitcoin' : network.val.charAt(0).toUpperCase() + network.val.slice(1) }} <ng-container i18n="api-docs.title">API service</ng-container>.</p>
<p class="api-note no-bottom-space">Note that we enforce rate limits. If you exceed these limits, you will get a polite error encouraging you to run your own Mempool instance. If you repeatedly exceed the limits, you may be banned from accessing the service altogether.</p>
<div class="doc-item-container" *ngFor="let item of restDocs">
<h3 *ngIf="( item.type === 'category' ) && ( item.showConditions.indexOf(network.val) > -1 )">{{ item.title }}</h3>

View File

@ -199,6 +199,10 @@ h3 {
@media (max-width: 992px) {
h3 {
margin: 1.5rem 0 0 0;
}
.hide-on-mobile {
display: none;
}
@ -237,6 +241,10 @@ h3 {
opacity: 0;
transition: 0.5s opacity ease;
}
.api-note {
font-size: 0.85rem;
}
}
@media (min-width: 992px) {