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!

Project Tasks

12 planning tasks
#1

Generate system requirement document

0m 53s0.2 cr used
Done
#9

Generate system requirement document

0m 32s0.2 cr used
Paused
#12

Retry Requirements

0m 32s0.4 cr used
Paused
#2

Generate personas & user flows

0m 5s0.2 cr used
Done
#7

Create flow for API Tester / Load Simulator Operator

0m 5sCredits in parent
Done
#8

API Tester

Credits in subtasks
Backlog
#10

Design first page

0.2 cr used
Error
#4

Design remaining pages

0.2 cr needed
Backlog
#11

Design remaining pages

0.2 cr used
Error
#5

Architecture

0.2 cr needed
Backlog
#6

Workspace task plan

0.2 cr needed
Backlog
#13

Update API Tester / Load Simulator Operator flow

Credits unavailable
Backlog

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