Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: function GET NoteList #62

Merged
merged 18 commits into from
Oct 21, 2023
Merged

feat: function GET NoteList #62

merged 18 commits into from
Oct 21, 2023

Conversation

HyTekCoop
Copy link
Member

Added function to take list of notes by user.
There are 2 users in the database.
image

A list of notes will be displayed for each user, depending on who the note belongs to.

At the moment, there are only ten notes in the database, nine (from the first to the ninth) of which belong to the user with id 1, and the tenth note belongs to the user with id 2.
image

Depending on which user we access the notes API, this is how we get a list of notes.
For the first user
image
image

For the second user
image

src/domain/service/noteList.ts Show resolved Hide resolved
src/domain/entities/note.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteList.ts Outdated Show resolved Hide resolved
@HyTekCoop HyTekCoop changed the title Create NoteList function feat: function GET NoteList Oct 12, 2023
src/repository/storage/postgres/orm/sequelize/note.ts Outdated Show resolved Hide resolved
src/repository/storage/postgres/orm/sequelize/note.ts Outdated Show resolved Hide resolved
src/repository/note.repository.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteList.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteList.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteList.ts Outdated Show resolved Hide resolved
src/domain/entities/noteList.ts Outdated Show resolved Hide resolved
src/presentation/http/http-server.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteList.ts Outdated Show resolved Hide resolved
src/domain/entities/note.ts Outdated Show resolved Hide resolved
src/domain/entities/noteList.ts Outdated Show resolved Hide resolved
src/repository/storage/postgres/orm/sequelize/note.ts Outdated Show resolved Hide resolved
src/domain/entities/noteList.ts Show resolved Hide resolved
src/domain/service/noteList.ts Outdated Show resolved Hide resolved
src/presentation/http/router/noteList.ts Outdated Show resolved Hide resolved
@HyTekCoop HyTekCoop merged commit dd845f3 into main Oct 21, 2023
2 checks passed
@HyTekCoop HyTekCoop deleted the recent_note_list_api branch October 21, 2023 16:48
@neSpecc neSpecc mentioned this pull request Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants