├── .github └── workflows │ └── dart.yml ├── .gitignore ├── .vscode ├── launch.json └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.en.md ├── README.md ├── README.pt-br.md ├── analysis_options.yaml ├── backend ├── config.yaml ├── database.json └── images │ ├── 1.png │ ├── 2_.jpg │ └── 3.png ├── bin └── json_rest_server.dart ├── config.yaml ├── dart_socket.dart ├── database.json ├── example ├── Requests.postman_collection.json ├── config.yaml ├── database.json └── example.md ├── lib └── src │ ├── commands │ ├── create_project_command.dart │ ├── run_command.dart │ ├── update_server_command.dart │ └── version_command.dart │ ├── core │ ├── broadcast │ │ ├── broadcast_base.dart │ │ ├── broadcast_controller.dart │ │ ├── broadcast_factory.dart │ │ ├── slack │ │ │ └── slack_broadcast_impl.dart │ │ └── socket │ │ │ └── socket_broadcast_impl.dart │ ├── enum │ │ ├── broadcast_type.dart │ │ └── id_type_enum.dart │ ├── exceptions │ │ ├── command_exception.dart │ │ ├── config_not_found_exception.dart │ │ ├── config_notfound_exception.dart │ │ ├── conflict_id_exception.dart │ │ ├── database_not_found_exception.dart │ │ └── resource_notfound_exception.dart │ ├── helper │ │ ├── cors_helper.dart │ │ └── jwt_helper.dart │ ├── middlewares │ │ ├── auth_middleware.dart │ │ ├── default_content_type.dart │ │ └── middlewares.dart │ └── templates │ │ └── templates.dart │ ├── models │ ├── broadcast_model.dart │ ├── config_auth_model.dart │ ├── config_model.dart │ └── slack_model.dart │ ├── repositories │ ├── config_repository.dart │ └── database_repository.dart │ └── server │ ├── core │ └── env.dart │ ├── handler_request.dart │ ├── handlers │ ├── delete_handler.dart │ ├── get_handler.dart │ ├── option_handler.dart │ ├── patch_handler.dart │ ├── post_handler.dart │ ├── put_handler.dart │ └── upload_handler.dart │ ├── json_rest_server.dart │ └── socket │ ├── socket_handler.dart │ └── websocket_handler.dart ├── pubspec.yaml ├── storage ├── 1.png ├── 2_.jpg ├── 3.png ├── images │ └── 3.png ├── pbkzeltx_jrs_1680438837786.png ├── tmvtvysf_1680438763305.png ├── umpusbdf_jrs_1680439892561.png └── ydmhsbbh_jrs_1680439372065.png └── test ├── json_rest_server_test.dart └── server ├── handlers ├── auth_handler_custom_fields_test.dart ├── auth_handler_test.dart ├── get_handler_test.dart ├── me_handler_test.dart ├── put_handler_test.dart └── timeout_handler_test.dart ├── mock ├── auth_custom_fields_config.json ├── auth_default_config.json ├── auth_default_id_int_config.json ├── basic_config.json ├── database_int.json ├── database_uuid.json ├── env_mock.dart ├── generate_config.dart └── generate_database.dart └── server_config ├── config.yaml ├── config_bk.yaml └── database.json /.github/workflows/dart.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/.github/workflows/dart.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/LICENSE -------------------------------------------------------------------------------- /README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/README.en.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/README.md -------------------------------------------------------------------------------- /README.pt-br.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/README.pt-br.md -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/analysis_options.yaml -------------------------------------------------------------------------------- /backend/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/backend/config.yaml -------------------------------------------------------------------------------- /backend/database.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/backend/database.json -------------------------------------------------------------------------------- /backend/images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/backend/images/1.png -------------------------------------------------------------------------------- /backend/images/2_.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/backend/images/2_.jpg -------------------------------------------------------------------------------- /backend/images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/backend/images/3.png -------------------------------------------------------------------------------- /bin/json_rest_server.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/bin/json_rest_server.dart -------------------------------------------------------------------------------- /config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/config.yaml -------------------------------------------------------------------------------- /dart_socket.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/dart_socket.dart -------------------------------------------------------------------------------- /database.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/database.json -------------------------------------------------------------------------------- /example/Requests.postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/example/Requests.postman_collection.json -------------------------------------------------------------------------------- /example/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/example/config.yaml -------------------------------------------------------------------------------- /example/database.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/example/database.json -------------------------------------------------------------------------------- /example/example.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/example/example.md -------------------------------------------------------------------------------- /lib/src/commands/create_project_command.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/commands/create_project_command.dart -------------------------------------------------------------------------------- /lib/src/commands/run_command.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/commands/run_command.dart -------------------------------------------------------------------------------- /lib/src/commands/update_server_command.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/commands/update_server_command.dart -------------------------------------------------------------------------------- /lib/src/commands/version_command.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/commands/version_command.dart -------------------------------------------------------------------------------- /lib/src/core/broadcast/broadcast_base.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/broadcast/broadcast_base.dart -------------------------------------------------------------------------------- /lib/src/core/broadcast/broadcast_controller.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/broadcast/broadcast_controller.dart -------------------------------------------------------------------------------- /lib/src/core/broadcast/broadcast_factory.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/broadcast/broadcast_factory.dart -------------------------------------------------------------------------------- /lib/src/core/broadcast/slack/slack_broadcast_impl.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/broadcast/slack/slack_broadcast_impl.dart -------------------------------------------------------------------------------- /lib/src/core/broadcast/socket/socket_broadcast_impl.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/broadcast/socket/socket_broadcast_impl.dart -------------------------------------------------------------------------------- /lib/src/core/enum/broadcast_type.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/enum/broadcast_type.dart -------------------------------------------------------------------------------- /lib/src/core/enum/id_type_enum.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/enum/id_type_enum.dart -------------------------------------------------------------------------------- /lib/src/core/exceptions/command_exception.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/exceptions/command_exception.dart -------------------------------------------------------------------------------- /lib/src/core/exceptions/config_not_found_exception.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/exceptions/config_not_found_exception.dart -------------------------------------------------------------------------------- /lib/src/core/exceptions/config_notfound_exception.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/exceptions/config_notfound_exception.dart -------------------------------------------------------------------------------- /lib/src/core/exceptions/conflict_id_exception.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/exceptions/conflict_id_exception.dart -------------------------------------------------------------------------------- /lib/src/core/exceptions/database_not_found_exception.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/exceptions/database_not_found_exception.dart -------------------------------------------------------------------------------- /lib/src/core/exceptions/resource_notfound_exception.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/exceptions/resource_notfound_exception.dart -------------------------------------------------------------------------------- /lib/src/core/helper/cors_helper.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/helper/cors_helper.dart -------------------------------------------------------------------------------- /lib/src/core/helper/jwt_helper.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/helper/jwt_helper.dart -------------------------------------------------------------------------------- /lib/src/core/middlewares/auth_middleware.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/middlewares/auth_middleware.dart -------------------------------------------------------------------------------- /lib/src/core/middlewares/default_content_type.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/middlewares/default_content_type.dart -------------------------------------------------------------------------------- /lib/src/core/middlewares/middlewares.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/middlewares/middlewares.dart -------------------------------------------------------------------------------- /lib/src/core/templates/templates.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/core/templates/templates.dart -------------------------------------------------------------------------------- /lib/src/models/broadcast_model.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/models/broadcast_model.dart -------------------------------------------------------------------------------- /lib/src/models/config_auth_model.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/models/config_auth_model.dart -------------------------------------------------------------------------------- /lib/src/models/config_model.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/models/config_model.dart -------------------------------------------------------------------------------- /lib/src/models/slack_model.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/models/slack_model.dart -------------------------------------------------------------------------------- /lib/src/repositories/config_repository.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/repositories/config_repository.dart -------------------------------------------------------------------------------- /lib/src/repositories/database_repository.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/repositories/database_repository.dart -------------------------------------------------------------------------------- /lib/src/server/core/env.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/core/env.dart -------------------------------------------------------------------------------- /lib/src/server/handler_request.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/handler_request.dart -------------------------------------------------------------------------------- /lib/src/server/handlers/delete_handler.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/handlers/delete_handler.dart -------------------------------------------------------------------------------- /lib/src/server/handlers/get_handler.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/handlers/get_handler.dart -------------------------------------------------------------------------------- /lib/src/server/handlers/option_handler.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/handlers/option_handler.dart -------------------------------------------------------------------------------- /lib/src/server/handlers/patch_handler.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/handlers/patch_handler.dart -------------------------------------------------------------------------------- /lib/src/server/handlers/post_handler.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/handlers/post_handler.dart -------------------------------------------------------------------------------- /lib/src/server/handlers/put_handler.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/handlers/put_handler.dart -------------------------------------------------------------------------------- /lib/src/server/handlers/upload_handler.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/handlers/upload_handler.dart -------------------------------------------------------------------------------- /lib/src/server/json_rest_server.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/json_rest_server.dart -------------------------------------------------------------------------------- /lib/src/server/socket/socket_handler.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/socket/socket_handler.dart -------------------------------------------------------------------------------- /lib/src/server/socket/websocket_handler.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/lib/src/server/socket/websocket_handler.dart -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/pubspec.yaml -------------------------------------------------------------------------------- /storage/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/storage/1.png -------------------------------------------------------------------------------- /storage/2_.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/storage/2_.jpg -------------------------------------------------------------------------------- /storage/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/storage/3.png -------------------------------------------------------------------------------- /storage/images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/storage/images/3.png -------------------------------------------------------------------------------- /storage/pbkzeltx_jrs_1680438837786.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/storage/pbkzeltx_jrs_1680438837786.png -------------------------------------------------------------------------------- /storage/tmvtvysf_1680438763305.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/storage/tmvtvysf_1680438763305.png -------------------------------------------------------------------------------- /storage/umpusbdf_jrs_1680439892561.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/storage/umpusbdf_jrs_1680439892561.png -------------------------------------------------------------------------------- /storage/ydmhsbbh_jrs_1680439372065.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/storage/ydmhsbbh_jrs_1680439372065.png -------------------------------------------------------------------------------- /test/json_rest_server_test.dart: -------------------------------------------------------------------------------- 1 | void main() {} 2 | -------------------------------------------------------------------------------- /test/server/handlers/auth_handler_custom_fields_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/handlers/auth_handler_custom_fields_test.dart -------------------------------------------------------------------------------- /test/server/handlers/auth_handler_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/handlers/auth_handler_test.dart -------------------------------------------------------------------------------- /test/server/handlers/get_handler_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/handlers/get_handler_test.dart -------------------------------------------------------------------------------- /test/server/handlers/me_handler_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/handlers/me_handler_test.dart -------------------------------------------------------------------------------- /test/server/handlers/put_handler_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/handlers/put_handler_test.dart -------------------------------------------------------------------------------- /test/server/handlers/timeout_handler_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/handlers/timeout_handler_test.dart -------------------------------------------------------------------------------- /test/server/mock/auth_custom_fields_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/mock/auth_custom_fields_config.json -------------------------------------------------------------------------------- /test/server/mock/auth_default_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/mock/auth_default_config.json -------------------------------------------------------------------------------- /test/server/mock/auth_default_id_int_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/mock/auth_default_id_int_config.json -------------------------------------------------------------------------------- /test/server/mock/basic_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/mock/basic_config.json -------------------------------------------------------------------------------- /test/server/mock/database_int.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/mock/database_int.json -------------------------------------------------------------------------------- /test/server/mock/database_uuid.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/mock/database_uuid.json -------------------------------------------------------------------------------- /test/server/mock/env_mock.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/mock/env_mock.dart -------------------------------------------------------------------------------- /test/server/mock/generate_config.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/mock/generate_config.dart -------------------------------------------------------------------------------- /test/server/mock/generate_database.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/mock/generate_database.dart -------------------------------------------------------------------------------- /test/server/server_config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/server_config/config.yaml -------------------------------------------------------------------------------- /test/server/server_config/config_bk.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/server_config/config_bk.yaml -------------------------------------------------------------------------------- /test/server/server_config/database.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rodrigorahman/json_rest_server/HEAD/test/server/server_config/database.json --------------------------------------------------------------------------------