Update endpoint responses and configuration for currency, gold, and crypto rates

- Updated response content for endpoints to reflect current rates as of September 15, 2025, including changes in currency and gold prices.
- Modified example values for URL parameters to improve clarity and consistency.
- Changed the theme configuration in the Scribe documentation from 'elements' to 'scalar' for better presentation.
- Refactored the HTML structure in the Scribe index view to streamline the layout and improve accessibility.

These changes collectively enhance the accuracy and usability of the API documentation and responses in the Truncgil Finance application.
This commit is contained in:
Ümit Tunç
2025-09-15 11:14:02 -03:00
parent 15abebe9ed
commit be9d6e3687
12 changed files with 35 additions and 74 deletions
+10 -49
View File
@@ -1,62 +1,23 @@
<!-- See https://github.com/stoplightio/elements/blob/main/docs/getting-started/elements/elements-options.md for config -->
<!doctype html>
<html lang="en" class="dark">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Truncgil Finance</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">
<meta charset="utf-8"/>
<meta
name="viewport"
content="width=device-width, initial-scale=1"/>
<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;
margin: 0;
}
</style>
</head>
<body>
<elements-api
apiDescriptionUrl="{{ route("scribe.openapi") }}"
router="hash"
layout="responsive"
appearance="auto"
hideTryIt=""
logo="img/logo-light.svg"
/>
<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
id="api-reference"
data-url="{{ route("scribe.openapi") }}">
</script>
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
</body>
</html>