You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ticket, unlike its predecessors for the judging refresh, has a LOT to do (we are both writing code and testing it). Please be sure to start early.
a. Before proceeding, read up on RESTful API characteristics and CRUD operations.
b. In the internal-tools/judging-algorithm/data repository, create the following 3 folders:
models - convert each schema in to a model using mongoose
dao - build a mongo data access object to control collections using their mongoose models
controllers - do CRUD operations as requested by client code (IE the UI written in the mono-repo)
c. Write judges-model.ts using the following example
import monogoose from "mongoose";
import groupsSchema from "./groups-schema";
const groupsModel = monogoose.model("groups", groupsSchema);
export default groupsModel;
d. Write judges-dao.ts file using the following example. Implement:
Create: making new entries to each collection
Read: all entries in each collection, by ID, by name
Delete: removing all entries in each collection, removing by ID
e. Write a judges-controller.ts file that builds an interface of actions through the DAO, and constructs endpoints api/xxx to complete required CRUD operations. Example:
surbhi-gulati
changed the title
[Judging algo] Add RESTful endpoints for judge data in mongo
[Feature] Add RESTful endpoints for judge data in mongo
May 23, 2023
Ticket 4: design doc -- judging algo refresh
This ticket, unlike its predecessors for the judging refresh, has a LOT to do (we are both writing code and testing it). Please be sure to start early.
a. Before proceeding, read up on RESTful API characteristics and CRUD operations.
b. In the internal-tools/judging-algorithm/data repository, create the following 3 folders:
judges-model.ts
using the following examplejudges-dao.ts
file using the following example. Implement:judges-controller.ts
file that builds an interface of actions through the DAO, and constructs endpointsapi/xxx
to complete required CRUD operations. Example:The text was updated successfully, but these errors were encountered: