Skip to content

Commit 654df7f

Browse files
committed
arthur: added a test api and venv/requirements.txt
1 parent 2249726 commit 654df7f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

a3_test_api/arthur_test_main.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Arthur Nguyen
2+
# Assignment 3, Exercise 3
3+
# test_main.py
4+
from fastapi import FastAPI
5+
6+
app = FastAPI()
7+
8+
@app.get("/")
9+
def read_root():
10+
return {"message": "Hello from your test API!"}
11+
12+
@app.get("/ping")
13+
def ping():
14+
return {"status": "ok"}

0 commit comments

Comments
 (0)