{"id":41135725,"url":"https://github.com/islomar/payments-api","last_synced_at":"2026-01-22T18:38:07.778Z","repository":{"id":39976987,"uuid":"135318771","full_name":"islomar/payments-api","owner":"islomar","description":"Payments REST API","archived":false,"fork":false,"pushed_at":"2025-10-30T10:19:48.000Z","size":327,"stargazers_count":2,"open_issues_count":115,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T10:41:45.781Z","etag":null,"topics":["bdd","continuous-deployment","cucumber","hamcrest","heroku","micrometer","monitoring","mutation-testing","papertrail","sonarcloud","spring-boot","tdd","travis-ci"],"latest_commit_sha":null,"homepage":"https://payments-api-islomar.herokuapp.com","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/islomar.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":"2018-05-29T15:46:20.000Z","updated_at":"2025-10-18T20:53:34.000Z","dependencies_parsed_at":"2023-12-21T18:26:36.068Z","dependency_job_id":"34db220e-bc7f-4302-b695-d4136d3e5d15","html_url":"https://github.com/islomar/payments-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/islomar/payments-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islomar%2Fpayments-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islomar%2Fpayments-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islomar%2Fpayments-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islomar%2Fpayments-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/islomar","download_url":"https://codeload.github.com/islomar/payments-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islomar%2Fpayments-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28668193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"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":["bdd","continuous-deployment","cucumber","hamcrest","heroku","micrometer","monitoring","mutation-testing","papertrail","sonarcloud","spring-boot","tdd","travis-ci"],"created_at":"2026-01-22T18:38:07.691Z","updated_at":"2026-01-22T18:38:07.763Z","avatar_url":"https://github.com/islomar.png","language":"Java","readme":"[![Build Status](https://travis-ci.org/islomar/payments-api.svg)](https://travis-ci.org/islomar/payments-api)\n[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=com.islomar.payments%3Apayments-api\u0026metric=alert_status)](https://sonarcloud.io/dashboard/index/com.islomar.payments:payments-api)\n[![Coverage Status](https://coveralls.io/repos/islomar/payments-api/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/islomar/payments-api?branch=master)\n\u003cimg src=\"http://validator.swagger.io/validator?url=https://raw.githubusercontent.com/islomar/payments-api/master/openapi/payments-api.yaml\"\u003e\n\n# Payments REST API\nThis repo is integrated with TravisCI, with a CD pipeline which executes the isolated and end to end tests, deploying in the end to Heroku and publishing several metrics to SonarCloud and Coveralls:\n\n* TravisCI: https://travis-ci.org/islomar/payments-api  \n* Heroku: https://payments-api-islomar.herokuapp.com\n* SonarCloud: https://sonarcloud.io/dashboard/index/com.islomar.payments:payments-api\n* Coveralls: https://coveralls.io/github/islomar/payments-api  (the coverage is only shown for the isolated tests)\n\n## Features description\nThis is RESTful Payments API, where it is possible to:\n* Fetch\ta payment resource.\t\n* Create, update and delete\ta payment resource\n* List a collection of payment resources\n* Persist resource state (currently only in memory)\t\n\nMore info about closed and open issues: https://github.com/islomar/payments-api/projects/1\n\n\n## Prerequisites tu run anything locally\n* You need **Java 8** and **Maven \u003e= 3.5** installed.\n\n\n## How to run the REST API server locally\n1. In order to start it up, you have two options:\n    * `mvn spring-boot:run`, or\n    * `mvn clean package \u0026\u0026 java -jar target/payments-api-1.0.0.jar`\n2. To check that it is up and running, you have two options:\n    * From a web browser, access http://localhost:9000\n    * From a terminal, run `curl localhost:9000`\n    * In either case, you should see a \"The server is up and running!\" message\n\n\n## Testing\nYou can see the resulting tests executed in TravisCI: https://travis-ci.org/islomar/payments-api\n\n### How to run the automated tests locally\n* **Isolated tests**: run `mvn clean test`\n* **Sociable tests**: run `mvn clean test -PintegrationTests` (domain boundary tests)\n* **End to end tests** run`mvn clean test -Pend2end` (real Spring Boot tests)\n* **All tests**: run `mvn clean test -PallTests` (all the above :-) )\n\n### Manually test\n* You can import a Postman collection from here: https://www.getpostman.com/collections/d6792fd6384da2a3ed15\n\n### Mutation testing\n* Mutation testing is a good way to check how good your tests are.\n* Run `mvn clean test -DwithHistory org.pitest:pitest-maven:mutationCoverage` (example for isolated tests)\n* You can see locally the HTML reports created under /target/pit-reports/\u003ctimestamp\u003e\n\n\n## Production environment\n* You can access the app here: https://payments-api-islomar.herokuapp.com/\n* E.g. https://payments-api-islomar.herokuapp.com/v1/payments\n\n\n## REST API documentation\n* Design diagrams created with Draw.io: https://drive.google.com/drive/folders/1LR-dpCOiYyQpro2T_5weGMEZNjJ9N0Ee?usp=sharing\n* https://documenter.getpostman.com/view/2082328/RWEauh9x#4a1f4612-7298-2a7c-b0a2-f5d57b92398c\n* Next: use Swagger or something similar.\n\n\n## Logging, Alerts and Monitoring\n* **Papertrail** addon of Heroku to read, search and monitor logs (private unfortunately).\n    * Currently, an alert is configured to send to islomar@gmail.com an email in case an ERROR happens.\n* **Postman monitor** (private): https://is.gd/2L0TMw\n    * Not reliable, the requests used should be changed\n\n### Basic Monitoring Services\n* Based in Micrometer (already included in Spring Boot).\n* Some examples in local environment:\n    * Health:   http://localhost:9000/monitor/health\n    * Info:     http://localhost:9000/monitor/info\n* Some examples in Production:\n    * All the published endpoints: http://payments-api-islomar.herokuapp.com/monitor\n    * Health:   http://payments-api-islomar.herokuapp.com/monitor/health\n    * Info:     http://payments-api-islomar.herokuapp.com/monitor/info\n* More info about the endpoints:\n    * https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-endpoints-exposing-endpoints\n\n\n## Maven checks\n* Find available plugin updates: `mvn versions:display-plugin-updates`\n* Find available dependency updates: `mvn versions:display-dependency-updates`\n* Generate several reports under target/site running `mvn site`\n    * It generates pitest reports (mutation testing)\n    * Identify dependencies with known vulnerabilities\n\n## New things tried:\n* Cucumber (from scratch)\n* Papertrail logging and basic alerts\n* Micrometer monitoring\n* Lombok\n* ModelMapper\n* draw.io","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fislomar%2Fpayments-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fislomar%2Fpayments-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fislomar%2Fpayments-api/lists"}