{"id":16597888,"url":"https://github.com/ankushkhanna/spring-example","last_synced_at":"2026-05-04T11:31:42.243Z","repository":{"id":83207831,"uuid":"77385415","full_name":"AnkushKhanna/spring-example","owner":"AnkushKhanna","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-09T17:06:36.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T04:46:06.356Z","etag":null,"topics":["spring","springboot"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/AnkushKhanna.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}},"created_at":"2016-12-26T13:22:44.000Z","updated_at":"2017-09-20T09:04:25.000Z","dependencies_parsed_at":"2023-06-28T22:45:35.998Z","dependency_job_id":null,"html_url":"https://github.com/AnkushKhanna/spring-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnkushKhanna%2Fspring-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnkushKhanna%2Fspring-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnkushKhanna%2Fspring-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnkushKhanna%2Fspring-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnkushKhanna","download_url":"https://codeload.github.com/AnkushKhanna/spring-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242277207,"owners_count":20101530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["spring","springboot"],"created_at":"2024-10-12T00:06:59.082Z","updated_at":"2025-10-26T12:11:44.101Z","avatar_url":"https://github.com/AnkushKhanna.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring example for maintaining Transaction in memory\n\n## Featues provided:\n\n### Add transaction:\n```\n   curl -H \"Content-Type: application/json\" -X PUT -d '{\"amount\":10,\"type\":\"cc\"}' {URL}/transaction/{transaction-id}\n   curl -H \"Content-Type: application/json\" -X PUT -d '{\"amount\":10,\"type\":\"dc\", \"parentId\":1}' {URL}/transaction/{transaction-id}\n```\n\n### GET transaction:\n```\n   curl -H \"Content-Type: application/json\" -X GET {URL}/transaction/{transaction-id}\n```\n\n### GET all transaction of same type\n```\n   curl -H \"Content-Type: application/json\" -X GET {URL}/transaction/types/{transaction-type}\n```\n\n### GET sum of all transactions linked from parent downward\n```\n   curl -H \"Content-Type: application/json\" -X GET {URL}/transaction/sum/{transaction-id}\n```\n\n\n## Examples:\n```\n    PUT transaction:\n    curl -H \"Content-Type: application/json\" -X PUT -d '{\"amount\":10,\"type\":\"cc\"}' {URL}/transaction/1\n    curl -H \"Content-Type: application/json\" -X PUT -d '{\"amount\":10,\"type\":\"cc\", \"parentId\":1}' {URL}/transaction/2\n    \n    GET transaction:\n    curl -H \"Content-Type: application/json\" -X GET {URL}/transaction/1\n    curl -H \"Content-Type: application/json\" -X GET {URL}/transaction/2\n    \n    GET all transactions for same type:\n    curl -H \"Content-Type: application/json\" -X GET {URL}/transaction/types/cc\n    \n    GET sum of all transactions linked from parent downward:\n    curl -H \"Content-Type: application/json\" -X GET {URL}/transaction/sum/1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankushkhanna%2Fspring-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankushkhanna%2Fspring-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankushkhanna%2Fspring-example/lists"}