nextcloud / nextcloud/circles

Documentation of OCS API

Open
#1,818 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

docs technical debt
Dominant language
JavaScript
Stars
177
Forks
68
Avg merge
2d 22h
Merged PRs (30d)
60

Description

Hi there,

We're using the circles app in our musical club for some internal organization. For some automated generation of member lists, I'd like to query data from the circles via http endpoints.

I already found the OCS API endpoints and was able to run some queries on them. However, I did not find a description of how they are intended to be used (e.g. what's the "emulated" parameter in the admin endpoints?) and what the schema of the return value is. I guess they are mostly based on the php models, but aggregating the data from there is a bit of a hassle, especiall if you're not so familiar with php (like me 😅 )

Would it be possible to document the OCS API, maybe in an openAPI json schema, somewhere? I see that there is already some documentation in the wiki.

Thanks for the work!


PS: I chose a blank template b/c I consider this neither bug nor feature request. Please let me know if I should re-open using a template.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with appinfo/routes.php and the PHP models under lib/Model, then compare the existing PHP API v1 wiki page. Document the OCS endpoints, including the emulated admin parameter and response schemas; done means consumers can understand how to call the endpoints without reconstructing the models.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, php
Domain
api, backend-api-design, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.