Update API documentation and configuration files

- Changed the base URL in the introduction documentation from `http://localhost:8000` to `https://finance.truncgil.com` for accurate API access.
- Updated the `.filehashes` to reflect changes in the `intro.md` file.
- Modified API endpoint responses to return a 404 status with a more user-friendly error message: "Data not found" instead of "Currency not found".
- Revised example values for `currencyName` and `goldName` in the API documentation to improve clarity and usability.
- Added a new Nginx configuration file to set up server parameters for the application.
- Adjusted file permissions for various `.gitignore` files to enhance security.

These changes improve the accuracy of the API documentation and enhance the overall user experience when interacting with the API.
This commit is contained in:
Ümit Tunç
2025-01-20 22:12:03 +03:00
parent df5a21efa7
commit 5283c8aac9
16 changed files with 50 additions and 26 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# GENERATED. YOU SHOULDN'T MODIFY OR DELETE THIS FILE. # GENERATED. YOU SHOULDN'T MODIFY OR DELETE THIS FILE.
# Scribe uses this file to know when you change something manually in your docs. # Scribe uses this file to know when you change something manually in your docs.
.scribe/intro.md=5ba4520f0a0f744a7aceda778b683bb0 .scribe/intro.md=731671c57601ba874fec492fc1cf37ad
.scribe/auth.md=9bee2b1ef8a238b2e58613fa636d5f39 .scribe/auth.md=9bee2b1ef8a238b2e58613fa636d5f39
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -3,7 +3,7 @@
Daily Financial Data: Provides access to real-time financial data updated through the Truncgil API, allowing users to track the daily performance of currency exchange rates and cryptocurrencies. Daily Financial Data: Provides access to real-time financial data updated through the Truncgil API, allowing users to track the daily performance of currency exchange rates and cryptocurrencies.
<aside> <aside>
<strong>Base URL</strong>: <code>http://localhost:8000</code> <strong>Base URL</strong>: <code>https://finance.truncgil.com</code>
</aside> </aside>
This documentation aims to provide all the information you need to work with our API. This documentation aims to provide all the information you need to work with our API.
Regular → Executable
View File
+24
View File
@@ -0,0 +1,24 @@
server {
listen 80;
add_header Content-Security-Policy "upgrade-insecure-requests";
index index.php index.html;
server_name localhost;
root /var/www/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
proxy_set_header X-Forwarded-Proto $scheme;
include fastcgi_params;
fastcgi_pass app:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
View File
View File
View File
View File
View File
Regular → Executable
View File