Understanding the Playground - REST

In this lesson, we will walk you through the details of web API developed for demos and writing test automation for RESTful APIs.

Demo class for REST

We have a student class, with the following fields and types:

Access Specifier Type Field
private Long id
private String firstName
private String lastName
private String gender

Supported HTTP methods for REST API

The target base URL :http://ezifyautomationlabs.com:6565

Method Request Mapping Comments
GET /educative-rest/students Get all students
GET /educative-rest/students/{id} Get a student with a particular id
POST /educative-rest/students Create a new student
PUT /educative-rest/students Update an existing student
DELETE /educative-rest/students/{id} Delete student with a particular id

Get hands-on with 1400+ tech skills courses.