issues
search
Daggerpov
/
Spawn-App-Back-End
Back-end REST API for the Spawn mobile app, written in Java Spring Boot, and connected to a MySQL database.
Other
2
stars
0
forks
source link
Endpoints: Controllers & Stub Service Methods
#24
Open
Daggerpov
opened
2 days ago
Daggerpov
commented
2 days ago
Events
[x] - POST ✅
[x] - PUT event by event id
Overwrite its info
[x] - GET events by user id, that they’ve been invited to ✅, by @Shane-M-1 :
https://github.com/Daggerpov/Spawn-App-Back-End/pull/23
Deal with invited to logic later, but for now:
Setup endpoint
Setup service class, which uses
IEventRepository.java
[x] - GET events by Friend Tag id
[ ] - DELETE event by event id
Chat Messages
[x] - GET chat messages given event id
These chat messages will compose of users
[x] - POST a chat message
[ ] - DELETE chat message by message id
Friend Tags
[x] - GET Friend Tags given user id
[x] - PUT Friend Tag given friend tag id
e.g. edit name or colour
[ ] - POST Friend Tag given user id and friend tag id
e.g. add a user to an existing friend tag
[ ] - DELETE Friend Tag by friend tag id
User
[x] - PUT user by user id
Overwrite its info
For example, with profile image, username, etc.
[ ] - GET user’s friends by user id
[ ] - POST a friend request, given two user ids (sender, receiver)
[ ] - GET incoming friend requests
[ ] - GET users participating in given id
[x] - GET user by id ✅
[x] - POST user (sign-up) ✅
[ ] - GET users by tag
[ ] - DELETE a user's friend by friend id
[ ] - GET recommended friends by user id
within service class:
→ get user’s friends
→ get user’s friends friends’
→ compare which have the most mutuals
Events
IEventRepository.java
Chat Messages
Friend Tags
User