{"id":39230610,"url":"https://github.com/perusworld/mcdevapi-rli-refimpl-spring3","last_synced_at":"2026-01-17T23:40:48.653Z","repository":{"id":16714553,"uuid":"75670426","full_name":"perusworld/mcdevapi-rli-refimpl-spring3","owner":"perusworld","description":"Spring 3.x/Maven/Angular based reference implementation of Mastercard Developer API - Retail Location Insights","archived":false,"fork":false,"pushed_at":"2024-09-15T21:25:21.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-15T23:35:50.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/perusworld.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":"2016-12-05T22:04:41.000Z","updated_at":"2024-09-15T21:25:22.000Z","dependencies_parsed_at":"2023-01-11T19:25:22.800Z","dependency_job_id":null,"html_url":"https://github.com/perusworld/mcdevapi-rli-refimpl-spring3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perusworld/mcdevapi-rli-refimpl-spring3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-rli-refimpl-spring3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-rli-refimpl-spring3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-rli-refimpl-spring3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-rli-refimpl-spring3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perusworld","download_url":"https://codeload.github.com/perusworld/mcdevapi-rli-refimpl-spring3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-rli-refimpl-spring3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28522311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-01-17T23:40:48.588Z","updated_at":"2026-01-17T23:40:48.639Z","avatar_url":"https://github.com/perusworld.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mastercard Developer API - Retail Location Insights - Reference Implementation - Angular/Spring 3.x #\nSpring 3.x/Maven/Angular based reference implementation of Mastercard Developer API - Retail Location Insights \n\n## [Demo](https://perusworld.github.io/mcdevapi-rli-refimpl-web/) ##\n\n## Requirements ##\n1. JDK 1.7+\n1. Maven\n1. Bower\n   \n\n## Setup Client App (optional if you want to host the sample client app) ##\nThis setups up the same client app that is being used in [Mastercard Developer API - Retail Location Insights - Reference Implementation - Angular/Express](https://github.com/perusworld/mcdevapi-rli-refimpl-web)\n\n```bash\ngit submodule init\ngit submodule update\ncd  src/main/webapp/WEB-INF/ref-html\nbower install\n```\n\n## Run with Remote Debug ##\n```bash\nset MAVEN_OPTS=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000\nmvn -Djetty.http.port=3000 -Dmastercard.api.p12.path=\"file:///C:/path-to-p12-file\" -Dmastercard.api.consumer.key=\"api-key\" jetty:run\n```\n\n## Package War ##\n```bash\nmvn clean package\n```\n\n## Test App ##\nOpen browser and goto [http://localhost:3000](http://localhost:3000)\n\n## Test REST APIs -cURL ##\n### Query MasterCard Retail Location Scores using unitType/unitId/country sent as part of JSON post ###\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -H \"Cache-Control: no-cache\" -d '{\n\t\"country\": \"USA\",\n\t\"pageOffset\": 1,\n\t\"pageLength\": 10,\n\t\"unitType\": \"STATE\",\n\t\"unitId\": \"06\"\n}' \"http://localhost:3000/metrics\"\n```\n\n### Query retail unit census information using country sent as part of JSON post ###\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -H \"Cache-Control: no-cache\" -d '{\n\t\"country\": \"USA\",\n\t\"pageOffset\": 1,\n\t\"pageLength\": 10\n}' \"http://localhost:3000/retailUnits\"\n```\n\n### Query available merchant industry codes ###\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -H \"Cache-Control: no-cache\" -d '' \"http://localhost:3000/industries\"\n```\n\n### Query available subscriptions ###\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -H \"Cache-Control: no-cache\" -d '' \"http://localhost:3000/subscriptions\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperusworld%2Fmcdevapi-rli-refimpl-spring3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperusworld%2Fmcdevapi-rli-refimpl-spring3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperusworld%2Fmcdevapi-rli-refimpl-spring3/lists"}