{"id":22101131,"url":"https://github.com/rmja/restprint","last_synced_at":"2026-02-13T04:10:41.073Z","repository":{"id":96149549,"uuid":"191818064","full_name":"rmja/RestPrint","owner":"rmja","description":"Handy rest api for printing to local printers","archived":false,"fork":false,"pushed_at":"2020-02-27T15:26:29.000Z","size":14,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T19:36:12.854Z","etag":null,"topics":["api","printing","rest"],"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/rmja.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":"2019-06-13T19:01:11.000Z","updated_at":"2024-09-06T14:20:10.000Z","dependencies_parsed_at":"2023-05-16T00:45:46.549Z","dependency_job_id":null,"html_url":"https://github.com/rmja/RestPrint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rmja/RestPrint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2FRestPrint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2FRestPrint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2FRestPrint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2FRestPrint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmja","download_url":"https://codeload.github.com/rmja/RestPrint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2FRestPrint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272793018,"owners_count":24993830,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","printing","rest"],"created_at":"2024-12-01T05:23:40.823Z","updated_at":"2026-02-13T04:10:41.001Z","avatar_url":"https://github.com/rmja.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# RestPrint\n\nRestPrint is a simple rest api that exposes the printers on the machine on where it is run through a simple JSON based REST api.\n\nExample actions are:\n\nGet all installed printers:\n```\ncurl -k https://localhost:9721/Printers\n```\n\nPrint raw (ESC/POS, Zebra, etc.):\n```\ncurl -k https://localhost:9721/Printers/MyPrinter/Jobs -X POST -H \"Content-Type: application/octet-stream\" --data-binary @myfile.bin\n```\n\n## Install\nInstall the tool using the following command:\n```\ndotnet tool install -g restprint\n```\n\n## Run\nRun the server using the `restprint` command. To allow browsers to print, one can allow cors origins with the `--origins` option:\n```\nrestprint --urls https://localhost:9721 --origins https://my-pos-system:5000;https://my-other-pos-system:5000\n```\n\n## Test Tool\n```\ndotnet pack\ndotnet tool install -g --add-source ./bin/Debug restprint\ndotnet tool uninstall -g restprint\n```\n\n## Deploy Tool\n```\ndotnet pack --configuration Release\ndotnet nuget push .\\bin\\Release\\RestPrint.0.0.1.nupkg --source https://api.nuget.org/v3/index.json --api-key \u003cAPI-KEY\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Frestprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmja%2Frestprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Frestprint/lists"}