{"id":19661301,"url":"https://github.com/deerborg/webservice","last_synced_at":"2025-05-01T10:33:31.416Z","repository":{"id":239525780,"uuid":"799770415","full_name":"deerborg/WebService","owner":"deerborg","description":"This project consists of a web service for user registration. It includes a front-end developed with React and a back-end implemented with Spring Boot. Our project is still in development, and we welcome your contributions!","archived":false,"fork":false,"pushed_at":"2024-05-26T09:54:29.000Z","size":148,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T21:13:46.133Z","etag":null,"topics":["example","fullstack-development","learning","react","springsecurity","webservice"],"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/deerborg.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-13T04:14:57.000Z","updated_at":"2024-10-08T16:07:22.000Z","dependencies_parsed_at":"2024-05-18T13:36:34.391Z","dependency_job_id":"5673c471-eb75-42f1-9945-75384e31fcfa","html_url":"https://github.com/deerborg/WebService","commit_stats":null,"previous_names":["deerborg/webservice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deerborg%2FWebService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deerborg%2FWebService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deerborg%2FWebService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deerborg%2FWebService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deerborg","download_url":"https://codeload.github.com/deerborg/WebService/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251860651,"owners_count":21655779,"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":["example","fullstack-development","learning","react","springsecurity","webservice"],"created_at":"2024-11-11T16:06:53.411Z","updated_at":"2025-05-01T10:33:31.364Z","avatar_url":"https://github.com/deerborg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebService\n\nThis project contains a web service for user registration. It includes a front-end written in React and a back-end written in Spring Boot.\n\n## Installation\n\n1. Clone the project:\n\n```\ngit clone \u003cproject-url\u003e\n```\n\n2. Navigate to the project directory:\n\n```\ncd \u003cproject-directory\u003e\n```\n\n3. Start the React application:\n\n```\ncd frontend\nnpm install\nnpm start\n```\n\n4. Start the Spring Boot application:\n\n```\ncd ..\nmvn spring-boot:run\n```\n\n5. Visit `http://localhost:5173` in your browser to view the application.\n\n## Usage\n\nWebService provides a simple interface for user registration. The React application allows users to enter their name, email address, and password. This information is processed and saved via the UserController in the Spring Boot backend.\n\n## Endpoints\n\n### Create User Registration\n\n- **URL:** `/api/v1/users`\n- **Method:** POST\n- **Description:** Creates a new user registration.\n- **Parameters:**\n    - `username` (string, required): User's username.\n    - `email` (string, required): User's email address.\n    - `password` (string, required): User's password.\n- **Example Usage:**\n  ```http\n  POST /api/v1/users HTTP/1.1\n  Content-Type: application/json\n\n  {\n      \"username\": \"user\",\n      \"email\": \"user@example.com\",\n      \"password\": \"password123\"\n  }\n  ```\n- **Successful Response:**\n  ```json\n  {\n      \"status\": \"success\",\n      \"data\": {\n          \"id\": 1,\n          \"username\": \"user\",\n          \"email\": \"user@example.com\"\n      }\n  }\n  ```\n- **Error Response:**\n  ```json\n  {\n      \"status\": \"error\",\n      \"message\": \"Username already taken.\"\n  }\n  ```\n\n## License\n\nThis project is licensed under the MIT License. For more information, see the [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeerborg%2Fwebservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeerborg%2Fwebservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeerborg%2Fwebservice/lists"}