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:
API Endpoints
22Auth
Notes
User
Orders
Products
Cart
System
Request
Query parameters
No params yet. Click βAdd paramβ to include ?key=value pairs.
Run a request to preview status, headers, and formatted payload here.
Select an endpoint to generate multi-language code snippets.
Code Samples
import io.restassured.RestAssured;
import static io.restassured.RestAssured.*;
import static org.hamcrest.Matchers.*;
@Test
public void testApiEndpoint() {
// Setup base URI
RestAssured.baseURI = "https://passthenote.com";
// Execute request and validate response
given()
.contentType("application/json")
.header("Content-Type", "application/json")
.when()
.get("/")
.then()
.statusCode(200)
.log().all();
}Automation ideas
Try these validations
- Assert gateway responds within < 800ms.
- Validate schema for success and error payloads.
- Exercise unauthorized scenario to verify 401 handling.