fapi/js/index.html

24 lines
586 B
HTML
Raw Normal View History

2024-10-23 12:20:21 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FastAPI Persons Example</title>
</head>
<body>
<h1>Persons Management</h1>
<h2>Create Person</h2>
<form id="create-person-form">
<input type="text" id="name" placeholder="Name" required>
<input type="number" id="age" placeholder="Age" required>
<button type="submit">Create Person</button>
</form>
<h2>Get Persons</h2>
<button id="fetch-persons">Fetch Persons</button>
<div id="persons-list"></div>
<script src="script.js"></script>
</body>
</html>