{"id":19704946,"url":"https://github.com/fspv/leetcode-swagger","last_synced_at":"2025-04-29T15:30:27.937Z","repository":{"id":46485943,"uuid":"414627323","full_name":"fspv/leetcode-swagger","owner":"fspv","description":"Swagger file for leetcode API","archived":false,"fork":false,"pushed_at":"2021-10-26T19:47:47.000Z","size":38,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-21T13:14:02.288Z","etag":null,"topics":["leetcode","openapi","python","swagger"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/fspv.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}},"created_at":"2021-10-07T14:09:24.000Z","updated_at":"2023-03-21T13:14:02.289Z","dependencies_parsed_at":"2022-09-22T12:51:26.490Z","dependency_job_id":null,"html_url":"https://github.com/fspv/leetcode-swagger","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspv%2Fleetcode-swagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspv%2Fleetcode-swagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspv%2Fleetcode-swagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspv%2Fleetcode-swagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fspv","download_url":"https://codeload.github.com/fspv/leetcode-swagger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224177837,"owners_count":17268749,"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":["leetcode","openapi","python","swagger"],"created_at":"2024-11-11T21:25:21.156Z","updated_at":"2024-11-11T21:25:21.775Z","avatar_url":"https://github.com/fspv.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swagger representation of Leetcode API\nThis implements methods that are available publicly for leetcode.\nThere is already an implementation of them in form of CLI [1], but\nit has a list of disadvantages.\n\n\n1. It is written in JS\n\n2. Even for JS in order to reuse it you have to invoke it via CLI\n\n3. It is not supported very well, so authentication doesn't work anymore\n\n\nSo I have decided to create my own implementation and here is it.\n\n\nUsing the swagger file you'll be able to generate the code for any language\nyou like and start using leetcode API directly from your code.\n\n\nJust keep in mind that swagger doesn't really support cookie auth,\nwhich is needed in order to use LC API. If you use python you can\njust use the generated code from this repo. Otherwise you'll have to\nimplement something like `fix_cookies.patch` for your target language.\n\nFor now the code it produces been only tested for python. You can find the generated code in this repo: [https://github.com/prius/python-leetcode](https://github.com/prius/python-leetcode)\n\nIf you wish to build it for your preferred language - feel free to do so and send me a pull request.\n\nKnown issues (covered by patches):\n1. Thread pool issue, causing the whole app to hang indefinitely\n2. Cookie auth doesn't work for the generated code (even though doc says it is supported)\n\n[1] https://github.com/skygragon/leetcode-cli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffspv%2Fleetcode-swagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffspv%2Fleetcode-swagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffspv%2Fleetcode-swagger/lists"}