https://test.byteccny/
localhost runs on port 3000
GET /
- Description: Test endpoint to verify the server is running.
- Response:
"BYTE Server is running!"
Base Path: /projects
- Description: Test endpoint for the projects module.
- Response: Status 200 (OK).
- Query Parameters:
cohort
(optional): Cohort ID (integer). Defaults to-1
.name
(optional): Project name (string).page
(optional): Page number (integer). Defaults to1
.
- Response: JSON array of projects
{
"ID": "string", // UID of project AND team
"Member1": "string",
"Member2": "string",
"Member3": "string",
"Member4": "string",
"ProjectName": "string",
"ShortDesc": "string",
"LongDesc": "string",
"Link": "string",
"Image": "string",
"TechStack": "string array",
"Topic": "string array",
"Cohort": "string",
}
- Request Body (JSON or Form-Data):
{ "name": "string", "short_desc": "string", "long_desc": "string", "member1": "UUID", "member2": "UUID (optional)", "member3": "UUID (optional)", "member4": "UUID (optional)", "link": "string", "image": "string", "tech_stack": "string (JSON array format)", "topic": "string (JSON array format)", "cohort": "integer" }
- Headers:
application/json
ormultipart/form-data
(both are accepted) - Validation: All fields are required unless marked optional.
- Response: Status 200 on success.
Base Path: /users
- Description: Test endpoint for the users module.
- Response: Status 200 (OK).
- Description: adds a user to the database
- Request Body (JSON):
{
"name": "string",
"cuny_email": "string",
"emplid": "string",
"personal_email": "string (optional)",
"discord": "string (optional)"
}
- Validation: All fields are required unless marked optional.
- Response: Status 200 on success.