API for BW Money Build Weeks Project
| Name |
In |
Description |
Required? |
Type |
| username |
body |
username |
true |
User |
| password |
body |
password |
true |
User |
| Produces |
| application/json |
| Consumes |
| application/json |
Return all current user's expenses
| Name |
In |
Description |
Required? |
Type |
| page=0 |
query |
Results page you want to retrieve (0..N) |
false |
object |
| size=0 |
query |
Number of records per page. |
false |
object |
| sort=expensename,desc |
query |
Sort by parameter and method |
false |
object |
| Produces |
| application/json |
Updates expense by ID, returns updated expense
Adds new expense to current user
| Name |
In |
Description |
Required? |
Type |
| expensename |
body |
|
true |
String |
| amount |
body |
|
false |
Int |
| category |
body |
|
false |
String |
| Produces |
| application/json |
| Consumes |
| application/json |
Updates expense by ID, returns updated expense
| Name |
In |
Description |
Required? |
Type |
| expensename |
body |
|
true |
String |
| amount |
body |
|
false |
Int |
| category |
body |
|
false |
String |
| Produces |
| application/json |
| Consumes |
| application/json |
Return all expense by ID, checks to make sure user has permission
| Produces |
| application/json |
logout
getAccessToken
| Name |
In |
Description |
Required? |
Type |
| username |
query |
|
true |
string |
| password |
query |
|
true |
string |
postAccessToken
| Name |
In |
Description |
Required? |
Type |
| name |
query |
|
false |
string |
| Consumes |
| application/json |
Takes JSON, sends it to the Data API, returns the response.
| Name |
In |
Description |
Required? |
Type |
| request |
body |
request |
true |
string |
| Produces |
| application/json |
| Consumes |
| application/json |
Return current user
| Name |
In |
Description |
Required? |
Type |
| authenticated |
query |
|
false |
boolean |
| authorities[0].authority |
query |
|
false |
string |
| credentials |
query |
|
false |
object |
| Produces |
| application/json |
Updates current user
| Name |
In |
Description |
Required? |
Type |
| authenticated |
query |
|
false |
boolean |
| authorities[0].authority |
query |
|
false |
string |
| credentials |
query |
|
false |
object |
| details |
query |
updateUser |
true |
object |
| Consumes |
| application/json |
Return all users, ADMIN ONLY
| Produces |
| application/json |
| Property |
Type |
Format |
| amount |
integer |
int32 |
| category |
string |
|
| expenseid |
integer |
int64 |
| expensename |
string |
|
{
"expenseid": int, //Do not post this, automatically generated
"expensename": "String",
"amount": int,
"category": "String"
}
| Property |
Type |
Format |
| transportation |
integer |
int32 |
| age |
integer |
int32 |
| userid |
integer |
int64 |
| password |
string |
|
| housing |
integer |
int32 |
| username |
string |
|
| clothing |
integer |
int32 |
| food |
integer |
int32 |
| education |
string |
|
| location |
string |
|
| bills |
integer |
int32 |
| income |
integer |
int32 |
{
"userid": 16, //Do not post this, automatically generated
"username": "String",
"location": "String",
"age": int,
"income": int,
"education": "String",
"transportation": int,
"food": int,
"clothing": int,
"bills": int,
"housing": int
}
https://bw-money-backend.herokuapp.com/swagger-ui.html#/