{"id":27370119,"url":"https://github.com/datastaxdevs/spring-boot-astra-data-api","last_synced_at":"2025-04-13T08:48:02.643Z","repository":{"id":278014542,"uuid":"934125730","full_name":"datastaxdevs/spring-boot-astra-data-api","owner":"datastaxdevs","description":"TodoList with Spring Boot and AstraDB using Data API","archived":false,"fork":false,"pushed_at":"2025-02-17T14:07:45.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-17T15:23:12.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/datastaxdevs.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":"2025-02-17T10:12:51.000Z","updated_at":"2025-02-17T14:07:48.000Z","dependencies_parsed_at":"2025-02-17T15:33:23.383Z","dependency_job_id":null,"html_url":"https://github.com/datastaxdevs/spring-boot-astra-data-api","commit_stats":null,"previous_names":["datastaxdevs/spring-boot-astra-data-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datastaxdevs%2Fspring-boot-astra-data-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datastaxdevs%2Fspring-boot-astra-data-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datastaxdevs%2Fspring-boot-astra-data-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datastaxdevs%2Fspring-boot-astra-data-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datastaxdevs","download_url":"https://codeload.github.com/datastaxdevs/spring-boot-astra-data-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688188,"owners_count":21145762,"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":[],"created_at":"2025-04-13T08:48:02.103Z","updated_at":"2025-04-13T08:48:02.616Z","avatar_url":"https://github.com/datastaxdevs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n\n- Clone the repository\n\n```console\ngit@github.com:datastaxdevs/spring-boot-astra-spring-data-cassandra.git\n```\n\n- 1. Create an account in Astra DB for free\nhttps://astra.datastax.com/\n\n- 2. Create a Database\nhttps://docs.datastax.com/en/astra-db-serverless/databases/create-database.html\n\n- 3. Create an Application token\nhttps://docs.datastax.com/en/astra-db-serverless/administration/manage-application-tokens.html\n\n## Setup\n\n- Open `application.propoerties` and change `datastax.astra.token` with your token and `datastax.astra.endpoint` with the endpoint of your database\n\n```ini\ndatastax.astra.token=\u003cchange_me\u003e\ndatastax.astra.endpoint=\u003cchange_me\u003e\n```\n\n## use the application\n\n- Start the application (first start could take up a few seconds as the table is created for you)\n\n```bash\nmvn spring-boot:run\n```\n\n- List your todos (or in your browser [http://localhost:8080/tables/todos](http://localhost:8080/todos))\n\n```bash\ncurl -X GET http://localhost:8080/collections/todos\ncurl -X GET http://localhost:8080/tables/todos\n```\n\n- Create a todo\n\n```bash\ncurl -X POST http://localhost:8080/collections/todos \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\"title\": \"New Todo\", \"description\": \"Todo details\", \"completed\": false}'\n     \ncurl -X POST http://localhost:8080/tables/todos \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\"title\": \"New Todo\", \"description\": \"Todo details\", \"completed\": false}'\n```\n\n- You can go data explorer:\n![Screenshot 2025-02-17 at 15 06 28](https://github.com/user-attachments/assets/403d8553-05f0-4b9e-900a-226072464a91)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatastaxdevs%2Fspring-boot-astra-data-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatastaxdevs%2Fspring-boot-astra-data-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatastaxdevs%2Fspring-boot-astra-data-api/lists"}