Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Create CRUD for member without DB #23

Merged
merged 7 commits into from
Jan 29, 2021

Conversation

khattakdev
Copy link
Member

@khattakdev khattakdev commented Jan 29, 2021

This is how Discord object looks like

export class CreateDiscordDto{
  id: number
   username: string;
   bio: {
      description: string;
      twitter: string;
      linkedin: string;
      github: string;
   };
   updatedOn: Date;
   createdOn: Date;
}

I've added id temporary, to track down objects for the update, single search, and deletion. Once we have a database, we can remove it, if we don't need it but for now, it's something needed.

I've tested the API(s) as well, and they are working perfectly fine.

Get Single Record
getOne

Update Record
patch

Insert Record
post

Delete Record
delete

Get All Records
getAll

Closes #21

@khattakdev khattakdev self-assigned this Jan 29, 2021
Copy link
Member

@eddiejaoude eddiejaoude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@eddiejaoude eddiejaoude merged commit 2288415 into EddieHubCommunity:main Jan 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create CRUD for member without DB
2 participants