GO inventory application OTI
Hi! this is inventory application using dessign pattern MVC
Requirements to run project
Execute project with next commands:
Token by header Authorization
Key |
Value |
Authorization |
Bearer eyJhbGciOiJIUzI1NiIsInR5... |
fetch(url, {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
})
POST /login
{
"email":"luispfcanales@gmail.com",
"password":"1234"
}
Parameter |
Type |
Description |
email |
string |
Required |
password |
string |
Required |
GET /api/network/all/resume
Parameter |
Type |
Description |
dni |
int |
Required. DNI of item to fetch |
PUT /api/person/
{
"dni":72453560,
"first_name":"LUIS ANGEL",
"last_name":"PFUÑO CANALES",
"birthdate":"2023-12-14T22:52:13.202Z",
"address":"JR TEST 222"
}
Parameter |
Type |
Description |
dni |
string |
Required. DNI to update |
first_name |
string |
Required |
last_name |
string |
Required |
birthdate |
string |
Required |
address |
string |
Required |
POST /api/person
{
"dni":72453560,
"first_name":"LUIS ANGEL",
"last_name":"PFUÑO CANALES",
"birthdate":"2023-12-14T22:52:13.202Z",
"address":"JR TEST 222"
}
Parameter |
Type |
Description |
dni |
int |
Required. DNI to delete |
PUT /api/campus
{
"id":"a468a765-932d-49b5-8090-4dfddfrb37a2",
"abbreviation":"test",
"name":"put testing",
"address":"updating",
"state":false
}
POST /api/campus
{
"abbreviation":"test",
"name":"put testing",
"address":"updating",
"state":false
}