{"id":21881550,"url":"https://github.com/toulisdev/passwordmanagerrestapi","last_synced_at":"2025-03-22T00:44:46.730Z","repository":{"id":173077998,"uuid":"530603740","full_name":"ToulisDev/PasswordManagerRestApi","owner":"ToulisDev","description":"A simple example of a Rest-API that works as a login system. I used a Password Manager application as an example","archived":false,"fork":false,"pushed_at":"2022-08-30T16:12:51.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T19:11:13.342Z","etag":null,"topics":["api","api-rest","argon","argon2","asp-net-core","aspnetcore","csharp","dotnet","dotnet-core","password-manager","rest-api","swagger-ui"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ToulisDev.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":"2022-08-30T10:21:12.000Z","updated_at":"2022-08-30T15:58:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3189041c-671d-456d-99b1-37ef19f042db","html_url":"https://github.com/ToulisDev/PasswordManagerRestApi","commit_stats":null,"previous_names":["toulisdev/passwordmanagerrestapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToulisDev%2FPasswordManagerRestApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToulisDev%2FPasswordManagerRestApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToulisDev%2FPasswordManagerRestApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToulisDev%2FPasswordManagerRestApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ToulisDev","download_url":"https://codeload.github.com/ToulisDev/PasswordManagerRestApi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890091,"owners_count":20527031,"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":["api","api-rest","argon","argon2","asp-net-core","aspnetcore","csharp","dotnet","dotnet-core","password-manager","rest-api","swagger-ui"],"created_at":"2024-11-28T09:19:27.923Z","updated_at":"2025-03-22T00:44:46.710Z","avatar_url":"https://github.com/ToulisDev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Password Manager Rest API Example\n\u003c!-- https://github.com/othneildrew/Best-README-Template --\u003e\n\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n[![Issues][issues-shield]][issues-url]\n[![APACHE 2.0 License][license-shield]][license-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ToulisDev/PasswordManagerRestApi\"\u003e\n    \u003cimg src=\"images/logo.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n\u003ch3 align=\"center\"\u003ePassword Manager Rest-Api\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    A REST-API that communicates between the user and a simple Microsoft SQL Database.\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/ToulisDev/PasswordManagerRestApi\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/ToulisDev/PasswordManagerRestApi/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/ToulisDev/PasswordManagerRestApi/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\n[![PM REST-API Swagger Screenshot][product-screenshot]](http://localhost:730/swagger/index.html)\n\nThis project is a simple REST-API for a password manager application. It is a simple login system with create and update passwords. The login system uses Argon algorithm to validate and create passwords.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### Built With\n\n* [![C#][CSharp]][CSharp-url]\n* [![.Net][dotNet]][dotNet-url]\n* [![VisualStudio][VisualStudio]][VisualStudio-url]\n* [![MSSqlServer][MSSqlServer]][MSSqlServer-url]\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nIn order to get up and running the Rest-API, you need to build the project using VS Studio for the corresponding OS (Linux or Windows). You will also have to update `appsettings.json` with your personal settings. You might also want to change the port that the app is listening to via `Program.cs`. The API was built to communicate with *MS SQL Database*, so you have to setup a database using MSSQL or you could implement and change the code to work with your Database.\n\n### Prerequisites\n\n* Microsoft SQL Server\n  * [SQL Server on Linux](https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-overview?view=sql-server-ver16)\n  * [SQL Server installation guide](https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server?view=sql-server-ver16)\n* [Visual Studio](https://visualstudio.microsoft.com/)\n\n### Installation\n\n1. Download and Install MS SQL Server.\n2. Create a Database\n\n   ```sql\n   CREATE DATABASE YourDatabaseName;\n   ```\n\n3. Create the following tables and columns inside the Database you just created.\n\n    `PASSWORDS` Table\n\n    * PASSWORDS_ID\n    * PASSWORDS_SITE\n    * PASSWORDS_USERNAME\n    * PASSWORDS_PASSWORD\n    * PASSWORDS_WEBSITE\n    * PASSWORDS_INSERT_DATE\n    * USER_ID\n\n    `USERS` Table\n\n    * USER_ID\n    * USERNAME\n    * PASSWORD\n    * INSERT_DATE\n\n4. Create and assign the following Stored Procedures to the Database you just created.\n\n    * validateLoginCreds\n    * registerLoginCreds\n    * createPassword\n    * getallPasswords\n    * getSpecPassword\n    * updatePassword\n    * deletePasswordNote\n    * existantPasswordNote\n\n5. Create a Login User with **above stored procedure exec permission only** and assign him to the database you just created.\n6. Open VS Studio and open the above project.\n7. Replace `appsettings.json` with your corresponding info and Replace on `Program.cs` with your port and IP.\n\n    ```c#\n    app.Urls.Add(\"http://localhost:730\");\n    ```\n\n8. Build project using *Publish* feature of Visual Studio for the host OS.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\nEvery communication is using POST Requests. In order to use requests such as `GetPasswords` and `UpdatePassword`, you need to get an authorization token first using `Auth/login` post Request.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the APACHE 2.0 License. See `LICENSE` for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nAggelos S. - aggelos_sachtouris@hotmail.com\n\nProject Link: [https://github.com/ToulisDev/PasswordManagerRestApi](https://github.com/ToulisDev/PasswordManagerRestApi)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[issues-shield]: https://img.shields.io/github/issues/ToulisDev/PasswordManagerRestApi?style=for-the-badge\n[issues-url]: https://github.com/ToulisDev/PasswordManagerRestApi/issues\n[license-shield]: https://img.shields.io/github/license/ToulisDev/PasswordManagerRestApi?style=for-the-badge\n[license-url]: https://github.com/ToulisDev/PasswordManagerRestApi/blob/main/LICENSE\n[product-screenshot]: images/screenshot.png\n[VisualStudio]: https://img.shields.io/badge/Visual_Studio-5C2D91?style=for-the-badge\u0026logo=visual%20studio\u0026logoColor=white\n[VisualStudio-url]: https://visualstudio.microsoft.com/\n[dotNet]: https://img.shields.io/badge/.NET-5C2D91?style=for-the-badge\u0026logo=.net\u0026logoColor=white\n[dotNet-url]: https://dotnet.microsoft.com/en-us/\n[CSharp]: https://img.shields.io/badge/C%23-239120?style=for-the-badge\u0026logo=c-sharp\u0026logoColor=white\n[CSharp-url]: https://docs.microsoft.com/en-us/dotnet/csharp/\n[MSSqlServer]: https://img.shields.io/badge/Microsoft_SQL_Server-CC2927?style=for-the-badge\u0026logo=microsoft-sql-server\u0026logoColor=white\n[MSSqlServer-url]: https://www.microsoft.com/en-us/sql-server/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoulisdev%2Fpasswordmanagerrestapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoulisdev%2Fpasswordmanagerrestapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoulisdev%2Fpasswordmanagerrestapi/lists"}