{"id":21107365,"url":"https://github.com/masakdirt/clear_solutions_techtask","last_synced_at":"2026-04-14T05:33:51.710Z","repository":{"id":235925548,"uuid":"791558008","full_name":"MasakDirt/clear_solutions_techtask","owner":"MasakDirt","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-02T18:40:34.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T19:48:43.898Z","etag":null,"topics":["authorization","docker-compose","java","javacore","jwt-token","maven","postgresql","refresh-token","spring","springboot","springsecurity"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MasakDirt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-24T23:50:13.000Z","updated_at":"2024-05-02T18:40:38.000Z","dependencies_parsed_at":"2024-05-01T18:02:18.639Z","dependency_job_id":"ad8f778b-c9f8-4e70-bbcc-d42a3ec83d61","html_url":"https://github.com/MasakDirt/clear_solutions_techtask","commit_stats":null,"previous_names":["masakdirt/clear_solutions_techtask"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MasakDirt/clear_solutions_techtask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasakDirt%2Fclear_solutions_techtask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasakDirt%2Fclear_solutions_techtask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasakDirt%2Fclear_solutions_techtask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasakDirt%2Fclear_solutions_techtask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MasakDirt","download_url":"https://codeload.github.com/MasakDirt/clear_solutions_techtask/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasakDirt%2Fclear_solutions_techtask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31784253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authorization","docker-compose","java","javacore","jwt-token","maven","postgresql","refresh-token","spring","springboot","springsecurity"],"created_at":"2024-11-20T00:38:48.964Z","updated_at":"2026-04-14T05:33:51.691Z","avatar_url":"https://github.com/MasakDirt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Documentation for Clear Solutions Task\r\n\r\n## Prerequisites\r\n- Java 17 or higher\r\n- Docker Desktop\r\n\r\n## Initializing the Database\r\n- How to initialize the database I describe in those file: [docker-db-initialization](Postgres_Docker_Init.md)\r\n\r\n## Running the Web Application\r\n1. Start Docker container;\r\n2. Start Application: [ClearSolutionsApplication🟢](src%2Fmain%2Fjava%2Ftech%2Ftask%2Fclearsolutions%2FClearSolutionsApplication.java);\r\n3. The application will be available at: `http://localhost:8080`.\r\n\r\n## Endpoints\r\n### Authentication (/api/v1/auth)\r\n- **POST /signup**: Register a user. Accepts [UserCreateRequest](src%2Fmain%2Fjava%2Ftech%2Ftask%2Fclearsolutions%2Fdto%2FUserCreateRequest.java)(date format: `dd.MM.yyyy`), checks users birthdate for valid. Returns User Response.\r\n- **POST /login**: Authenticate a user. Accepts [LoginRequest](src%2Fmain%2Fjava%2Ftech%2Ftask%2Fclearsolutions%2Fdto%2FLoginRequest.java). Return user with access and refresh token.\r\n- **POST /refresh-token**: Refresh access token. Accepts [TokenRefreshRequest.java](src%2Fmain%2Fjava%2Ftech%2Ftask%2Fclearsolutions%2Fdto%2FTokenRefreshRequest.java). Return access and refresh token.\r\n\r\n### Users (/api/v1/user)\r\n- **PATCH /special-fields**: Update special fields. Accepts [UserSpecialFieldsUpdate](src%2Fmain%2Fjava%2Ftech%2Ftask%2Fclearsolutions%2Fdto%2FUserSpecialFieldsUpdate.java), checks users birthdate for valid. Available only for same users!\r\n- **PUT**: Update all users fields. Accepts [UserUpdateRequest](src%2Fmain%2Fjava%2Ftech%2Ftask%2Fclearsolutions%2Fdto%2FUserUpdateRequest.java)(date format: `dd.MM.yyyy`),, checks users birthdate for valid. Available only for same users!\r\n- **DELETE /{id}**: Delete user. Accepts **id**. Available only for same users!\r\n- **GET**: Get a list of users by dates. Accepts dates '_from_' and '_to_' (format: `yyyy-MM-dd`). All users has access!\r\n\r\n### Logout\r\n- **POST /api/v1/logout**: Logout user from system, if he authenticated. Return String.\r\n\r\n## Swagger Documentation\r\n- To check swagger documentation you can follow this link, while Application is running: http://localhost:8080/swagger-ui/index.html\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasakdirt%2Fclear_solutions_techtask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasakdirt%2Fclear_solutions_techtask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasakdirt%2Fclear_solutions_techtask/lists"}