Skip to content

Conversation

@sumitst05
Copy link
Contributor

Description

This PR adds the Group endpoints to the project. It includes the following changes:

  • Created controllers and services for Group endpoint
  • Added routes for Group operations
  • Integrated Group routes in app.js
  • Implemented test cases for all Group endpoints
  • Documented the Group API using apidoc

Fixes

#314

Checklist

  • Code follows project's style guidelines.
  • Changes are documented appropriately.

title: "Group 1",
student: "64fdc67feca8a69f01b33614",
});

Copy link
Member

Choose a reason for hiding this comment

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

check content-type for post and update operations is it is json or not
eg :- expect(response.headers["content-type"]).toMatch(/json/);
refer accreditation.test.js

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops! missed that...
Added the necessary checks now :)
Thanks...


function cleanUp(callback) {
groupModel
.remove({
Copy link
Member

Choose a reason for hiding this comment

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

you should pass only id as parameter in remove(delete) operation not with title because in group models we are taking only groupId as input

@Dhruvrg
Copy link
Member

Dhruvrg commented Sep 16, 2023

LGTM

Copy link
Member

@TejasNair9977 TejasNair9977 left a comment

Choose a reason for hiding this comment

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

lgtm

@TejasNair9977 TejasNair9977 merged commit 1213e8e into development Sep 30, 2023
@TejasNair9977 TejasNair9977 deleted the 314-all-endpoints-for-group branch October 15, 2023 16:58
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.

4 participants