API Explorer
Secure API testing through gateway with automatic RestAssured code generation
API playground
Point your tests at the PassTheNote gateway
Use these endpoints to rehearse automation flows. Requests route through /api/gateway so you can toggle auth headers, inspect responses, and copy runnable snippets.
Authentication
Send x-user-id header via presets or custom value. For public endpoints, leave it unchecked.
Example body
{
"title": "Test note",
"content": "Document your automation ritual",
"tags": ["testing", "api"]
}Errors
- 401: missing/invalid
x-user-id - 403: insufficient role
- 422: validation failure
Latency tips
Status panel displays round-trip time; use it to set API SLAs in your automated checks.
Quick Auth:
π Select EndpointβΌ
API Endpoints
22Auth
5Notes
7User
1Orders
4Products
2Cart
2System
1Request
Query parameters
No params yet. Click βAdd paramβ to include ?key=value pairs.
β‘
Ready to test
Send a request to see the response here
Select an endpoint to generate multi-language code snippets.
Code Samples
import io.restassured.RestAssured;
import io.restassured.response.Response;
import static io.restassured.RestAssured.*;
import static org.hamcrest.Matchers.*;
@Test
public void testApiEndpoint() {
// Setup base URI
RestAssured.baseURI = "https://www.passthenote.com/api/gateway";
// Execute request and validate response
Response response = given()
.relaxedHTTPSValidation()
.header("Content-Type", "application/json")
.when()
.when()
.get("/")
.then()
.statusCode(200)
.log().all();
response.prettyPrint();
}Automation ideas
Try these validations
- Assert gateway responds within < 800ms.
- Validate schema for success and error payloads.
- Exercise unauthorized scenarios to verify 401 and 403 handling.
- Re-run the same request to ensure idempotency or helpful error messaging.