24 lines
586 B
HTML
24 lines
586 B
HTML
<!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>
|