endpoint: /api/v1/auth/login,
method: POST,
request Body : {
userName: `String`,
password: `String
}
endpoint: /api/v1/auth/register,
method: POST,
request Body : {
userName: `String`,
password: `String
}
endpoint: /api/v1/verify,
method: GET,
headers: {
Authorization: Bearer Token
}
endpoint: /api/v1/user/{id},
method: PUT,
headers: {
Authorization: Bearer Token
},
request Body : {
oldUserName: `String`,
newUserName: `String`,
oldPassword: `String,
newPassword: `String,
}
endpoint: /api/v1/item,
method: POST,
headers: {
Authorization: Bearer Token
},
request Body : {
name: `String`,
description: `String`,
categoryId: `Integer`,
price: `Integer`,
userId: `Integer`
}
endpoint: /api/v1/items,
method: GET,
headers: {
Authorization: Bearer Token
}
endpoint: /api/v1/item/{id},
method: GET,
headers: {
Authorization: Bearer Token
}
endpoint: /api/v1/items/user/{userId},
method: GET,
headers: {
Authorization: Bearer Token
}
endpoint: /api/v1/items/category/{categoryId},
method: GET,
headers: {
Authorization: Bearer Token
}
endpoint: /api/v1/item/{id},
method: PUT,
headers: {
Authorization: Bearer Token
},
request Body : {
name: `String`,
description: `String`,
categoryId: `Integer`,
price: `Integer`,
userId: `Integer`
}
endpoint: /api/v1/item/{id},
method: DELETE,
headers: {
Authorization: Bearer Token
}
endpoint: /api/v1/categories,
method: GET,
headers: {
Authorization: Bearer Token
}
endpoint: /api/v1/category/{id},
method: GET,
headers: {
Authorization: Bearer Token
}
endpoint: /api/v1/users,
method: GET,
headers: {
Authorization: Bearer Token
}
About project can be found here