-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate veterinarians list api endpoint
- Loading branch information
Showing
14 changed files
with
55 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export const OWNERS = "owners"; | ||
export const PETS = "pets"; | ||
export const PET_TYPES = "pettypes"; | ||
export const VETERINARIANS = "vets"; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
spring-petclinic-reactjs-client/src/models/api/CreateOrEditOwnerPetData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { IApiPetType } from "@models/api/IApiPetType"; | ||
import { IApiEnumItem } from "@models/api/IApiEnumItem.ts"; | ||
import { PetFormSchema } from "@models/form/PetFormSchema"; | ||
import { EPetForm } from "@models/enums/EPetForm"; | ||
import { CreateParams } from "react-admin"; | ||
|
||
export interface CreateOrEditOwnerPetData extends CreateParams { | ||
meta: { ownerId: number }; | ||
data: Omit<PetFormSchema, EPetForm.PET_TYPE> & { petId?: number; type: IApiPetType }; | ||
data: Omit<PetFormSchema, EPetForm.PET_TYPE> & { petId?: number; type: IApiEnumItem }; | ||
} |
2 changes: 1 addition & 1 deletion
2
...ctjs-client/src/models/api/IApiPetType.ts → ...tjs-client/src/models/api/IApiEnumItem.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export interface IApiPetType { | ||
export interface IApiEnumItem { | ||
id: number; | ||
name: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { IApiPetType } from "@models/api/IApiPetType"; | ||
import { IApiEnumItem } from "@models/api/IApiEnumItem.ts"; | ||
|
||
export interface IApiPet { | ||
id: number; | ||
ownerId: number; | ||
name: string; | ||
birthDate: string; | ||
visits: []; | ||
type: IApiPetType; | ||
type: IApiEnumItem; | ||
} |
8 changes: 8 additions & 0 deletions
8
spring-petclinic-reactjs-client/src/models/api/IApiVeterinarian.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { IApiEnumItem } from "@models/api/IApiEnumItem.ts"; | ||
|
||
export interface IApiVeterinarian { | ||
id: number; | ||
firstName: string; | ||
lastName: string; | ||
specialties: IApiEnumItem[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function formatPersonFullName(firstName: string, lastName: string): string { | ||
return firstName + " " + lastName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters