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!
Sign in to leave a comment
Architecture
No Services Diagrams Yet
Architecture diagrams will be automatically generated when the Project Manager creates tasks for your project.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No comments yet. Be the first!