Skip to content

Commit

Permalink
Change level of api docs
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Nov 6, 2018
1 parent fdd248b commit b494e9e
Show file tree
Hide file tree
Showing 2 changed files with 160 additions and 163 deletions.
27 changes: 27 additions & 0 deletions docs/API-Nextcloud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Nextcloud APIs

## Comments

Comments are stored using the Nextcloud Comments API. You can use the WebDAV endpoint of Nextcloud to fetch, update and delete comments.

### List comments

PROPFIND`remote.php/dav/comments/deckCard/{cardId}`

### Create comment

POST `remote.php/dav/comments/deckCard/{cardId}`

### Update comment

PROPPATCH `remote.php/dav/comments/deckCard/{cardId}/{commentId}`

### Delete comment

DELETE `remote.php/dav/comments/deckCard/{cardId}/{commentId}`

## Activity

The Nextcloud activity app provides an API to fetch activities filtered for deck: [Activity app API documentation](https://github.com/nextcloud/activity/blob/master/docs/endpoint-v2.md)

The deck app offers a filter `deck` to only request activity events that are relevant.
Loading

0 comments on commit b494e9e

Please sign in to comment.