Skip to content

Go-Split BNTA Group Capstone Project. A mobile application to help users split costs in a trip.

Notifications You must be signed in to change notification settings

Anabela-Lima/capstone_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capstone Backend Project:

Wireframe1

WireFrame2

Wireframe3

Please replace all endpoint address with the above URL.

IMPORTANT: Heroku will go to 'sleep' after 30 minutes of inactivity, first API request to wake will take roughly 20 seconds.


[GET] Connection Test & Wake Heroku

Endpoint

https://springboot-postgres-test.herokuapp.com/test

Input

GET REQUEST

Response

200 - Test Success (Backend is active)

{
    "success": true,
    "message": "This is a test endpoint",
    "payload": "Test Success!"
}

Other Code - Backend is offline


[POST] User Log-In

If successful, frontend will receive a JWT that MUST be used with all other endpoints.

Endpoint

https://springboot-postgres-test.herokuapp.com/authenticate

Input

{
    "username": "",
    "password": ""
}

Example Response

200 - Successful authentication

{
    "success": true,
    "message": "Token generated!",
    "payload": [GENERATED JWT]
}

401 - Authentication failed

{
    "success": false,
    "message": "The username and password provided are incorrect!",
    "payload": null
}


About

Go-Split BNTA Group Capstone Project. A mobile application to help users split costs in a trip.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages