Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue#14: adds mkdocs to the RATE API #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rates/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Rates API Docs

The Documentation of other APIs goes here..
19 changes: 19 additions & 0 deletions rates/docs/rate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# RATE API

The rate API is returns the BTC/USD, or other pair rate as a single value.

### Request

`GET /rate?pair=btcinr`

curl -i -H 'Accept: application/json' http://localhost:8000/rate?pair=btcinr

### Response

HTTP/1.1 200 OK
date: Sun, 19 Nov 2023 07:47:00 GMT
server: uvicorn
content-length: 21
content-type: application/json

{"rate":"123.46"}
6 changes: 6 additions & 0 deletions rates/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
site_name: Rates
site_url: https://example.com/
nav:
- Home: index.md
- Rate API: rate.md

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ uvicorn==0.20.0
aiofiles==22.1.0
aiohttp==3.8.5
requests==2.31.0
mkdocs