{"id":27350391,"url":"https://github.com/pacna/api.jwt","last_synced_at":"2025-04-12T19:39:20.087Z","repository":{"id":46558768,"uuid":"292457100","full_name":"pacna/Api.JWT","owner":"pacna","description":"A RESTful service that simplifies the generation and management of JSON Web Tokens (JWTs).","archived":false,"fork":false,"pushed_at":"2024-10-24T01:34:35.000Z","size":326,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-24T17:03:23.021Z","etag":null,"topics":["csharp","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","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/pacna.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":"2020-09-03T03:33:55.000Z","updated_at":"2024-10-24T01:47:16.000Z","dependencies_parsed_at":"2024-05-15T18:25:17.432Z","dependency_job_id":"353b88d3-e45e-45ce-b657-564b971460d6","html_url":"https://github.com/pacna/Api.JWT","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacna%2FApi.JWT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacna%2FApi.JWT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacna%2FApi.JWT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacna%2FApi.JWT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pacna","download_url":"https://codeload.github.com/pacna/Api.JWT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248624460,"owners_count":21135449,"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":["csharp","dotnet"],"created_at":"2025-04-12T19:39:19.475Z","updated_at":"2025-04-12T19:39:20.058Z","avatar_url":"https://github.com/pacna.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Api JWT\n\n\u003cimg alt=\"Test CI\" src=\"https://github.com/pacna/Api.JWT/workflows/Test%20CI/badge.svg\" /\u003e\n\nApi JWT is a RESTful service that simplifies the generation and management of JSON Web Tokens (JWTs).\n\n## Example\n\nTo create a JWT, send a POST request to the API with the keys and values as the payload:\n\n```bash\n$ curl --header \"Content-Type: application/json\" --request POST --data '{\"claims\": {\"foo\":\"bar\"}, \"expireAt\":\"2024-01-03T05:53:25.537Z\"}' http://localhost:5000/api/v1/jwt\n```\n\nYou should receive a response that contains the JWT:\n\n```json\neyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIiLCJqdGkiOiJkMjAwY2E4NS05MDk1LTQyYWItOTE2OS1mYTZlY2Q2NTVhMDgiLCJleHAiOjE3MzU4ODM2MDUsImlzcyI6IkFwaS5KV1QifQ.CeZqhdjJFB8As0jn09UezuM8zpD0Z0d7Ye6S3RESUkg\n```\n\n## Prerequisites\n\nBefore running API JWT, make sure you have the following dependencies installed on your system:\n\n-   [.NET Core](https://dotnet.microsoft.com/en-us/download) (v8)\n\n## How to Run Locally\n\nFollow the commands below to start the service:\n\n1. To run the service:\n\n```bash\n$ dotnet run --project=./src/Api.JWT\n```\n\n2. To run the service in watch mode:\n\n```bash\n$ dotnet watch run --project=./src/Api.JWT\n```\n\n## Running Tests\n\nTo run the test, use:\n\n```bash\n$ dotnet test\n```\n\n**note:** The API currently uses an in-memory data store and does not require a database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacna%2Fapi.jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacna%2Fapi.jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacna%2Fapi.jwt/lists"}