{"id":18941443,"url":"https://github.com/mchmarny/rester-tester","last_synced_at":"2026-05-18T03:11:47.277Z","repository":{"id":57609709,"uuid":"119198921","full_name":"mchmarny/rester-tester","owner":"mchmarny","description":"Rest server to test serverless usage patterns","archived":false,"fork":false,"pushed_at":"2019-03-10T23:43:26.000Z","size":31,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T21:48:36.538Z","etag":null,"topics":["api","docker","golang","rest","serverless"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/mchmarny.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":"2018-01-27T20:13:12.000Z","updated_at":"2019-03-10T23:43:28.000Z","dependencies_parsed_at":"2022-08-27T11:32:51.919Z","dependency_job_id":null,"html_url":"https://github.com/mchmarny/rester-tester","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mchmarny/rester-tester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Frester-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Frester-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Frester-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Frester-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mchmarny","download_url":"https://codeload.github.com/mchmarny/rester-tester/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Frester-tester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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","docker","golang","rest","serverless"],"created_at":"2024-11-08T12:28:04.859Z","updated_at":"2026-05-18T03:11:47.260Z","avatar_url":"https://github.com/mchmarny.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rester-tester [![Build Status](https://travis-ci.org/mchmarny/rester-tester.svg?branch=master)](https://travis-ci.org/mchmarny/rester-tester)\n\nSimple REST server to test serverless usage patterns\n\n## Run\n\n#### Dependancies \n\n```\nmake deps\n```\n\n#### Locally \n\n```\nmake run\n```\n\n#### Locally in Docker\n\n```\ndocker build -t rester-tester .\ndocker run -p 8080:8080 rester-tester:latest\n```\n\n## Use\n\n### Ping\nBasic GET test\n\n##### Request\n\n```\ncurl http://localhost:8080/ping \n```\n\n##### Response\n\n```\n{\n     \"pong\": {\n          \"service_id\": \"1f6f4f35-1ef5-4c27-b69c-b34652544229\",\n          \"host_name\": \"056504ae4039\",\n          \"started_at\": \"2018-01-28 18:22:32.383411901 +0000 UTC\"\n     }\n}\n```\n\n### Prime\nBasic max prime number calculator\n\n##### Request\n\nTo get max prime using defaults\n\n```\ncurl http://localhost:8080/prime \n```\n\nTo pass max number as argument to prime calculator \n\n```\ncurl http://localhost:8080/prime/50000000\n```\n\n##### Response\n\n```\n{\n     \"prime\": {\n          \"max\": 50000000,\n          \"host_name\": \"056504ae4039\",\n          \"val\": 49999991\n     }\n}\n```\n\n\n### Image\n\nMakes PNG thumbnail from video URL. Will test whether the app can execute external ffmpeg command.\n\n```\ncurl -X POST -H \"Content-Type: application/json\" http://localhost:8080/image \\\n     -d '{\"src\":\"https://www.youtube.com/watch?v=DjByja9ejTQ\"}'     \n```\n\n```\n{\n    \"request_id\":\"b8845f04-c462-4f3e-91d7-6d512c576e23\",\n    \"created_at\":\"2018-01-28 18:25:06.475802091 +0000 UTC\",\n    \"status\":\"Processed\",\n    \"req\": {\n        \"src\":\"https://www.youtube.com/watch?v=DjByja9ejTQ\",\n        \"width\":200,\n        \"height\":200\n    },\n    \"message\":\"Completed in 1.016136195s\",\n    \"thumb/img_8acd94cd-4035-4c62-b4d7-d6c6cb03a88d.png\"\n}\n```\n\n## TODO\n\n* Push images to distributed object store \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Frester-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmchmarny%2Frester-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Frester-tester/lists"}