{"id":25862701,"url":"https://github.com/digisoch/rest_api_application","last_synced_at":"2026-05-12T18:17:04.285Z","repository":{"id":267745154,"uuid":"902209608","full_name":"DigiSoch/REST_API_APPLICATION","owner":"DigiSoch","description":"A Spring Boot REST API application for managing student data with support for XML and JSON formats.","archived":false,"fork":false,"pushed_at":"2025-02-03T15:00:49.000Z","size":85,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T20:39:38.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://restapiapp.onrender.com/","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/DigiSoch.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":"2024-12-12T05:57:29.000Z","updated_at":"2025-02-03T15:06:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6e43e9b-148b-4184-84c2-6fe7fecb55f6","html_url":"https://github.com/DigiSoch/REST_API_APPLICATION","commit_stats":null,"previous_names":["arvind-git-code/rest_api_application","digisoch/rest_api_application"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiSoch%2FREST_API_APPLICATION","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiSoch%2FREST_API_APPLICATION/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiSoch%2FREST_API_APPLICATION/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiSoch%2FREST_API_APPLICATION/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DigiSoch","download_url":"https://codeload.github.com/DigiSoch/REST_API_APPLICATION/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241439768,"owners_count":19963100,"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-03-01T23:56:07.851Z","updated_at":"2026-05-12T18:16:59.250Z","avatar_url":"https://github.com/DigiSoch.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Student REST API\n\nA Spring Boot REST API application for managing student data with support for XML and JSON formats.\n\n## Live At\nThe application is deployed at: [https://restapiapp.onrender.com](https://restapiapp.onrender.com)\n\n## Features\n- CRUD operations for student management\n- Support for both XML and JSON formats\n- In-memory data storage\n- Cross-Origin Resource Sharing (CORS) enabled\n- Detailed API documentation on homepage\n\n## Tech Stack\n- Java 17\n- Spring Boot 3.2.1\n- Jakarta XML Binding (JAXB)\n- Docker\n- Maven\n\n## API Endpoints\n\n### 1. Get All Students \nGET /api/students\ncurl https://restapiapp.onrender.com/api/students\n\n### 2. Get Student by ID\nGET /api/students/{id}\ncurl https://restapiapp.onrender.com/api/students/1\n\n### 3. Add New Student\nPOST /api/students\n# XML Format\ncurl -X PUT \"https://restapiapp.onrender.com/api/students\" \\\n-H \"Content-Type: application/xml\" \\\n-H \"Accept: application/xml\" \\\n-d '\u003cstudent\u003e\n        \u003cname\u003eArvind Updated\u003c/name\u003e\n        \u003clocation\u003eMumbai\u003c/location\u003e\n        \u003cphone\u003e9876543210\u003c/phone\u003e\n        \u003ccourses\u003e\n            \u003ccourse\u003eBCA\u003c/course\u003e\n        \u003c/courses\u003e\n    \u003c/student\u003e'\n\n# JSON Format\ncurl -X POST https://restapiapp.onrender.com/api/students \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\n            \"name\": \"John Doe\",\n            \"location\": \"New York\",\n            \"phone\": \"1234567890\",\n            \"course\": [\"Computer Science\"]\n        }'\n\n### 4. Update Student\nPUT /api/students/{id}\ncurl -X PUT https://restapiapp.onrender.com/api/students/1 \\\n     -H \"Content-Type: application/xml\" \\\n     -d '\u003cstudent\u003e\n            \u003cname\u003eUpdated Name\u003c/name\u003e\n            \u003clocation\u003eUpdated Location\u003c/location\u003e\n            \u003cphone\u003e9876543210\u003c/phone\u003e\n            \u003ccourse\u003eUpdated Course\u003c/course\u003e\n        \u003c/student\u003e'\n\n### 5. Partial Update Student\nPATCH /api/students/{id}\ncurl -X PATCH https://restapiapp.onrender.com/api/students/1 \\\n     -H \"Content-Type: application/xml\" \\\n     -d '\u003cstudent\u003e\n            \u003cname\u003eNew Name\u003c/name\u003e\n        \u003c/student\u003e'\n\n### 6. Delete Student\nDELETE /api/students/{id}\ncurl -X DELETE https://restapiapp.onrender.com/api/students/1\n\n## Local Development\n\n### Prerequisites\n- Java 17 or higher\n- Maven 3.6 or higher\n- Docker (optional)\n\n### Running Locally\n\n1. Clone the repository\n```bash\ngit clone https://github.com/arvind-git-code/REST_API_APPLICATION.git\ncd REST_API_APPLICATION\n```\n\n2. Build the project\n```bash\n./mvnw clean package\n```\n\n3. Run the application\n```bash\n./mvnw spring-boot:run\n```\n\nThe application will be available at `http://localhost:8080`\n\n### Running with Docker\n\n1. Build the Docker image\n```bash\ndocker build -t REST_API_APPLICATION .\n```\n\n2. Run the container\n```bash\ndocker run -p 8080:8080 REST_API_APPLICATION\n```\n\n## Deployment\n\nThe application is deployed on Render.com using Docker containerization. The deployment process is automated through Render's continuous deployment feature.\n\n### Environment Variables\n- `PORT`: The port on which the application runs (default: 8080)\n\n## Data Structure\n\n### Student Model\n```xml\n\u003cstudent\u003e\n    \u003cid\u003estring\u003c/id\u003e\n    \u003cname\u003estring\u003c/name\u003e\n    \u003clocation\u003estring\u003c/location\u003e\n    \u003cphone\u003estring\u003c/phone\u003e\n    \u003ccourse\u003earray of strings\u003c/course\u003e\n\u003c/student\u003e\n```\n\n## Error Handling\n- 200 OK: Successful operation\n- 404 Not Found: Student not found\n- 500 Internal Server Error: Server-side error\n\n## Notes\n- All endpoints support both XML and JSON formats\n- Set appropriate Content-Type header for POST, PUT, and PATCH requests\n- For JSON requests, use `Content-Type: application/json`\n- For XML requests, use `Content-Type: application/xml`\n- Data is stored in memory and resets when the application restarts\n\nContributions are welcome! Please follow these steps:\n\nFork the repository.\n\n1. Create a new branch: `git checkout -b feature/your-feature-name`\n\n2. Make your changes and commit them: `git commit -m 'Add some feature'`\n\n3. Push to the branch: `git push origin feature/your-feature-name`\n\n4. Open a pull request.\n\n\n## Connect with me\n\n- **Name:** Arvind Kumar\n- **LinkedIn:** [LinkedIn Profile URL](https://www.linkedin.com/in/arvind-kumar-a8b591221/)\n- **Email:** [Email](mailto:arvindkumarlbsmca@gmail.com).\n\n## Author\nArvind Maurya\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigisoch%2Frest_api_application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigisoch%2Frest_api_application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigisoch%2Frest_api_application/lists"}