{"id":22976465,"url":"https://github.com/interviewstreet/springboot-rest-api-archetype","last_synced_at":"2025-04-02T08:20:53.290Z","repository":{"id":144450673,"uuid":"163120663","full_name":"interviewstreet/springboot-rest-api-archetype","owner":"interviewstreet","description":"An archetype which contains a sample Spring Boot REST API project","archived":false,"fork":false,"pushed_at":"2019-05-29T17:02:16.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":81,"default_branch":"master","last_synced_at":"2025-02-07T23:26:58.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/interviewstreet.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":"2018-12-26T00:52:42.000Z","updated_at":"2019-01-07T23:21:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6c55520-9e30-4a63-8128-450234dbd2ac","html_url":"https://github.com/interviewstreet/springboot-rest-api-archetype","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/interviewstreet%2Fspringboot-rest-api-archetype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fspringboot-rest-api-archetype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fspringboot-rest-api-archetype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fspringboot-rest-api-archetype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interviewstreet","download_url":"https://codeload.github.com/interviewstreet/springboot-rest-api-archetype/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246777791,"owners_count":20832033,"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-12-15T00:51:18.214Z","updated_at":"2025-04-02T08:20:53.285Z","avatar_url":"https://github.com/interviewstreet.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# springboot-rest-api-archetype\nAn archetype which contains a sample Spring Boot REST API project\n\n## Sample Usage\n\n- If the project `groupId`, `artifactId`, and `version` is not specified the default values `com.hackerrank.projects`, `springboot-rest-api-sample`, and `1.0.0-SNAPSHOT` respectively are used:\n\n    ```bash\n    mvn archetype:generate \\\n    -DarchetypeGroupId=com.hackerrank.archetypes \\\n    -DarchetypeArtifactId=springboot-rest-api \\\n    -DarchetypeVersion=1.0.0\n    ```\n\n    The generated project strucure is:\n\n    ```text\n    springboot-rest-api-sample\n    ├── pom.xml\n    └── src\n        ├── main\n        │   ├── java\n        │   │   └── com\n        │   │       └── hackerrank\n        │   │           └── projects\n        │   │               ├── Application.java\n        │   │               └── controllers\n        │   │                   └── GreetingsController.java\n        │   └── resources\n        │       └── application.properties\n        └── test\n            └── java\n                └── com\n                    └── hackerrank\n                        └── projects\n                            └── requests\n                                └── GreetingsControllerTest.java\n    ```\n\n    The POM configuration is:\n\n    ```xml\n    \u003cgroupId\u003ecom.hackerrank.projects\u003c/groupId\u003e\n    \u003cartifactId\u003espringboot-rest-api-sample\u003c/artifactId\u003e\n    \u003cversion\u003e1.0\u003c/version\u003e\n    \u003cpackaging\u003ejar\u003c/packaging\u003e\n    ```\n\n- The project `groupId`, `artifactId`, and `version` could also be specified:\n\n    ```bash\n    mvn archetype:generate \\\n    -DarchetypeGroupId=com.hackerrank.archetypes \\\n    -DarchetypeArtifactId=springboot-rest-api \\\n    -DarchetypeVersion=1.0.0 \\\n    -DgroupId=my.group.id \\\n    -DartifactId=my-artifact-id \\\n    -Dversion=1.0\n    ```\n\n    ```text\n    my-artifact-id\n    ├── pom.xml\n    └── src\n        ├── main\n        │   ├── java\n        │   │   └── my\n        │   │       └── group\n        │   │           └── id\n        │   │               ├── Application.java\n        │   │               └── controllers\n        │   │                   └── GreetingsController.java\n        │   └── resources\n        │       └── application.properties\n        └── test\n            └── java\n                └── my\n                    └── group\n                        └── id\n                            └── requests\n                                └── GreetingsControllerTest.java\n    ```\n\n    The POM configuration is:\n\n    ```xml\n    \u003cgroupId\u003emy.group.id\u003c/groupId\u003e\n    \u003cartifactId\u003emy-artifact-id\u003c/artifactId\u003e\n    \u003cversion\u003e1.0\u003c/version\u003e\n    \u003cpackaging\u003ejar\u003c/packaging\u003e\n    ```\n\n## Archetype Testing\nThe archetype testing is done using the `maven archetype plugin`. The tests are present in `src/test/resources/projects` directory. The first test validates the project generation and runs code style checks and the second test validates build success by running tests on the generated project.\n\n```text\nsrc/test/resources/projects\n├── checkstyle\n│   ├── archetype.properties\n│   ├── goal.txt\n│   └── verify.bsh\n├── package\n│   ├── archetype.properties\n│   ├── goal.txt\n│   └── verify.bsh\n└── settings.xml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterviewstreet%2Fspringboot-rest-api-archetype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterviewstreet%2Fspringboot-rest-api-archetype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterviewstreet%2Fspringboot-rest-api-archetype/lists"}