This is a small exercise designed to evaluate your ability to create test cases.
Please read the instructions carefully to ensure a fair and accurate assessment.
Successfully completing this exercise will significantly increase your chances of securing a position with us.
You will be using a public API for this exercise. We do not manage this API, so Create, Update, and Delete methods will not impact the database; the API is primarily for testing purposes. Since this API is public, no credentials or tokens are required.
Write two positive and two negative test cases for each method to verify the API works as expected.
Base URL: https://jsonplaceholder.typicode.com
Endpoint: /posts
Example: Method: GET, Endpoint: https://jsonplaceholder.typicode.com/posts
/posts: Fetch all posts200/posts/id: Fetch a post by ID200/posts Create a new post{
"title": "title field expects a string",
"body": "body field expects a string",
"userId": 1
}201/posts/id Update a Post {
"id": 1,
"title": "Updated post title",
"body": "Updated content of the post.",
"userId": 1
}200/posts/id: Delete a Post200Use any text editor you prefer to complete this exercise. Once completed, upload your solution along with a detailed explanation to a public GitHub repository or any public file hosting service.