30dd0c5b8d
- Implemented a custom throttle middleware to limit requests to 2 per 30 seconds, enhancing API stability. - Updated API responses to include Turkish messages for successful updates and error handling. - Refactored the CurrencyController to integrate the new throttling logic and improve response clarity. - Enhanced the Scribe documentation to reflect changes in API behavior and response formats. - Updated views to improve branding and user experience, including dynamic content adjustments. These changes collectively improve the API's performance, usability, and branding for the Truncgil Finance application.
69 lines
2.1 KiB
PHP
69 lines
2.1 KiB
PHP
<!-- See https://github.com/stoplightio/elements/blob/main/docs/getting-started/elements/elements-options.md for config -->
|
|
<!doctype html>
|
|
<html lang="en" class="dark">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>{!! $metadata['title'] !!}</title>
|
|
<!-- Embed elements Elements via Web Component -->
|
|
<script src="https://unpkg.com/@stoplight/elements@9.0.0/web-components.min.js"></script>
|
|
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements@9.0.0/styles.min.css">
|
|
<style>
|
|
body {
|
|
height: 100vh;
|
|
}
|
|
|
|
elements-api {
|
|
--elements-border-radius: 6px;
|
|
}
|
|
|
|
.sl-inline img {
|
|
width: 400px;
|
|
margin: 0 auto;
|
|
display: block;
|
|
}
|
|
|
|
.sl-prose p {
|
|
font-size: var(--fs-paragraph);
|
|
margin-bottom: 1em;
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.sl-text-base {
|
|
font-size: 16px;
|
|
}
|
|
|
|
h4.sl-text-paragraph.sl-leading-snug.sl-font-prose.sl-font-semibold.sl-text-heading {
|
|
display: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<elements-api
|
|
@foreach($htmlAttributes as $attribute => $value)
|
|
{{-- Attributes specified first override later ones --}}
|
|
{!! $attribute !!}="{!! $value !!}"
|
|
@endforeach
|
|
apiDescriptionUrl="{!! $metadata['openapi_spec_url'] !!}"
|
|
router="hash"
|
|
layout="responsive"
|
|
appearance="auto"
|
|
hideTryIt="{!! ($tryItOut['enabled'] ?? true) ? '' : 'true'!!}"
|
|
@if(!empty($metadata['logo']))
|
|
logo="{!! $metadata['logo'] !!}"
|
|
@endif
|
|
/>
|
|
|
|
<script>
|
|
setTimeout(function() {
|
|
const linkElement = document.querySelector('a.sl-flex.sl-items-center.sl-px-4.sl-py-3.sl-border-t');
|
|
if (linkElement) {
|
|
linkElement.href = "https://truncgil.com"; // Yeni URL'yi buraya ekleyin
|
|
linkElement.innerHTML = '<img src="https://truncgil.com.tr/yatay.svg" width="100" alt="Truncgil Teknoloji">'; // Resim URL'sini ve alternatif metni buraya ekleyin
|
|
}
|
|
}, 1000); // 1 saniye gecikme
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|