http://mexdev.ru/
uses Route53
(now EC2 on AWS is offline)
https://mexdev-ru.atlassian.net/wiki/spaces/MONTANA/pages/4653139
https://mexdev-ru.atlassian.net/jira/software/c/projects/MON/boards/1
another repo in git, build with docker-compose up
https://mexdev-ru.atlassian.net/wiki/spaces/MONTANA/pages/9011201/2021-08-17+upd+08-31
- User
- uuid
- first_name
- last_name
- patronymic
- phone
Path: /user
| GET | PUT | POST | DELETE | |
|---|---|---|---|---|
| For one user | /id | /id | /id | |
| For all users | /all | ❌ | ❌ | ❌ |
Standard requests for interacting with the database
-
Company
- uuid
- name
-
Role
- id
- name
-
Employee
- uuid
- roles (list)
-
RoleInCompany
- uuid
- company
- role
- role_issuer
- employee
Path: /company
| GET | PUT | POST | DELETE | |
|---|---|---|---|---|
| For one user | /id | /id | /id | |
| For all users | /all | ❌ | ❌ | ❌ |
Path: /role
| GET | PUT | POST | DELETE | |
|---|---|---|---|---|
| For one user | /id | /id | /id | |
| For all users | /all | ❌ | ❌ | ❌ |
Path: /employee
| GET | PUT | POST | DELETE | |
|---|---|---|---|---|
| For one user | /id | /id & /add_role/id | /id | |
| For all users | /all | ❌ | ❌ | ❌ |
| GET | PUT | POST | DELETE | |
|---|---|---|---|---|
| For one user | ❌ | ❌ | ❌ | ❌ |
| For all users | ❌ | ❌ | ❌ | ❌ |
-
POST
- a company with this name should not exist
- when creating a company, an employee and the ADMIN role are also created, if there is no one
-
Standard requests for interacting with the database
-
POST
- a role with this name should not exist
-
Standard requests for interacting with the database
-
POST
- it is created only with a zero list of roles
-
PUT (/add_role)
- the company must exist
- the role must exist
- the role issuer must have some role in the specified company
None
- Open terminal and go to the project directory
- mvn clean install -DskipTests=true (mvnw for Win)
- docker-compose up -d
- docker-compose down any time you want to turn off Docker(before change docker-compose.yml)
Гайд, по которому создавать ream и пользователей (my_realm, my_client, Роли: ADMIN, USER) https://habr.com/ru/company/reksoft/blog/552346/
