Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

feat: add date of birth to authors #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/services/authors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type AuthorRequest = Static<typeof AuthorRequest>;
export const AuthorResponse = Type.Object({
id: Type.String(),
name: Type.String(),
date_of_birth: Type.Optional(Type.String()),
created_at: Type.String(),
updated_at: Type.String(),
});
Expand All @@ -18,24 +19,28 @@ const Authors: AuthorResponse[] = [
{
id: "6nTxAFM5ck4Hob77hGQoL",
name: "Jane Austen",
date_of_birth: "1775-12-16T12:00:00.000Z",
created_at: "2023-04-22T17:17:41.326Z",
updated_at: "2023-04-22T17:17:41.326Z",
},
{
id: "NjpTwgmENj11rGdUgpCQ9",
name: "F. Scott Fitzgerald",
date_of_birth: "1896-09-24T12:00:00.000Z",
created_at: "2023-03-22T10:11:51.421Z",
updated_at: "2023-03-22T10:11:51.421Z",
},
{
id: "AcSwiQryWBeQqcNBqBg43",
name: "Harper Lee",
date_of_birth: "1926-04-28T12:00:00.000Z",
created_at: "2023-04-01T07:11:01.701Z",
updated_at: "2023-04-01T07:11:01.701Z",
},
{
id: "tNpOpQZbxytxTxDT15GQy",
name: "George Orwell",
date_of_birth: "1903-06-25T12:00:00.000Z",
created_at: "2023-03-11T21:19:08.600Z",
updated_at: "2023-03-11T21:19:08.600Z",
},
Expand Down