-
Notifications
You must be signed in to change notification settings - Fork 30
Week 18 - API, Oscar Liljefors #24
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
base: master
Are you sure you want to change the base?
Conversation
week 18 ends |
week 19 ends, pagination not implemented |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job with this project, however I can't see you amazing backend work reflected in your frontend? Or have you built another frontend for this version?
https://js-happy-thoughts.netlify.app/
That is one of the requirements for this project.
Ping me when you have had time to fix this!
type: String, | ||
required: [true, "Email is required"], | ||
unique: true, | ||
match: [/.+@.+\..+/, "Invalid email format"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⭐
createdBy: { | ||
type: mongoose.Schema.Types.ObjectId, | ||
ref: "User", | ||
default: null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⭐
https://js-project-api-48mm.onrender.com/ - should show the list of endpoints
https://js-project-api-48mm.onrender.com/thoughts – returns the array of thoughts
https://js-project-api-48mm.onrender.com/thoughts?page=2&limit=1 – paginated data
https://js-project-api-48mm.onrender.com//thoughts/1 – one thought by ID