{"id":21428086,"url":"https://github.com/redhat-developer-demos/java-qotd","last_synced_at":"2026-01-04T03:08:21.182Z","repository":{"id":52858174,"uuid":"285372584","full_name":"redhat-developer-demos/java-qotd","owner":"redhat-developer-demos","description":"Java quotes example application","archived":false,"fork":false,"pushed_at":"2021-05-17T14:38:36.000Z","size":64,"stargazers_count":3,"open_issues_count":1,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-23T07:48:07.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/redhat-developer-demos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-05T18:28:34.000Z","updated_at":"2022-06-26T07:37:27.000Z","dependencies_parsed_at":"2022-08-23T00:31:12.982Z","dependency_job_id":null,"html_url":"https://github.com/redhat-developer-demos/java-qotd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fjava-qotd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fjava-qotd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fjava-qotd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fjava-qotd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer-demos","download_url":"https://codeload.github.com/redhat-developer-demos/java-qotd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243934097,"owners_count":20371121,"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":"2024-11-22T22:10:19.584Z","updated_at":"2026-01-04T03:08:21.134Z","avatar_url":"https://github.com/redhat-developer-demos.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java variant of quotd application\n\nThis project uses Quarkus, the Supersonic Subatomic Java Framework.\n\nIf you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .\n\n## API Methods\n\n- `/api/index` - returns String 'qotd'\n- `/api/quotes` - returns all available Quotes as JSON\n- `/api/quotes/random` - returns random quote from available list\n- `/api/quotes/{quoteId}` - returns Quote by quoteId\n- `/api/quotes/author/{author}` - returns Quotes by author\n- `/api/quotes/add` - adds a new quote\n- `/api/quotes/writtenin` - returns the programming language \"Java\"\n- `/api/quotes/version` - returns version of the API \"v1\"\n\n## Liveness and Readiness \n\n- `/health/ready` - shows the readiness of the application\n- `/health/live` - shows the liveness of the application\n\n## Running the application in dev mode\n\nYou can run your application in dev mode that enables live coding using:\n```\n./mvnw quarkus:dev\n```\n\n## Packaging and running the application\n\nThe application can be packaged using `./mvnw package`.\nIt produces the `java-qotd-1.0.0-SNAPSHOT-runner.jar` file in the `/target` directory.\nBe aware that it’s not an _über-jar_ as the dependencies are copied into the `target/lib` directory.\n\nThe application is now runnable using `java -jar target/java-qotd-1.0.0-SNAPSHOT-runner.jar`.\n\n## Creating a native executable\n\nYou can create a native executable using: `./mvnw package -Pnative`.\n\nOr, if you don't have GraalVM installed, you can run the native executable build in a container using: `./mvnw package -Pnative -Dquarkus.native.container-build=true`.\n\nYou can then execute your native executable with: `./target/java-qotd-1.0.0-SNAPSHOT-runner`\n\nIf you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fjava-qotd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer-demos%2Fjava-qotd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fjava-qotd/lists"}