{"id":17941053,"url":"https://github.com/IBM/cloudant-spring","last_synced_at":"2025-03-24T12:30:34.115Z","repository":{"id":27102219,"uuid":"112495760","full_name":"IBM/cloudant-spring","owner":"IBM","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-20T15:35:26.000Z","size":494,"stargazers_count":12,"open_issues_count":2,"forks_count":12,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-20T15:44:22.319Z","etag":null,"topics":["cloudant","spring","spring-boot","spring-framework"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IBM.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2017-11-29T15:56:01.000Z","updated_at":"2025-03-20T15:34:29.000Z","dependencies_parsed_at":"2023-12-21T19:26:18.595Z","dependency_job_id":"0aea669e-3782-4f4f-add0-ffa5d4860047","html_url":"https://github.com/IBM/cloudant-spring","commit_stats":{"total_commits":142,"total_committers":11,"mean_commits":"12.909090909090908","dds":0.5140845070422535,"last_synced_commit":"dced399c7f38e5aea038a9bdf3a266eef0600b2b"},"previous_names":["cloudant-labs/cloudant-spring"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM%2Fcloudant-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM%2Fcloudant-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM%2Fcloudant-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM%2Fcloudant-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IBM","download_url":"https://codeload.github.com/IBM/cloudant-spring/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245008296,"owners_count":20546318,"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":["cloudant","spring","spring-boot","spring-framework"],"created_at":"2024-10-29T01:05:00.674Z","updated_at":"2025-03-24T12:30:33.750Z","avatar_url":"https://github.com/IBM.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudant Spring Boot Starter\n\nThis project is a \"Spring Boot starter\" which allows users to get up and running quickly with the official\n[Cloudant SDK for Java](https://github.com/IBM/cloudant-java-sdk) in Spring boot applications as well\nas providing autoconfiguration via `application.properties` or another configuration source (environment, java properties, etc)\n\n_Note this library is experimental and not covered by IBM Cloudant support._\n_If you have problems using the library please refer to [issues](#issues)._\n\n## Using\n\nSee the [sample](sample) directory which provides an example application with the following features:\n\n- A Spring Boot MVC application\n- Some REST endpoints\n- Configuration properties (prefixed `cloudant.`) which are automatically loaded by the Cloudant client\n- Other customer configuration properties (in this case named `myconfig.db`)\n\nThe sample has two rest endpoints, `/all_dbs` which returns a list of all databases for the Cloudant account, and\n`/all_docs` which returns a list of all document ids for the database configured at `myconfig.db`.\n\nTo run the sample, you will need to edit the `application.properties` file, substituting your own settings as necessary:\n\n```properties\ncloudant.auth.type=iam\ncloudant.url=https://\u003cuuid\u003e-bluemix.cloudantnosqldb.appdomain.cloud\ncloudant.apikey=my-iam-api-key\nmyconfig.db=my-test-db\n```\n\nRun application:\n\n```shell\ngradle bootRun\n```\n\nNow with the example web app running you can make REST requests to it (e.g. with `curl`).\n\nREST request for `all_dbs`:\n```shell\ncurl localhost:8080/all_dbs\ntest-db-04178485-8f15-4c3b-9138-d6ed68edb1d4\ntest-db-07b6c52a-e2e9-4da5-b641-6233367f8af9\ntest-db-0810edcf-fff6-4093-af01-f081fda77e74\ntest-db-08d3cef8-50db-42a5-af9f-991493cbce50\ntest-db-0c8255b0-ee10-4d4c-b104-def796305ebe\n...\n```\n\nREST request for `all_docs`:\n```shell\ncurl localhost:8080/all_docs\n4826c5d0c7c9eba0babc7a17699405af\n6070d2165fd43a19bd0c51858b4597cc\n856599e6ffb52f47532e280de607146d\nf28fa5b29ca5aed35ba28803401d17a7\nfd6d29a324e4ac7d972d15d577a36524\n...\n```\n\n## Properties metadata\n\nThe jar is built with `spring-configuration-metadata.json` which gives extra properties metadata and hints\nwhen editing a properties file in some IDEs. See screenshots below for examples:\n\n![](Screenshot%20from%202022-06-29%2012-26-27.png)\n\n![](Screenshot%20from%202022-06-29%2012-27-38.png)\n\n## Issues\n\nBefore opening a new issue please consider the following:\n* Please try to reproduce the issue using the latest version.\n* Please check the [existing issues](/issues)\nto see if the problem has already been reported. Note that the default search\nincludes only open issues, but it may already have been closed.\n* When opening a new issue [here in github](/issues) please complete the template fully.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIBM%2Fcloudant-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIBM%2Fcloudant-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIBM%2Fcloudant-spring/lists"}