We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
relates #5
PUT api/v1/cohorts/:cohortId
let addCohort = yup.object({ name: yup.string().required(), description: yup.string().required(), imgUrl: yup.string().url().required(), githubLink: yup.string().url().required() });
req.body = { name, description, imgUrl, githubLink }
UPDATE cohort SET (name = req.body.name, description = req.body.description, imgUrl = req.body.imgUrl, githubLink = req.body.githubLink) WHERE id = cohortId;
{ StatusCode: 200, data: { message: "Cohort updated successfully" } }
{statusCode:400, message:"Invalid Data"}
to be a successful test
The text was updated successfully, but these errors were encountered:
Mu7ammadAbed
No branches or pull requests
relates #5
Route:
PUT api/v1/cohorts/:cohortId
Acceptance Criteria
Validation schema
Request body
DB query
Response
Testing
to be a successful test
The text was updated successfully, but these errors were encountered: