{"id":51092094,"url":"https://github.com/amdev9/medusa-store","last_synced_at":"2026-06-24T03:35:35.626Z","repository":{"id":325459426,"uuid":"1101239207","full_name":"amdev9/medusa-store","owner":"amdev9","description":"medusajs endpoint implementation","archived":false,"fork":false,"pushed_at":"2025-11-21T12:52:27.000Z","size":1637,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-21T14:29:54.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/amdev9.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-21T11:48:12.000Z","updated_at":"2025-11-21T12:52:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/amdev9/medusa-store","commit_stats":null,"previous_names":["amdev9/medusa-store"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/amdev9/medusa-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdev9%2Fmedusa-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdev9%2Fmedusa-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdev9%2Fmedusa-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdev9%2Fmedusa-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amdev9","download_url":"https://codeload.github.com/amdev9/medusa-store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdev9%2Fmedusa-store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34716325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"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":[],"created_at":"2026-06-24T03:35:34.856Z","updated_at":"2026-06-24T03:35:35.620Z","avatar_url":"https://github.com/amdev9.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Medusajs project\nДобавить API endpoint в MedusaJS v2 проект для конвертации валют с использованием внешнего API.\n\n\nИнструкция по запуску\n```\nmv .env.template .env // for test purpose show some secrets (not the best practice)\nnpm i // install dependencies\n\nnpm run docker:up // run docker\n\ndocker compose logs -f // to see logs\n\nnpm run docker:down // stop docker\n```\n\nUse your {your_publishable_api_key} from admin panel instead\n\nmy example: pk_e5ac14e5fb0ee1b9f0af8d1cd2ffed632aece2243e5cb6c7d876d6860c7b097b\n```\ncurl 'http://localhost:9000/store/currency/convert?amount=200\u0026from=USD\u0026to=EUR' \\\n-H 'x-publishable-api-key: pk_e5ac14e5fb0ee1b9f0af8d1cd2ffed632aece2243e5cb6c7d876d6860c7b097b'\n{\"message\":\"173.16\"}\n```\n\n# Endpoint curl examples\n\n```\ncurl 'http://localhost:9000/store/currency/convert?amount=200\u0026from=USD\u0026to=EUR' \\\n-H 'x-publishable-api-key: {your_publishable_api_key}'\n{\"message\":\"173.16\"}\n```\n\n```\ncurl 'http://localhost:9000/store/currency/convert?amount=100\u0026from=USD\u0026to=EUR' \\\n-H 'x-publishable-api-key: {your_publishable_api_key}'\n{\"message\":\"86.58\"}\n```\n\n```\ncurl 'http://localhost:9000/store/currency/convert?amount=100\u0026to=EUR' \\\n-H 'x-publishable-api-key: {your_publishable_api_key}'\n{\"message\":\"Initial country code not found or have invalid format\"}\n```\n\n```\ncurl 'http://localhost:9000/store/currency/convert?amount=100\u0026from=USD\u0026to=' \\\n-H 'x-publishable-api-key: {your_publishable_api_key}'\n{\"message\":\"Result country code not defined or have invalid format\"}\n```\n\n```\ncurl 'http://localhost:9000/store/currency/convert?amount=10a\u0026from=USD\u0026to=EUR' \\\n-H 'x-publishable-api-key: {your_publishable_api_key}'\n{\"message\":\"Initial amount not defined or not valid\"}\n```\n\nExternal api not accessible - for example no network\n```\ncurl 'http://localhost:9000/store/currency/convert?amount=100\u0026from=GBP\u0026to=USD' \\\n-H 'x-publishable-api-key: {your_publishable_api_key}'\n{\"message\":\"Convert workflow errors: fetch failed\"}\n```\n\n\n\u003c!-- Old git history (пришлось реинициализировать гит всвязи с ошибкой)\n![Old git history ](oldgit.png)  --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdev9%2Fmedusa-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famdev9%2Fmedusa-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdev9%2Fmedusa-store/lists"}