http://localhost:8080/api/ping
Find all: Get http://localhost:8080/api/v1/coordinates
Find one: Get http://localhost:8080/api/v1/coordinates/{id}
Create: Post http://localhost:8080/api/v1/coordinates/add
Request structure
{
"mt": 116,
"axis": "178 оси",
"horizon": "1350 метр",
"x": 25960.772,
"y": 35375.685
}
Update: Put http://localhost:8080/api/v1/coordinates/update
{
"id": 11,
"mt": 116,
"axis": "178 оси",
"horizon": "1350 метр",
"x": 25960.772,
"y": 35375.685
}
Delete: Delete http://localhost:8080/api/v1/coordinates/{id}
Invert: Get http://localhost:8080/api/v1/coordinates/{firstId}/{secondId}
Create user: POST http://localhost:8080/api/v1/user
Request structure:
{
"name":"name",
"email":"[email protected]",
"password":"password",
"role_id": 1
}
Return structure:
{
"id": 1,
"name": "name",
"email": "[email protected]",
"role_id": 1,
"created_date": "2022-08-16T11:07:53.080809Z",
"updated_date": "0001-01-01T00:00:00Z",
"deleted_date": "0001-01-01T00:00:00Z"
}
Update user: PUT http://localhost:8080/api/v1/user/{id}
Request structure:
{
"name":"name",
"email":"[email protected]",
"role_id": 1
}
Return structure:
{
"id": 11,
"name": "name",
"email": "[email protected]",
"role_id": 1,
"created_date": "2022-08-16T11:10:58.346794Z",
"updated_date": "2022-08-16T11:12:19.458738Z",
"deleted_date": "0001-01-01T00:00:00Z"
}
Pageinate users: GET http://localhost:8080/api/v1/user/?page=1&pageSize=20&showDeleted=0
Get one user: GET http://localhost:8080/api/v1/user/{id}?showDeleted=0
Delete user: DELETE http://localhost:8080/api/v1/user/{id}
LogIn user: POST http://localhost:8080/api/v1/user/login
Request structure:
{
"email":"[email protected]",
"password":"pwd"
}
Return structure:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3JvbGUiOjEsInRva2VuX2lkIjoyLCJleHAiOjE2NjA2NTE2MTB9.Qzwx6nZRfmiQSDUL9_MvGprCTFPYw9VKZbT17gAgXLg"
}
LogOut user: POST http://localhost:8080/api/v1/user/logout
Check user authorization: GET http://localhost:8080/api/v1/user/checkauth
# startUp