Welcome to the My Workspace API documentation. This API provides endpoints for managing teachers, notices, and events.
All endpoints are relative to the base URL: https://spi-backend.vercel.app/api/
- URL:
/result/243989
- Method:
GET
- URL:
/teacher/delete/{teacher_id}
- Method:
DELETE
- Success Response:
200 OK
,202 Accepted
, or204 No Content
- URL:
/teacher/create
- Method:
POST
- Request Body:
{
"name": "soumik",
"department": "s",
"fatherName": "s",
"motherName": "s",
"gender": "s",
"address": "s",
"image": "s",
"shortDesc": "s",
"email": "s",
"phoneNumber": "s"
}
- URL:
/teacher/get
- Method:
GET
- URL:
/teacher/update/{teacher_id}
- Method:
PUT
{
"name": "soumik",
"department": "computer",
"fatherName": "s",
"motherName": "s",
"gender": "s",
"address": "s",
"image": "s",
"shortDesc": "s",
"email": "s",
"phoneNumber": "s"
}
- Success Response:
200 OK
,201 Created
, or204 No Content
- URL:
/teacher/one/{teacher_name}
- Method:
PATCH
- URL:
/notic/delete/{notice_id}
- Method:
DELETE
- Success Response:
200 OK
,202 Accepted
, or204 No Content
- URL:
/notic/create
- Method:
POST
{
"notic_name": "festival",
"details": "Sylhet Polytechnic Institute or SPI is a state supported technical academic institute located in Sylhet, Bangladesh. It was established in 1955 by the then East Pakistan government. It was named as Sylhet Polytechnic Institute in 1959",
"date": "12 jun 2003"
}
- Success Response:
200 OK
or201 Created
- URL:
/notic/get
- Method:
GET
- URL:
/notic/update/{notice_id}
- Method:
PUT
{
"notic_name": "price",
"details": "Sylhet Polytechnic Institute or SPI is a state supported technical academic institute located in Sylhet, Bangladesh. It was established in 1955 by the then East Pakistan government. It was named as Sylhet Polytechnic Institute in 1959",
"date": "12 jun 2003"
}
- Success Response:
200 OK
,201 Created
, or204 No Content
- URL:
/notic/one/{notice_name}
- Method:
PATCH
- URL:
/event/delete/{event_id}
- Method:
DELETE
- Description: Deletes an event by ID.
- Success Response:
200 OK
,202 Accepted
, or204 No Content
- URL:
/event/create
- Method:
POST
- Description: Creates a new event.
- Request Body:
{
"event_name": "new event",
"description": "Sylhet Polytechnic Institute or SPI is a state supported technical academic institute located in Sylhet, Bangladesh. It was established in 1955 by the then East Pakistan government. It was named as Sylhet Polytechnic Institute in 1959",
"date": "12 june 2032",
"thumbnail": "image.jpg",
"detail": "Sylhet Polytechnic Institute or SPI is a state supported technical academic institute located in Sylhet, Bangladesh. It was established in 1955 by the then East Pakistan government. It was named as Sylhet Polytechnic Institute in 1959. Sylhet Polytechnic Institute or SPI is a state supported technical academic institute located in Sylhet, Bangladesh. It was established in 1955 by the then East Pakistan government. It was named as Sylhet Polytechnic Institute in 1959"
}
- Success Response: 200 OK or 201 Created
- URL: `/event/get
- Method:
GET
- Success Response:
200 OK
,202 Accepted
, or204 No Content
- URL:
/event/update/{event_id}
- Method:
PUT
- Description: Update event.
- Request Body:
{
"event_name": "new event",
"description": "Sylhet Polytechnic Institute or SPI is a state supported technical academic institute located in Sylhet, Bangladesh. It was established in 1955 by the then East Pakistan government. It was named as Sylhet Polytechnic Institute in 1959",
"date": "12 june 2032",
"thumbnail": "image.jpg",
"detail": "Sylhet Polytechnic Institute or SPI is a state supported technical academic institute located in Sylhet, Bangladesh. It was established in 1955 by the then East Pakistan government. It was named as Sylhet Polytechnic Institute in 1959. Sylhet Polytechnic Institute or SPI is a state supported technical academic institute located in Sylhet, Bangladesh. It was established in 1955 by the then East Pakistan government. It was named as Sylhet Polytechnic Institute in 1959"
}
- Success Response: 200 OK or 201 Created
- URL:
/event/one/{event_name}
- Method:
PATCH
@SOUMIK SARKAR
Client-side: https://computer-club-spi.vercel.app/