https://github.com/marktennyson/school_management
https://github.com/marktennyson/school_management
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marktennyson/school_management
- Owner: marktennyson
- Created: 2021-08-14T07:39:42.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-19T04:38:23.000Z (about 4 years ago)
- Last Synced: 2025-06-03T18:16:41.917Z (4 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple school management system with RestAPI
### all apis endpoint:
##### The endpoint to get a particular student
```http
GET /api/student/?id=1
```
and the response is:```javascript
{
"id": 1,
"name": "Aniket Sarkar",
"standerd": "Ten",
"roll_no": 56,
"gender": "M",
"dob": "2021-08-10",
"created_at": "2021-08-14T09:35:55.239Z",
"is_active": true
}
```##### The endpoint to get all student data
```http
GET /api/student/
```
and the response is:```javascript
[
{
"id": 1,
"name": "Aniket Sarkar",
"standerd": "Ten",
"roll_no": 56,
"gender": "M",
"dob": "2021-08-10",
"created_at": "2021-08-14T09:35:55.239Z",
"is_active": true
},
{
"id": 2,
"name": "Aditi Singh",
"standerd": "Ten",
"roll_no": 1,
"gender": "M",
"dob": "2021-08-10",
"created_at": "2021-08-14T09:36:59.692Z",
"is_active": true
}
]
```##### To create a student
```http
POST /api/student/
```and the response is:
```javascript
{
"id": 1,
"name": "Aniket Sarkar",
"standerd": "Ten",
"roll_no": 56,
"gender": "M",
"dob": "2021-08-10",
"created_at": "2021-08-14T09:35:55.239Z",
"is_active": true
}
```##### to update a student
```http
PUT /api/student/?id=1
```
and the response is:
```javascript
{
"id": 1,
"name": "Aniket Sarkar",
"standerd": "Twelve",
"roll_no": 57,
"gender": "M",
"dob": "2021-08-10",
"created_at": "2021-08-14T09:35:55.239Z",
"is_active": true
}
```##### to delete a student
```http
DELETE /api/student/?id=1
```and the response is:
```http
204 - Content not found
```