{"id":31287762,"url":"https://github.com/miriappel/spring-library-api","last_synced_at":"2026-04-13T17:31:27.905Z","repository":{"id":313230721,"uuid":"1048003761","full_name":"MiriAppel/spring-library-api","owner":"MiriAppel","description":"Java REST API built with Spring Boot and JPA for managing library users, books and magazines.","archived":false,"fork":false,"pushed_at":"2025-09-20T19:39:49.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-20T21:24:25.224Z","etag":null,"topics":["hibernate","java","maven","rest-api","spring-boot"],"latest_commit_sha":null,"homepage":"","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/MiriAppel.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T17:50:22.000Z","updated_at":"2025-09-20T19:48:48.000Z","dependencies_parsed_at":"2025-09-04T18:33:39.343Z","dependency_job_id":"06bd29cb-6a87-4a69-8584-b56978036671","html_url":"https://github.com/MiriAppel/spring-library-api","commit_stats":null,"previous_names":["miriappel/library-management-system","miriappel/spring-library-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MiriAppel/spring-library-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiriAppel%2Fspring-library-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiriAppel%2Fspring-library-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiriAppel%2Fspring-library-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiriAppel%2Fspring-library-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MiriAppel","download_url":"https://codeload.github.com/MiriAppel/spring-library-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiriAppel%2Fspring-library-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278308622,"owners_count":25965654,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hibernate","java","maven","rest-api","spring-boot"],"created_at":"2025-09-24T11:11:00.428Z","updated_at":"2025-10-04T11:57:24.417Z","avatar_url":"https://github.com/MiriAppel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Library API\n\nA REST API for managing library users, books, and magazines built with Spring Boot.\n\n## Features\n\n- **User Management**: Add, update, delete, and view library users\n- **Item Management**: Manage books and magazines in the library\n- **REST API**: Full CRUD operations via HTTP endpoints\n\n## Technologies Used\n\n- **Java 24**\n- **Spring Boot 3.4.4**\n- **Spring Data JPA**\n- **Hibernate**\n- **Microsoft SQL Server**\n- **Maven**\n- **Lombok**\n\n## API Endpoints\n\n### Users\n- `GET /user/getAll` - Get all users\n- `POST /user/add` - Add new user\n- `PUT /user/update/{id}` - Update user\n- `DELETE /user/delete/{id}` - Delete user\n\n### Items\n- `GET /item/getAll` - Get all items\n- `POST /item/add` - Add new item\n- `PUT /item/update/{id}` - Update item\n- `DELETE /item/delete/{id}` - Delete item\n\n## Database Configuration\n\nConfigure your SQL Server connection in `application.properties`:\n\n```properties\nspring.datasource.url=jdbc:sqlserver://[server];database=[database_name];trustServerCertificate=true;\nspring.datasource.username=[username]\nspring.datasource.password=[password]\n```\n\n## How to Run\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/MiriAppel/spring-library-api.git\n   cd spring-library-api\n   ```\n2. Configure database connection in `application.properties`\n3. Run the application:\n   ```bash\n   mvn spring-boot:run\n   ```\n4. Access the API at `http://localhost:8080`\n\n## Architecture\n\nBuilt using **layered architecture** with clear separation of concerns:\n- **Controllers** - Handle HTTP requests and responses\n- **Services** - Business logic and validation\n- **Repositories** - Data access layer with JPA\n- **Entities** - Domain models with inheritance (Book/Magazine extend Item)\n\n## Project Structure\n\n```\nsrc/main/java/com/example/SpringProject/\n├── controllers/     # REST controllers\n├── entities/        # JPA entities\n├── repositories/    # Data repositories\n└── services/        # Business logic\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiriappel%2Fspring-library-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiriappel%2Fspring-library-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiriappel%2Fspring-library-api/lists"}