├── .github ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .goreleaser.yml ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── cmd ├── root.go ├── start.go └── version.go ├── go.mod ├── go.sum ├── golangci.yml ├── internal ├── handler │ ├── common │ │ ├── common_test.go │ │ ├── db.go │ │ ├── db_test.go │ │ └── homePage.go │ ├── create.go │ ├── create_test.go │ ├── delete.go │ ├── delete_test.go │ ├── handler.go │ ├── handler_test.go │ ├── list.go │ ├── list_test.go │ ├── read.go │ ├── read_test.go │ ├── replace.go │ ├── replace_test.go │ ├── update.go │ └── update_test.go ├── logger │ ├── formatter.go │ └── logger.go ├── storage │ ├── file.go │ ├── file_test.go │ ├── mock.go │ └── storage.go └── web │ ├── middleware │ ├── logger.go │ └── recovery.go │ ├── web.go │ └── web_test.go └── main.go /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | 3 | request.http 4 | 5 | *.json -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/.goreleaser.yml -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/README.md -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/cmd/root.go -------------------------------------------------------------------------------- /cmd/start.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/cmd/start.go -------------------------------------------------------------------------------- /cmd/version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/cmd/version.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/go.sum -------------------------------------------------------------------------------- /golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/golangci.yml -------------------------------------------------------------------------------- /internal/handler/common/common_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/common/common_test.go -------------------------------------------------------------------------------- /internal/handler/common/db.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/common/db.go -------------------------------------------------------------------------------- /internal/handler/common/db_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/common/db_test.go -------------------------------------------------------------------------------- /internal/handler/common/homePage.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/common/homePage.go -------------------------------------------------------------------------------- /internal/handler/create.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/create.go -------------------------------------------------------------------------------- /internal/handler/create_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/create_test.go -------------------------------------------------------------------------------- /internal/handler/delete.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/delete.go -------------------------------------------------------------------------------- /internal/handler/delete_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/delete_test.go -------------------------------------------------------------------------------- /internal/handler/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/handler.go -------------------------------------------------------------------------------- /internal/handler/handler_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/handler_test.go -------------------------------------------------------------------------------- /internal/handler/list.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/list.go -------------------------------------------------------------------------------- /internal/handler/list_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/list_test.go -------------------------------------------------------------------------------- /internal/handler/read.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/read.go -------------------------------------------------------------------------------- /internal/handler/read_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/read_test.go -------------------------------------------------------------------------------- /internal/handler/replace.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/replace.go -------------------------------------------------------------------------------- /internal/handler/replace_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/replace_test.go -------------------------------------------------------------------------------- /internal/handler/update.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/update.go -------------------------------------------------------------------------------- /internal/handler/update_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/handler/update_test.go -------------------------------------------------------------------------------- /internal/logger/formatter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/logger/formatter.go -------------------------------------------------------------------------------- /internal/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/logger/logger.go -------------------------------------------------------------------------------- /internal/storage/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/storage/file.go -------------------------------------------------------------------------------- /internal/storage/file_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/storage/file_test.go -------------------------------------------------------------------------------- /internal/storage/mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/storage/mock.go -------------------------------------------------------------------------------- /internal/storage/storage.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/storage/storage.go -------------------------------------------------------------------------------- /internal/web/middleware/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/web/middleware/logger.go -------------------------------------------------------------------------------- /internal/web/middleware/recovery.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/web/middleware/recovery.go -------------------------------------------------------------------------------- /internal/web/web.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/web/web.go -------------------------------------------------------------------------------- /internal/web/web_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/internal/web/web_test.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chanioxaris/json-server/HEAD/main.go --------------------------------------------------------------------------------