-
Notifications
You must be signed in to change notification settings - Fork 87
API_v1.0
Optional additions to the endpoints or its payload may occur.
The Polls API is documented via the OpenAPI specification. The generated spec files are located in the root of this repository:
| File | Scope |
|---|---|
openapi.json |
All endpoints available to regular users |
openapi-administration.json |
Admin-only endpoints |
openapi-full.json |
All endpoints combined |
Use any OpenAPI-compatible viewer, e.g. Swagger UI or the Redoc CLI:
npx @redocly/cli preview-docs openapi.jsonBruno can import the spec directly:
File → Import Collection → OpenAPI V3 → select openapi.json
All endpoints are served under:
/ocs/v2.php/apps/polls
Standard Nextcloud authentication applies (Basic Auth, App Passwords, session cookies).
curl -u username:password https://nextcloud.example.com/ocs/v2.php/apps/polls/api/v1.0/pollsValid values for poll type, access mode, showResults, and votingVariant are exposed through the Nextcloud Capabilities API:
GET /ocs/v2.php/cloud/capabilities
Look for the polls key in the response.
The spec is generated from source annotations and must be regenerated after any endpoint change:
composer run openapiA CI check enforces that the committed spec matches the current source.