The answer depends on many other factors including the infrastructure.
- Even POST requestrequests can create unwanted changes in production DB so GET is mostly the only safestsafe method, investigate if this is the case for your product.
- Do you have a staggingstaging server where you do rest of the use cases (if you plan to use only POST and GET in production)
- What is your team decision and what are their expectation
- What is the product structure , is there test sandbox that you can access from the production environment so that you won't affect real users
- What kind of product are you testing
So as in any test activity, the answer is:
- The approach is context depended
- You should have proper risk analysis on what happens if you don't test other http methondmethods and sticks onstick to only http GET and POST
- Is there a backup or restore option if something goes wrong.
Some timesSometimes you won't be able to get answers for all those questions due to immature project stakeholders and process. INIn that case i will, I would stick on to the below procedures:
- Ensure to test all GET actions and validate the response schema
- Check authentication and authorization test for test users. Make sure your test accounts have limited authorization and the test accounts have access only to test data. Don't test admin account use cases as it can cause unwanted changes
- Don't use admin test accounts as account breaches can compromise the entire production environment
- Check production environment response time
- Run postman monitor to ensure health of the production API
- Stay away from CRUD operations other than R (Read , means GET)
- Discuss with the team on other use cases and be clear on the risk involved