/donation-backend

This project is the backend layer of Doe+ App using Spring Cloud framework.

Primary LanguageJava

Build Status

Donation Backend


This project is the backend layer of Doe+ App using Spring Cloud framework.

Authentication

Method Path Description
POST /login Generates a JWT Token to be used in

Example:

Request:
POST http://localhost:8080/authentication/login
{
    "username": "foo",
    "password": "bar"
}
Response: 200 - OK
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImF1dGhvcml0aWVzIjpbIlJPTEVfQURNSU4iXSwiaWF0IjoxNTQxMjUzNzEzLCJleHAiOjE1NDEzNDAxMTN9.dVuksZMwwOggMdRMTfk96k3tr4GXN4_ckXfwt_ydaZR8H2My8ol46vD_iLpG2BlAOEpPaSYK4K4MB7WeNC-aYg

Campaign

Method Path Description
POST /campaigns Create a campaign
GET /campaigns/search-by-user/{userId} Get the campaigns of an user
GET /campaigns/near-location Get the campaigns by location
GET /campaigns/search-by-similar Get the campaigns with similar name

Endpoints