{
  "paths": {
    "/users-permissions/init": {
      "get": {
        "responses": {
          "200": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "hasAdmin": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/users-permissions/roles/{id}": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 3
                    },
                    "description": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "permissions": {
                      "type": "array",
                      "items": {
                        "required": ["id", "type", "controller", "action", "enabled"],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "controller": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "policy": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "created_by": {
                            "type": "string"
                          },
                          "updated_by": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "created_by": {
                      "required": ["id", "email"],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "firstname": {
                          "type": "string"
                        },
                        "lastname": {
                          "type": "string"
                        },
                        "username": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "password": {
                          "type": "string"
                        },
                        "resetPasswordToken": {
                          "type": "string"
                        },
                        "registrationToken": {
                          "type": "string"
                        },
                        "isActive": {
                          "type": "boolean"
                        },
                        "roles": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "blocked": {
                          "type": "boolean"
                        }
                      }
                    },
                    "updated_by": {
                      "required": ["id", "email"],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "firstname": {
                          "type": "string"
                        },
                        "lastname": {
                          "type": "string"
                        },
                        "username": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "password": {
                          "type": "string"
                        },
                        "resetPasswordToken": {
                          "type": "string"
                        },
                        "registrationToken": {
                          "type": "string"
                        },
                        "isActive": {
                          "type": "boolean"
                        },
                        "roles": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "blocked": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/users-permissions/roles": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 3
                      },
                      "description": {
                        "type": "string"
                      },
                      "nb_users": {
                        "type": "integer"
                      },
                      "type": {
                        "type": "string"
                      },
                      "created_by": {
                        "required": ["id", "email"],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "firstname": {
                            "type": "string"
                          },
                          "lastname": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "password": {
                            "type": "string"
                          },
                          "resetPasswordToken": {
                            "type": "string"
                          },
                          "registrationToken": {
                            "type": "string"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "blocked": {
                            "type": "boolean"
                          }
                        }
                      },
                      "updated_by": {
                        "required": ["id", "email"],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "firstname": {
                            "type": "string"
                          },
                          "lastname": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "password": {
                            "type": "string"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "blocked": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
