Create the controller that handles routes
The companies repository
The express application used to register a new route for this controller
The companies repository
Indicates if the authentication has been enabled in this controller
The express router
The collection name
Register this controller routes to the global express application
Add a list of attendances to a internship proposal
POST
/internshipProposals/addAttendances
Body parameters
{
attendances: Array<Attendance>,
internshipProposalId: string
}
@return ApiResponse
Enable JWT token verification. Every method called after this call will use authentication
A user scope can be specified using a scope middleware.
Attach to the current route the create operation
A user scope can be specified using a scope middleware.
Attach to the current route the CRUD operations.
A user scope can be specified using a scope middleware.
Delete operation required Admin scope by default in all collection
Attach to the current route the delete operation
A user scope can be specified using a scope middleware.
Update the state of an [[Internship]] WITHOUT the constraint of the InternshipStatusTypeMachine transition function
Create the documentation at the end of an InternshipProposal
GET
/internshipProposals/generateDocs/${internshipProposalId}
Query parameters
{
internshipProposalId: string
}
@return PDF Stream
Return the number of available place in an [[Internship]]
Return the list of [[InternshipProposal]] that reference at least one company of the given user id
Return the list of [[InternshipProposal]] that reference the given professor id
Return the list of [[InternshipProposal]] created by the given student id
Given a [[InternshipsStatusType]] return all the available states
Allow to use middleware for all methods
The middleware to use for all methods
Attach to the current route the read all and ready by id operation
A user scope can be specified using a scope middleware.
Attach to the current route the update operation
A user scope can be specified using a scope middleware.
Update the state of an [[Internship]] following the InternshipStatusTypeMachine transition function
Generated using TypeDoc
The [[InternshipProposal]] controller