If you're working on a project or a test assignment where you need a sample dummy REST API URL for testing without authentication, you've come to the right place. 

In this article, we will provide you Free Sample Rest API Url For Testing Without Authentication with all the necessary REST API endpoints so that you can easily perform CRUD operations in your application using our test API. It doesn't matter whether you are a Python developer or working on a JavaScript app, React.js, Angular.js, or Vue.js; it will work for all platforms.

So, below is a simple GET API that returns the list of Employees in the database. The product JSON object includes fields such as Id, FirstName, LastName, Email, PhoneNumber, and IsMaster. 

The 'IsMaster' field indicates whether it is a master product or not. You can't perform update and delete operations on master data. To perform update and delete operations, you first need to create your own Employee, and then you can proceed with the operations.

If you are looking for sample login or registration APIs for testing, you can find them in this post.


Get Employee Listapi/Employee/GetAllEmployee
Url: https://www.quickpickdeal.com/api/Employee/GetAllEmployee
{
            "Success": true,
            "Error": null,
            "Data": [
    {
            "Id": 1,
            "FirstName": "Aarav",
            "LastName": "Patel",
            "Email": "[email protected]",
            "PhoneNumber": "+91 1234567890",
            "IsMaster": false,
            "CreatedAt": "2024-02-21T12:52:50"
    },
    {
            "Id": 2,
            "FirstName": "Aryan",
            "LastName": "Sinha",
            "Email": "[email protected]",
            "PhoneNumber": "+91 9876543210",
            "IsMaster": false,
            "CreatedAt": "2024-02-22T12:52:50"
    },
    {
            "Id": 3,
            "FirstName": "Elsa",
            "LastName": "Andersson",
            "Email": "[email protected]",
            "PhoneNumber": "+46 721234567",
            "IsMaster": false,
            "CreatedAt": "2024-02-24T12:52:50"
    },
    {
            "Id": 4,
            "FirstName": "Vivaan",
            "LastName": "Joshi",
            "Email": "[email protected]",
            "PhoneNumber": "+91 9876543210",
            "IsMaster": false,
            "CreatedAt": "2024-02-25T12:52:50"
    },
    {
            "Id": 5,
            "FirstName": "Liam",
            "LastName": "Nilsson",
            "Email": "[email protected]",
            "PhoneNumber": "+46 731234567",
            "IsMaster": false,
            "CreatedAt": "2024-02-25T12:52:50"
    },
    {
            "Id": 6,
            "FirstName": "Anaya",
            "LastName": "Kumar",
            "Email": "[email protected]",
            "PhoneNumber": "+91 9876543210",
            "IsMaster": false,
            "CreatedAt": "2024-02-26T12:52:50"
    },
    {
            "Id": 7,
            "FirstName": "Oskar",
            "LastName": "Eriksson",
            "Email": "[email protected]",
            "PhoneNumber": "+46 741234567",
            "IsMaster": false,
            "CreatedAt": "2024-02-26T12:52:50"
    },
    {
            "Id": 8,
            "FirstName": "Ishaan",
            "LastName": "Gupta",
            "Email": "[email protected]",
            "PhoneNumber": "+91 9876543210",
            "IsMaster": false,
            "CreatedAt": "2024-02-27T12:52:50"
    },
    {
            "Id": 9,
            "FirstName": "Elin",
            "LastName": "Pettersson",
            "Email": "[email protected]",
            "PhoneNumber": "+46 751234567",
            "IsMaster": false,
            "CreatedAt": "2024-02-29T12:52:50"
    },
    {
            "Id": 10,
            "FirstName": "Emilia",
            "LastName": "Larsson",
            "Email": "[email protected]",
            "PhoneNumber": "+46 701234567",
            "IsMaster": false,
            "CreatedAt": "2024-02-27T12:57:52"
    }
  ]
}
The endpoint below is used for retrieving the Employee by ID. This endpoint takes the Employee ID as a parameter and then returns the Employee details based on the ID. In case the ID doesn't match, an error will be displayed.
Get Employee Detailapi/Employee/GetEmployeeById?id=6
Url: https://www.quickpickdeal.com/api/Employee/GetEmployeeById?id=6
Response body
{
            "Success": true,
            "Error": null,
            "Data": {
            "Id": 6,
            "FirstName": "Anaya",
            "LastName": "Kumar",
            "Email": "[email protected]",
            "PhoneNumber": "+91 9876543210",
            "IsMaster": false,
            "CreatedAt": "2024-02-26T12:52:50"
  }
}
If the Employee is not found in the database, the response will include an appropriate error message indicating that the product with the specified ID could not be found. Response body
{
            "Success": false,
            "Error": "Employee Id not found in the database, please try again!",
            "Data": null
}
Below is the POST API for creating a Employee object in the database. 

Create Employeeapi/Employee/CreateEmployee
Url: https://www.quickpickdeal.com/api/Employee/CreateEmployee
Request body
{
            "email": "[email protected]",
            "firstName": "jacob",
            "lastName": "sokvold",
            "phoneNumber": "918383837373"
}
Response body
{
            "Success": true,
            "Error": null,
            "Data": {
            "Id": 11,
            "FirstName": "jacob",
            "LastName": "sokvold",
            "Email": "[email protected]",
            "PhoneNumber": "918383837373",
            "IsMaster": false,
            "CreatedAt": "2024-03-04T12:38:01.2442802Z"
  }
}
In case you don't include the required fields in the request body, you will receive a bad request response.
{
            "errors": {
            "Email": [
            "The Email field is required."
    ],
            "LastName": [
            "The LastName field is required."
    ],
            "FirstName": [
            "The FirstName field is required."
    ],
            "PhoneNumber": [
            "The PhoneNumber field is required."
    ]
  },
            "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
            "title": "One or more validation errors occurred.",
            "status": 400,
            "traceId": "00-711665ad7c35864284a3ff59296f768d-fd3de15be78ca547-00"
}
Below is the PUT API for updating a Employee object in the database. The 'image' field is optional, and all other fields are required. After a successful update request, you will receive the updated Employee details in the API response.

Update Employee api/Employee/EditEmployee?id=11
Url: https://www.quickpickdeal.com/api/Employee/EditEmployee?id=11
Request body
{
            "Id": 11,
            "FirstName": "jacob new",
            "LastName": "sokvold new",
            "Email": "[email protected]",
            "PhoneNumber": "918383837373",
}
Response body
{
            "Success": true,
            "Error": null,
            "Data": {
            "Id": 11,
            "FirstName": "jacob new",
            "LastName": "sokvold new",
            "Email": "[email protected]",
            "PhoneNumber": "918383837373",
            "IsMaster": false,
            "CreatedAt": "2024-03-04T12:38:01.24428"
  }
}

Below is the DELETE API for deleting a Employee object in the database. After a successful delete request, you will receive the deleted Employee details in the API response.

Delete Employee api/Employee/DeleteEmployee?id=11
Url: https://www.quickpickdeal.com/api/Employee/DeleteEmployee?id=11
{
            "Success": true,
            "Error": null,
            "Data": {
            "Id": 11,
            "FirstName": "jacob new",
            "LastName": "sokvold new",
            "Email": "[email protected]",
            "PhoneNumber": "918383837373",
            "IsMaster": false,
            "CreatedAt": "2024-03-04T12:38:01.24428"
  }
}