{"id":39232159,"url":"https://github.com/perusworld/mcdevapi-spendingpulse-refimpl-spring3","last_synced_at":"2026-01-17T23:42:25.443Z","repository":{"id":16714267,"uuid":"75674878","full_name":"perusworld/mcdevapi-spendingpulse-refimpl-spring3","owner":"perusworld","description":"Spring 3.x/Maven/Angular based reference implementation of Mastercard Developer API - Spending Pulse","archived":false,"fork":false,"pushed_at":"2024-09-15T21:25:56.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-15T23:36:00.577Z","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-05T23:17:03.000Z","updated_at":"2024-09-15T21:25:57.000Z","dependencies_parsed_at":"2023-01-11T20:25:16.462Z","dependency_job_id":null,"html_url":"https://github.com/perusworld/mcdevapi-spendingpulse-refimpl-spring3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perusworld/mcdevapi-spendingpulse-refimpl-spring3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-spendingpulse-refimpl-spring3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-spendingpulse-refimpl-spring3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-spendingpulse-refimpl-spring3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-spendingpulse-refimpl-spring3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perusworld","download_url":"https://codeload.github.com/perusworld/mcdevapi-spendingpulse-refimpl-spring3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perusworld%2Fmcdevapi-spendingpulse-refimpl-spring3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28522313,"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:42:25.379Z","updated_at":"2026-01-17T23:42:25.436Z","avatar_url":"https://github.com/perusworld.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mastercard Developer API - Spending Pulse - Reference Implementation - Angular/Spring 3.x #\nSpring 3.x/Maven/Angular based reference implementation of Mastercard Developer API - Spending Pulse \n\n## [Demo](https://perusworld.github.io/mcdevapi-spendingpulse-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 - Spending Pulse - Reference Implementation - Angular/Express](https://github.com/perusworld/mcdevapi-spendingpulse-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 spending pulse reports using period/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\"currentRow\": 1,\n\t\"offset\": 25,\n\t\"country\": \"US\",\n\t\"period\": \"Weekly\"\n}' \"http://localhost:3000/spendingPulse\"\n```\n\n### Query weekly gasoline report ###\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -H \"Cache-Control: no-cache\" -d '{\n\t\"currentRow\": 1,\n\t\"offset\": 25\n}' \"http://localhost:3000/gasWeekly\"\n```\n\n### Query distinct list of reports subscribed to ###\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -H \"Cache-Control: no-cache\" -d '{\n\t\"currentRow\": 1,\n\t\"offset\": 25\n}' \"http://localhost:3000/parameters\"\n```\n\n### Query available subscriptions ###\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -H \"Cache-Control: no-cache\" -d '{\n\t\"currentRow\": 1,\n\t\"offset\": 25\n}' \"http://localhost:3000/subscriptions\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperusworld%2Fmcdevapi-spendingpulse-refimpl-spring3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperusworld%2Fmcdevapi-spendingpulse-refimpl-spring3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperusworld%2Fmcdevapi-spendingpulse-refimpl-spring3/lists"}