{"id":21335176,"url":"https://github.com/pollinations/rest_pollen","last_synced_at":"2025-06-11T11:35:25.725Z","repository":{"id":64468935,"uuid":"561899097","full_name":"pollinations/rest_pollen","owner":"pollinations","description":"REST API wrapper for our backend","archived":false,"fork":false,"pushed_at":"2023-02-23T11:32:32.000Z","size":1138,"stargazers_count":1,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-10T15:53:03.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/pollinations.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":"2022-11-04T18:44:34.000Z","updated_at":"2023-09-03T10:24:37.000Z","dependencies_parsed_at":"2025-01-22T14:41:04.000Z","dependency_job_id":null,"html_url":"https://github.com/pollinations/rest_pollen","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/pollinations%2Frest_pollen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollinations%2Frest_pollen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollinations%2Frest_pollen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollinations%2Frest_pollen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pollinations","download_url":"https://codeload.github.com/pollinations/rest_pollen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814855,"owners_count":20352037,"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":[],"created_at":"2024-11-21T23:40:07.372Z","updated_at":"2025-03-16T01:42:33.120Z","avatar_url":"https://github.com/pollinations.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rest-pollen\n\n## Dev setup\n1. Install node and [pollinations-ipfs](github.com/pollinations/pollinations-ipfs)\n2. Install this repo\n```sh\n# Install dependencies\npip install -e \".[test]\"\n\n# Install pre-commit hooks\nbrew install pre-commit\npre-commit install -t pre-commit\n```\n3. Add your jwt secret to `.env`\n\n### Start the server:\n```\npython rest_pollen/main.py\n```\n\n### Working with Docker\nBuild the image\n```\ndocker build -t rest .\n```\nStart the dockererized backend:\n```\ndocker run -p 5000:5000 --env-file .env rest\n```\n\n### Sending requests\n```\npython test/client.py\n```\n\n### Testing\n```\npytest test --cov\n```\n\n### API docs\nStart a server, then open the [openapi docs](http://localhost:5000/openapi.json). Can be viewed in [swagger editor](https://editor.swagger.io/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollinations%2Frest_pollen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpollinations%2Frest_pollen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollinations%2Frest_pollen/lists"}