Skip to content

vvozny/PostrBackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostrBackend

Description

Backend part of Postr application.

Tech

  • Java
  • SpringBoot
  • Lombok
  • Hibernate
  • Firebase Cloud Messaging
  • Firebase Auth
  • PostgreSQL

Push Notifications

Push notifications are send when:

  • New event is added in user's specified range
  • User received new message
  • Someone commented on followed event

End points with methods

Each request must contain auth token

GET

  • Get all comments in given event (id)

/api/comments/{id}

  • Get all events

/api/events/

  • Get all events in given range from given coordinates

/api/events/{lat}/{lon}/{range}

  • Get all events followed by user

/api/follows

  • Get all users who send a message to current user

/api/authors

  • Get new messages between users

/api/messages/aft/{uid2}/{messId}

  • Get all messages between users

/api/messages/{uid2}

  • Get current user info

/api/user

POST

  • Add new comment

/api/comment

  • Add new event

/api/event

  • Add new follow

/api/follow

  • Add new message

/api/message

  • Add new user

/api/user

PUT

  • Edit event

/api/event

  • Edit user

/api/user

DELETE

  • Unfollow event (id)

/api/follow/{id}

About

Backend for android application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published