Skip to content

This is a crud operation i have done for an Student report api

Notifications You must be signed in to change notification settings

mahmudurrahman-1/API-Testing----Five

Repository files navigation

Student Report API

Netlify Status

Endpoints

Fetch All student

GET /api/studentsDetails

Returns the Status and data of the API.

Status

GET /status

Returns the status of the API.

Single student student in details

GET api/studentsDetails/169

Returns Details of that id. ###Filter id List based in student###

GET /api/studentsDetails?language=java

Returns a list of students based on types.

Create a student with student

POST /api/studentsDetails

Allows you to create new student details. doesn't Requires authentication.

The request body needs to be in JSON format and include the following properties:

{ "first_name": "Jawad", "middle_name": "Ahmed", "last_name": "Patwary", "date_of_birth": "29/10/1995" }

The response body returns a message { "id": 2675105, "first_name": "Jawad", "middle_name": "Ahmed", "last_name": "Patwary", "date_of_birth": "29/10/1995" }

Get newly created student

GET /api/studentsDetails/{{id}}

Allows you to view.

Update a student with id

PUT /api/studentsDetails

Allows you to update student details. doesn't Requires authentication.

The request body needs to be in JSON format and include the following properties: { "id": {{Identity No}}, "first_name": "Jahid", "middle_name": "Ahmed", "last_name": "Patwary", "date_of_birth": "29/10/1995" }

The response body returns a message { "status": "true", "msg": "update data success" }

Delete a student

Delete /api/studentsDetails/{{id}}

Allows you to delete students. doesn't Requires authentication.

The response body returns a message `

  • "status": "false",
  • "msg": "not found" `

About

This is a crud operation i have done for an Student report api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages