{"id":20726863,"url":"https://github.com/hmcts/draft-store","last_synced_at":"2025-04-23T18:46:28.932Z","repository":{"id":37821547,"uuid":"101856033","full_name":"hmcts/draft-store","owner":"hmcts","description":"Provides a ’save and resume’ feature for reform applications","archived":false,"fork":false,"pushed_at":"2025-04-12T12:09:21.000Z","size":3248,"stargazers_count":2,"open_issues_count":11,"forks_count":5,"subscribers_count":122,"default_branch":"master","last_synced_at":"2025-04-12T13:26:34.146Z","etag":null,"topics":["jenkins-cft","jenkins-cft-d-i","team-platform"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmcts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-30T08:16:59.000Z","updated_at":"2025-01-09T08:32:30.000Z","dependencies_parsed_at":"2024-04-05T12:23:49.445Z","dependency_job_id":"f89479a2-f4be-44c3-8048-fe21cbccbd4c","html_url":"https://github.com/hmcts/draft-store","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmcts%2Fdraft-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmcts%2Fdraft-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmcts%2Fdraft-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmcts%2Fdraft-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmcts","download_url":"https://codeload.github.com/hmcts/draft-store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250495484,"owners_count":21440188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["jenkins-cft","jenkins-cft-d-i","team-platform"],"created_at":"2024-11-17T04:27:56.022Z","updated_at":"2025-04-23T18:46:28.914Z","avatar_url":"https://github.com/hmcts.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/hmcts/draft-store.svg?branch=master)](https://travis-ci.com/hmcts/draft-store)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/35eb37f39906421387cfd120c35a538d)](https://www.codacy.com/app/HMCTS/draft-store)\n[![codecov](https://codecov.io/gh/hmcts/draft-store/branch/master/graph/badge.svg)](https://codecov.io/gh/hmcts/draft-store)\n\n# Draft store\nThe Draft store micro-service provides a ’save and resume’ feature for reform applications via an internal API. \nIt stores a draft json document against the userId provided.\n\n![Low Level Design](/doc/design.png)\n\n## Getting Started\n\n### Prerequisites\n- [JDK 8](https://java.com)\n\n### Building\nTo build the project execute the following command:\n```bash\n./gradlew build\n```\n\n### Running\nBefore you run the application you have to define database connection.  \nYou can do this be either setting environment variables or creating `application-default.yaml` file.  \nRun the application by executing:\n```bash\n./gradlew bootRun\n```\n\n### Consuming this service locally\nThis image is available in the HMCTS azure container registry (currently private)  \nImage url is: `hmcts.azurecr.io/hmcts/draft-store-service`  \nSee required config in: [docker-compose.yml](docker-compose.yml)\n\n### Operational note\nWhen operating this service with live data, no one should under any circumstances view the encrypted data. \nThe reason for this is because it would be considered under [Article 14 of GDPR](https://gdpr-info.eu/art-14-gdpr/) that we had commenced processing data. \nThen we would have thirty days to notify any third party parties mentioned in the application that we had commenced processing their data. \nThis must not happen as the citizen, who is creating the application, has not yet submitted their application.\n\n## API documentation\nAPI documentation is provided with Swagger.  \nYou can view the json spec here: [http://localhost:8800/v2/api-docs](http://localhost:8800/v2/api-docs)  \nSwagger UI is available here: [http://localhost:8800/swagger-ui.html](http://localhost:8800/swagger-ui.html)  \nUpdates to master documentation are reflected here: [https://hmcts.github.io/reform-api-docs/swagger.html](https://hmcts.github.io/reform-api-docs/swagger.html?url=https://hmcts.github.io/reform-api-docs/specs/draft-store.json)\n\n## Developing\n\n### Unit tests\nTo run all unit tests execute the following command:\n```bash\n./gradlew test\n```\n\n### Integration tests\nTo run all integration tests execute the following command:\n```bash\n./gradlew integration\n```\n\n### Code quality checks\nWe use [checkstyle](http://checkstyle.sourceforge.net/) and [PMD](https://pmd.github.io/).  \nTo run all checks execute the following command:\n```bash\n./lint.sh\n```\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmcts%2Fdraft-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmcts%2Fdraft-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmcts%2Fdraft-store/lists"}