This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
774d601
commit dc7f73a
Showing
6 changed files
with
77 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Verbesserungsvorschläge/Änderungen | ||
|
||
## 1 User | ||
|
||
- [ ] **ALLE** API Ressourcen umbenennen (z.B. `users` -> `user`) | ||
|
||
### Subscriptions | ||
- [ ] `GET /users/:user/subscribers` -> Alle Subscriber, die dem User mit der ID `:user` folgen | ||
|
||
- [ ] `GET /users/:user/subscriptions` -> Alle User, den der User mit der ID `:user` folgt | ||
- [ ] `POST /users/:user/subscriptions` -> User mit der ID `:user` abonnieren | ||
- [ ] `DELETE /users/:user/subscriptions` -> User mit der ID `:user` nicht mehr abonnieren | ||
|
||
## 2 Posts | ||
- [ ] `POST /posts/` -> Post erstellen | ||
- [ ] `GET /posts/:postid` -> Post mit der ID `:postid` | ||
- [ ] `PUT /posts/:postid` -> Post mit der ID `:postid` aktualisieren | ||
- [ ] `DELETE /posts/:postid` -> Post mit der ID `:postid` löschen | ||
|
||
### 2.1 Feed | ||
- [ ] `GET /feed/private` -> Privater Feed des Users | ||
- [ ] `GET /feed/public` -> Öffentlicher Feed von allen Posts | ||
|
||
|
||
### 2.2 Comments | ||
- [ ] `GET /posts/:postid/comments` -> Alle Kommentare zu Post mit der ID `:postid` | ||
- [ ] `POST /posts/:postid/comments` -> Kommentar zu Post mit der ID `:postid` hinzufügen | ||
- [ ] `GET /posts/:postid/comments/:commentid` -> Kommentar mit der ID `:commentid` abrufen | ||
- [ ] `PUT /posts/:postid/comments/:commentid` -> Kommentar mit der ID `:commentid` aktualisieren | ||
- [ ] `DELETE /posts/:postid/comments/:commentid` -> Kommentar mit der ID `:commentid` löschen | ||
|
||
### 2.3 Likes | ||
- Posts | ||
- [ ] `GET /posts/:postid/likes` -> Alle Likes zu Post mit der ID `:postid` (Gibt eine Liste mit Usern zurück) | ||
- [ ] `POST /posts/:postid/likes` -> Like zu Post mit der ID `:postid` hinzufügen | ||
- [ ] `DELETE /posts/:postid/likes` -> Like zu Post mit der ID `:postid` entfernen | ||
- Comments | ||
- [ ] `GET /posts/:postid/comments/:commentid/likes` -> Alle Likes zu Kommentar mit der ID `:commentid` (Gibt eine Liste mit Usern zurück) | ||
- [ ] `POST /posts/:postid/comments/:commentid/likes` -> Like zu Kommentar mit der ID `:commentid` hinzufügen | ||
- [ ] `DELETE /posts/:postid/comments/:commentid/likes` -> Like zu Kommentar mit der ID `:commentid` entfernen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters