Compare commits
2 Commits
a417563ab5
...
f5b3c2bb11
| Author | SHA1 | Date | |
|---|---|---|---|
| f5b3c2bb11 | |||
| 3da419fed5 |
@@ -315,15 +315,15 @@ def _seed_data():
|
|||||||
global _parents_next_id, _vets_next_id, _treatments_next_id
|
global _parents_next_id, _vets_next_id, _treatments_next_id
|
||||||
global _pets_next_id, _appointments_next_id
|
global _pets_next_id, _appointments_next_id
|
||||||
|
|
||||||
_parents[1] = Parent(id=1, name="Alice Johnson", email="alice@example.com", phone="555-0101", metadata=meta)
|
_parents[1] = Parent(id=1, name="Alice Johnson", email="alice@example.com", phone="5550101", metadata=meta)
|
||||||
_parents[2] = Parent(id=2, name="Bob Smith", email="bob@example.com", phone="555-0102", metadata=meta)
|
_parents[2] = Parent(id=2, name="Bob Smith", email="bob@example.com", phone="5550102", metadata=meta)
|
||||||
_parents[3] = Parent(id=3, name="Carol Williams", email="carol@example.com", phone="555-0103", metadata=meta)
|
_parents[3] = Parent(id=3, name="Carol Williams", email="carol@example.com", phone="5550103", metadata=meta)
|
||||||
_parents[4] = Parent(id=4, name="Dave Brown", email="dave@example.com", phone="555-0104", metadata=meta)
|
_parents[4] = Parent(id=4, name="Dave Brown", email="dave@example.com", phone="5550104", metadata=meta)
|
||||||
_parents_next_id = 5
|
_parents_next_id = 5
|
||||||
|
|
||||||
_vets[1] = Vet(id=1, name="Sarah Connor", specialty="Surgery", email="sarah@clinic.com", phone="555-0201", metadata=meta)
|
_vets[1] = Vet(id=1, name="Sarah Connor", specialty="Surgery", email="sarah@clinic.com", phone="5550201", metadata=meta)
|
||||||
_vets[2] = Vet(id=2, name="James Wilson", specialty="Dentistry", email="james@clinic.com", phone="555-0202", metadata=meta)
|
_vets[2] = Vet(id=2, name="James Wilson", specialty="Dentistry", email="james@clinic.com", phone="5550202", metadata=meta)
|
||||||
_vets[3] = Vet(id=3, name="Emily Davis", specialty="General Practice", email="emily@clinic.com", phone="555-0203", metadata=meta)
|
_vets[3] = Vet(id=3, name="Emily Davis", specialty="General Practice", email="emily@clinic.com", phone="5550203", metadata=meta)
|
||||||
_vets_next_id = 4
|
_vets_next_id = 4
|
||||||
|
|
||||||
_treatments[1] = Treatment(id=1, label="Annual Checkup", description="Full physical examination", metadata=meta)
|
_treatments[1] = Treatment(id=1, label="Annual Checkup", description="Full physical examination", metadata=meta)
|
||||||
|
|||||||
@@ -31,10 +31,12 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
x-order: 1
|
x-order: 1
|
||||||
x-label: "Procedure Name"
|
x-label: "Procedure Name"
|
||||||
|
x-autocomplete: token
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
x-order: 2
|
x-order: 2
|
||||||
x-label: "Description"
|
x-label: "Description"
|
||||||
|
x-autocomplete: text
|
||||||
cost:
|
cost:
|
||||||
type: number
|
type: number
|
||||||
format: float
|
format: float
|
||||||
@@ -223,6 +225,7 @@ components:
|
|||||||
x-description: "Parent's full name"
|
x-description: "Parent's full name"
|
||||||
x-filterable: true
|
x-filterable: true
|
||||||
x-sortable: true
|
x-sortable: true
|
||||||
|
x-autocomplete: token
|
||||||
email:
|
email:
|
||||||
type: string
|
type: string
|
||||||
format: email
|
format: email
|
||||||
@@ -230,12 +233,14 @@ components:
|
|||||||
x-label: "Email"
|
x-label: "Email"
|
||||||
x-description: "Email address"
|
x-description: "Email address"
|
||||||
x-filterable: true
|
x-filterable: true
|
||||||
|
x-autocomplete: email
|
||||||
phone:
|
phone:
|
||||||
type: string
|
type: string
|
||||||
x-order: 3
|
x-order: 3
|
||||||
x-label: "Phone"
|
x-label: "Phone"
|
||||||
x-description: "Contact phone number"
|
x-description: "Contact phone number"
|
||||||
x-filterable: true
|
x-filterable: true
|
||||||
|
x-autocomplete: phone
|
||||||
metadata:
|
metadata:
|
||||||
$ref: '#/components/schemas/Metadata'
|
$ref: '#/components/schemas/Metadata'
|
||||||
x-order: 4
|
x-order: 4
|
||||||
@@ -261,12 +266,14 @@ components:
|
|||||||
x-description: "Veterinarian's full name"
|
x-description: "Veterinarian's full name"
|
||||||
x-filterable: true
|
x-filterable: true
|
||||||
x-sortable: true
|
x-sortable: true
|
||||||
|
x-autocomplete: token
|
||||||
specialty:
|
specialty:
|
||||||
type: string
|
type: string
|
||||||
x-order: 2
|
x-order: 2
|
||||||
x-label: "Specialty"
|
x-label: "Specialty"
|
||||||
x-description: "Area of specialization"
|
x-description: "Area of specialization"
|
||||||
x-filterable: true
|
x-filterable: true
|
||||||
|
x-autocomplete: token
|
||||||
email:
|
email:
|
||||||
type: string
|
type: string
|
||||||
format: email
|
format: email
|
||||||
@@ -274,11 +281,13 @@ components:
|
|||||||
x-label: "Email"
|
x-label: "Email"
|
||||||
x-description: "Email address"
|
x-description: "Email address"
|
||||||
x-filterable: true
|
x-filterable: true
|
||||||
|
x-autocomplete: email
|
||||||
phone:
|
phone:
|
||||||
type: string
|
type: string
|
||||||
x-order: 4
|
x-order: 4
|
||||||
x-label: "Phone"
|
x-label: "Phone"
|
||||||
x-description: "Contact phone number"
|
x-description: "Contact phone number"
|
||||||
|
x-autocomplete: phone
|
||||||
metadata:
|
metadata:
|
||||||
$ref: '#/components/schemas/Metadata'
|
$ref: '#/components/schemas/Metadata'
|
||||||
x-order: 5
|
x-order: 5
|
||||||
@@ -304,11 +313,13 @@ components:
|
|||||||
x-description: "Name of the treatment"
|
x-description: "Name of the treatment"
|
||||||
x-filterable: true
|
x-filterable: true
|
||||||
x-sortable: true
|
x-sortable: true
|
||||||
|
x-autocomplete: token
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
x-order: 2
|
x-order: 2
|
||||||
x-label: "Description"
|
x-label: "Description"
|
||||||
x-description: "Detailed description of the treatment"
|
x-description: "Detailed description of the treatment"
|
||||||
|
x-autocomplete: text
|
||||||
metadata:
|
metadata:
|
||||||
$ref: '#/components/schemas/Metadata'
|
$ref: '#/components/schemas/Metadata'
|
||||||
x-order: 4
|
x-order: 4
|
||||||
@@ -334,6 +345,7 @@ components:
|
|||||||
x-description: "Name of the pet"
|
x-description: "Name of the pet"
|
||||||
x-filterable: true
|
x-filterable: true
|
||||||
x-sortable: true
|
x-sortable: true
|
||||||
|
x-autocomplete: token
|
||||||
species:
|
species:
|
||||||
type: string
|
type: string
|
||||||
enum: [dog, cat, bird]
|
enum: [dog, cat, bird]
|
||||||
@@ -410,6 +422,7 @@ components:
|
|||||||
x-order: 2
|
x-order: 2
|
||||||
x-label: "Notes"
|
x-label: "Notes"
|
||||||
x-description: "Any additional notes"
|
x-description: "Any additional notes"
|
||||||
|
x-autocomplete: text
|
||||||
procedures:
|
procedures:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|||||||
Reference in New Issue
Block a user