{"openapi":"3.1.0","info":{"title":"nuxt-actions example API","version":"1.5.0"},"paths":{"/api/_actions/account":{"post":{"operationId":"account","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}}}},"/api/_actions/add-task":{"post":{"operationId":"addTask","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1}},"required":["title"],"additionalProperties":false}}}}}},"/api/_actions/admin/metrics":{"get":{"operationId":"adminMetrics","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}}}},"/api/_actions/cached-report":{"get":{"operationId":"cachedReport","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"parameters":[]}},"/api/_actions/create-todo":{"post":{"operationId":"createTodo","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1}},"required":["title"],"additionalProperties":false}}}}}},"/api/_actions/create-validated-todo":{"post":{"operationId":"createValidatedTodo","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1}},"required":["title"],"additionalProperties":false}}}}}},"/api/_actions/csrf-token":{"get":{"operationId":"csrfToken","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}}}},"/api/_actions/current-time":{"get":{"operationId":"currentTime","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}}}},"/api/_actions/delete-task":{"post":{"operationId":"deleteTask","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"number"}},"required":["id"],"additionalProperties":false}}}}}},"/api/_actions/echo-headers":{"post":{"operationId":"echoHeaders","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ping":{"type":"string"}},"additionalProperties":false}}}}}},"/api/_actions/flaky-api":{"post":{"operationId":"flakyApi","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","minLength":1}},"required":["message"],"additionalProperties":false}}}}}},"/api/_actions/generate-text":{"post":{"operationId":"generateText","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}}}},"/api/_actions/list-tasks":{"get":{"operationId":"listTasks","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}}}},"/api/_actions/list-todos":{"get":{"operationId":"listTodos","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}}}},"/api/_actions/login":{"post":{"operationId":"login","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":8}},"required":["email","password"],"additionalProperties":false}}}}}},"/api/_actions/middleware-chain-skip":{"post":{"operationId":"middlewareChainSkip","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string"}},"additionalProperties":false}}}}}},"/api/_actions/middleware-chain":{"post":{"operationId":"middlewareChain","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string"}},"additionalProperties":false}}}}}},"/api/_actions/origin-protected":{"post":{"operationId":"originProtected","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"note":{"type":"string"}},"required":["note"],"additionalProperties":false}}}}}},"/api/_actions/paginated-todos":{"get":{"operationId":"paginatedTodos","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"parameters":[{"name":"pageParam","in":"query","required":true,"schema":{"default":1,"type":"number"}},{"name":"limit","in":"query","required":true,"schema":{"default":5,"type":"number"}}]}},"/api/_actions/pay":{"post":{"operationId":"pay","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amount":{"type":"number","exclusiveMinimum":0},"recipient":{"type":"string","minLength":1}},"required":["amount","recipient"],"additionalProperties":false}}}}}},"/api/_actions/protected-note":{"post":{"operationId":"protectedNote","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"note":{"type":"string","minLength":1}},"required":["note"],"additionalProperties":false}}}}}},"/api/_actions/rate-limited-action":{"post":{"operationId":"rateLimitedAction","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"/api/_actions/refresh-report":{"post":{"operationId":"refreshReport","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}}}},"/api/_actions/register":{"post":{"operationId":"register","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":8}},"required":["name","email","password"],"additionalProperties":false}}}}}},"/api/_actions/search-todos":{"get":{"operationId":"searchTodos","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"parameters":[{"name":"q","in":"query","required":true,"schema":{"default":"","type":"string"}}]}},"/api/_actions/slow-endpoint":{"post":{"operationId":"slowEndpoint","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"delayMs":{"default":3000,"type":"number","minimum":0,"maximum":30000},"label":{"type":"string"}},"required":["delayMs"],"additionalProperties":false}}}}}},"/api/_actions/task-stats":{"get":{"operationId":"taskStats","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}}}},"/api/_actions/throttle-counter":{"post":{"operationId":"throttleCounter","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"increment":{"default":1,"type":"number"}},"required":["increment"],"additionalProperties":false}}}}}},"/api/_actions/toggle-task":{"post":{"operationId":"toggleTask","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"number"}},"required":["id"],"additionalProperties":false}}}}}},"/api/_actions/toggle-todo":{"post":{"operationId":"toggleTodo","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"number"},"done":{"type":"boolean"}},"required":["id","done"],"additionalProperties":false}}}}}},"/api/_actions/upload-avatar":{"post":{"operationId":"uploadAvatar","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string","minLength":1},"avatar":{}},"required":["label"],"additionalProperties":false}}}}}},"/api/_actions/validated-output":{"post":{"operationId":"validatedOutput","tags":["actions"],"responses":{"200":{"description":"Action result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}},"required":["id","name","role","permissions"],"additionalProperties":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"number"}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1},"role":{"type":"string","enum":["admin","user","guest"]}},"required":["name","role"],"additionalProperties":false}}}}}}}}