Here we can Learn about the Rest API Examples on HTTP Methods :
-GET : To retrieve an information from a server
-POST : To add an information in the server
-PUT : To update an information in the server
-DELETE : To remove an information in the server
- examples which are hardcoded and used in fixtures won't work since it is already used in the specified url.
- In framework project - you should generate your own access key ( "Authorzation" in Headers) I have used my own key.
- This JS testing framework for web applicationallows to do E2E testing on UI and API in the Application.
- To Install Cypress :
npm install cypress --save-dev
- https://www.cypress.io/blog/2023/02/13/implementing-api-testing-like-a-pro-1/
- Sample API references for framework - https://gorest.co.in/
- Get method
- get Users Details
- Invalid URL -
- get user detail for 1 user
- Invalid Users
POSITIVE CASE
- JSON
- JSON Object
- Fixture
- Import json
NEGATIVE CASE
- Incorrect Header
- Duplicate Data
- Missing Data
- Put call
- Put call using fixtures
- Put call using JSON from different package
- E2E flow ( POST + PUT + GET )
- Delete call
- create a post call
- Delete that post call