{"id":30783390,"url":"https://github.com/huseynovvusal/spring-blog-api","last_synced_at":"2025-09-05T10:54:19.753Z","repository":{"id":310021909,"uuid":"1035331720","full_name":"huseynovvusal/spring-blog-api","owner":"huseynovvusal","description":"🤓 A RESTful blog API built with Java Spring Boot including features like JWTs, Spring Security, and more. 🌱 Perfect for learning, and we especially appreciate contributions from beginners!","archived":false,"fork":false,"pushed_at":"2025-09-03T11:32:52.000Z","size":168,"stargazers_count":4,"open_issues_count":13,"forks_count":15,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-03T13:24:51.799Z","etag":null,"topics":["docker","good-first-issue","gradle","java","jdbc","jjwt","jpa","jsonwebtoken","junit","open-source","postgresql","servlet","spring-boot","spring-mail","spring-security"],"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/huseynovvusal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-10T06:55:19.000Z","updated_at":"2025-09-03T11:42:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5f28c45-5325-41ec-88f9-0f04857ca6b1","html_url":"https://github.com/huseynovvusal/spring-blog-api","commit_stats":null,"previous_names":["huseynovvusal/spring-blog-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huseynovvusal/spring-blog-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseynovvusal%2Fspring-blog-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseynovvusal%2Fspring-blog-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseynovvusal%2Fspring-blog-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseynovvusal%2Fspring-blog-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huseynovvusal","download_url":"https://codeload.github.com/huseynovvusal/spring-blog-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huseynovvusal%2Fspring-blog-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273747800,"owners_count":25160652,"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-09-05T02:00:09.113Z","response_time":402,"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":["docker","good-first-issue","gradle","java","jdbc","jjwt","jpa","jsonwebtoken","junit","open-source","postgresql","servlet","spring-boot","spring-mail","spring-security"],"created_at":"2025-09-05T10:54:18.583Z","updated_at":"2025-09-05T10:54:19.736Z","avatar_url":"https://github.com/huseynovvusal.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Spring Blog API\n\nWelcome to **Spring Blog API**! This is a modern, secure, and scalable RESTful backend service for managing blog posts and user authentication, built with Spring Boot. The project is currently under active development and new features are coming soon.\n\n\u003e **🌱 Newcomers Welcome!**\n\u003e We encourage developers of all experience levels to contribute. Whether you're new to open source or a seasoned pro, your ideas and code are valued here. Check out our [CONTRIBUTING.md](CONTRIBUTING.md) for easy ways to get started!\n\n## 🛠️ Technologies Used\n- Java 24\n- Spring Boot 3.5\n- Spring Security\n- Spring Data JPA\n- Hibernate ORM\n- PostgreSQL\n- JWT (JSON Web Token)\n- Lombok\n- Spring Mail\n- Gradle\n- Docker \u0026 Docker Compose\n- JUnit 5\n- PgAdmin\n\n## ⚡ Getting Started\n\n### Prerequisites\n- Java 24\n- Docker (optional, for containerization)\n- Gradle\n\n### 🚦 Setup\n1. Clone the repository:\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd spring-blog-api\n   ```\n2. Build the project:\n   ```bash\n   ./gradlew build\n   ```\n3. Run Docker:\n   ```bash\n   docker-compose up\n   ```\n4. Use the API service on:\n   ```\n   http://localhost:8082/api/v1/\n   ``` \n\n### ⚙️ Configuration\nEdit `src/main/resources/application.yml` to configure database and other settings.\n\n## 📖 API Documentation\n\nInteractive API documentation is available via Swagger UI.  \n**Most requests require an `Authorization: Bearer \u003cJWT\u003e` header.**\n\n**`http://localhost:8082/api/v1/swagger-ui/index.html#/`**\n\n\n#### Notes\n- Duplicate prevention is enforced by a unique database constraint `(user_id, blog_id)` and idempotent service logic.\n- The current user is resolved from the JWT claim `uid`.\n- Error codes:\n    - `401 Unauthorized` — missing/expired token\n    - `404 Not Found` — blog does not exist\n\n\n## 🤝 Contributing\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## 📄 License\nThis project is licensed under the MIT License.\n\n## 🚧 Status\n**This project is in active development and not yet complete. Features and documentation may change.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuseynovvusal%2Fspring-blog-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuseynovvusal%2Fspring-blog-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuseynovvusal%2Fspring-blog-api/lists"}