{"id":22475055,"url":"https://github.com/setxpro/register-stock","last_synced_at":"2026-05-04T22:41:38.801Z","repository":{"id":196260122,"uuid":"695588920","full_name":"setxpro/register-stock","owner":"setxpro","description":"This repository contains a simple Java Spring project that implements authentication and authorization using Spring Security","archived":false,"fork":false,"pushed_at":"2023-09-23T22:55:42.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T20:31:01.995Z","etag":null,"topics":["java","spring","spring-boot","spring-security","spring-security-jwt"],"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/setxpro.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":"2023-09-23T16:18:19.000Z","updated_at":"2023-09-24T01:18:33.000Z","dependencies_parsed_at":"2023-09-23T22:57:34.016Z","dependency_job_id":null,"html_url":"https://github.com/setxpro/register-stock","commit_stats":null,"previous_names":["setxpro/register-stock"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setxpro%2Fregister-stock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setxpro%2Fregister-stock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setxpro%2Fregister-stock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setxpro%2Fregister-stock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setxpro","download_url":"https://codeload.github.com/setxpro/register-stock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245889029,"owners_count":20688904,"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":["java","spring","spring-boot","spring-security","spring-security-jwt"],"created_at":"2024-12-06T13:13:30.873Z","updated_at":"2026-05-04T22:41:33.783Z","avatar_url":"https://github.com/setxpro.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication API\n\n![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge\u0026logo=openjdk\u0026logoColor=white)\n![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge\u0026logo=spring\u0026logoColor=white)\n![Postgres](https://img.shields.io/badge/postgres-%23316192.svg?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white)\n![JWT](https://img.shields.io/badge/JWT-black?style=for-the-badge\u0026logo=JSON%20web%20tokens)\n\nThis project is an API built using **Java, Java Spring, Flyway Migrations, PostgresSQL as the database, and Spring Security and JWT for authentication control.**\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n- [API Endpoints](#api-endpoints)\n- [Authentication](#authentication)\n- [Database](#database)\n- [Contributing](#contributing)\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/setxpro/register-stock.git\n```\n\n2. Install dependencies with Maven\n\n3. Install [PostgresSQL](https://www.postgresql.org/)\n\n## Usage\n\n1. Start the application with Maven\n2. The API will be accessible at http://localhost:8080\n\n\n## API Endpoints\nThe API provides the following endpoints:\n\n```markdown\nGET /product - Retrieve a list of all products. (all authenticated users)\n\nPOST /product - Register a new product (ADMIN access required).\n\nPOST /auth/login - Login into the App\n\nPOST /user/register - Register a new user into the App\n```\n\n## Authentication\nThe API uses Spring Security for authentication control. The following roles are available:\n\n```\nUSER -\u003e Standard user role for logged-in users.\nADMIN -\u003e Admin role for managing partners (registering new partners).\n```\nTo access protected endpoints as an ADMIN user, provide the appropriate authentication credentials in the request header.\n\n## Database\nThe project utilizes [PostgresSQL](https://www.postgresql.org/) as the database. The necessary database migrations are managed using Flyway.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request to the repository.\n\nWhen contributing to this project, please follow the existing code style, [commit conventions](https://www.conventionalcommits.org/en/v1.0.0/), and submit your changes in a separate branch.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetxpro%2Fregister-stock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetxpro%2Fregister-stock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetxpro%2Fregister-stock/lists"}