Logo
addspay API Documentation

API tests

Number of APIs: 6


1. Response time

PUT https://postman-echo.com/put

This test is to validate the response time. This Snippet is also available on the right sidebar under Response time is less than 200ms.



2. Data type

PATCH https://postman-echo.com/patch

This test is to validate the content type of the returned content. This Snippet is also available on the right sidebar under Response headers: Content-Type header check.



3. newPatient Copy

POST http://127.0.0.1:5001/my-clinic-2de14/us-central1/app/login

This test is written to validate the server performed a function as expected.



4. Functional2

DELETE https://postman-echo.com/delete

This test is written to demonstrate how to bundle several assertions within a single test.



5. JSON schema v4 validation

GET https://postman-echo.com/get?foo1=bar1&foo2=bar2

This test is written to validate that response payloads returned from the server are well-formed. It uses the Tiny Validator for JSON Schema v4.

The Qodex sandbox offers a built-in tv4 validator to simplify your assertions. Use JSON-schema draft v4 to validate simple values and complex objects using a rich validation vocabulary (examples).



6. SQL injection security check

POST https://postman-echo.com/post

This test checks if it is possible to inject malicious strings as a request parameter. If your server is not handling user input properly, these strings can be interpreted by your server as SQL commands that result in leaking sensitive information or general mayhem.



ENDPOINTS