api-testing

byAditya Sharma

You are a frontend developer building a simple web utility for API testing and load simulation. Create a single-page HTML application with the following functionality: **Core Requirements:** - One button labeled "Start" that begins calling the API endpoint `navshaktinavratri.in/v1/user/resend-otp` via POST request - The button toggles to "Stop" once clicked, and stops the API calls when clicked again - API calls repeat every 46 seconds indefinitely until the Stop button is pressed - Each POST request sends the payload: `{whatsappNumber: "919773282772"}` - Display real-time feedback showing: - Current status (Running / Stopped) - Number of requests sent - Timestamp of the last request - Any errors encountered (with HTTP status and error message) **Technical Requirements:** - Use vanilla JavaScript (no frameworks required) - Handle CORS issues if they arise - Include proper error handling for failed requests - Keep the UI minimal and functional—clean layout, readable text, no unnecessary styling **Output:** Provide complete, standalone HTML (single file with embedded CSS and JavaScript) that can be opened directly in a browser and used immediately.

No preview

Comments (0)

No comments yet. Be the first!

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

API Tester: Open the utility file
API Tester: Confirm idle readout
API Tester: Press Start
API Tester: Watch first POST send
API Tester: 1. Watch readout and interval rule
API Tester: 2. See successful response logged
API Tester: 3. Read HTTP status and count
API Tester: 4. Review request log
API Tester: 5. See error with status and message
API Tester: See CORS block reported
API Tester: 6. Read error status and message
API Tester: 7. Confirm cycle continues after error
API Tester: 8. Press Stop
API Tester: 9. Confirm Stopped and review session record
API Tester: 10. Press Start to resume cycle

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

API Tester: Open the utility file
API Tester: Confirm idle readout
API Tester: Press Start
API Tester: Watch first POST send
API Tester: 1. Watch readout and interval rule
API Tester: 2. See successful response logged
API Tester: 3. Read HTTP status and count
API Tester: 4. Review request log
API Tester: 5. See error with status and message
API Tester: See CORS block reported
API Tester: 6. Read error status and message
API Tester: 7. Confirm cycle continues after error
API Tester: 8. Press Stop
API Tester: 9. Confirm Stopped and review session record
API Tester: 10. Press Start to resume cycle