{"id":21851894,"url":"https://github.com/ulbora/ulboratemplateservice","last_synced_at":"2026-05-05T11:36:39.709Z","repository":{"id":87394626,"uuid":"102234286","full_name":"Ulbora/UlboraTemplateService","owner":"Ulbora","description":"A micro service for application templates","archived":false,"fork":false,"pushed_at":"2018-06-09T17:50:08.000Z","size":7810,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T18:32:49.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ulbora.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":"2017-09-03T01:45:59.000Z","updated_at":"2020-01-26T04:30:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"cece7b42-ed95-472a-b806-2eb7508d6a18","html_url":"https://github.com/Ulbora/UlboraTemplateService","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ulbora/UlboraTemplateService","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulbora%2FUlboraTemplateService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulbora%2FUlboraTemplateService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulbora%2FUlboraTemplateService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulbora%2FUlboraTemplateService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ulbora","download_url":"https://codeload.github.com/Ulbora/UlboraTemplateService/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulbora%2FUlboraTemplateService/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264696466,"owners_count":23650936,"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":[],"created_at":"2024-11-28T01:12:08.294Z","updated_at":"2026-05-05T11:36:34.689Z","avatar_url":"https://github.com/Ulbora.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/Ulbora/UlboraTemplateService)](https://goreportcard.com/report/github.com/Ulbora/UlboraTemplateService)\n\nUlbora Template Service\n==============\n\nA template micro service for CMS and Shopping Cart use\n\n\n## Headers\n- Content-Type: application/json (for POST and PUT)\n- Authorization: Bearer aToken (POST, PUT, and DELETE. No token required for get services.)\n- clientId: clientId (example 33477)\n\n\n\n## Add Template\n\n```\nPOST:\nURL: http://localhost:3009/rs/template/add\n\nExample Request\n{\n   \"name\":\"new template2\",\n   \"application\": \"cms\"   \n}\n  \n```\n\n```\nExample Response   \n\n{\n    \"success\": true,\n    \"id\": 19\n}\n\n```\n\n\n## Update Template Set Active\n\n```\nPUT:\nURL: http://localhost:3009/rs/template/updateActive\n\nExample Request\n{\n   \"id\": 88,\n   \"application\": \"cms\"\n   \n}\n  \n```\n\n```\nExample Response   \n\n{\n    \"success\": true,\n    \"id\": 11\n}\n\n```\n\n\n## Get Active Template\n\n```\nGET:\nURL: http://localhost:3009/rs/template/get/cms/403\n  \n```\n\n```\nExample Response   \n\n{\n    \"id\": 88,\n    \"name\": \"newtemplate2\",\n    \"application\": \"cms\",\n    \"active\": true,\n    \"clientId\": 403\n}\n\n```\n\n\n## Get Templates for a Client\n\n```\nGET:\nURL: http://localhost:3009/rs/template/list/cms/403\n  \n```\n\n```\nExample Response   \n\n[\n    {\n        \"id\": 86,\n        \"name\": \"newtemplate2\",\n        \"application\": \"cms\",\n        \"active\": false,\n        \"clientId\": 403\n    },\n    {\n        \"id\": 87,\n        \"name\": \"newtemplate2\",\n        \"application\": \"cms\",\n        \"active\": false,\n        \"clientId\": 403\n    },\n    {\n        \"id\": 88,\n        \"name\": \"newtemplate2\",\n        \"application\": \"cms\",\n        \"active\": true,\n        \"clientId\": 403\n    }\n]\n\n```\n\n\n## Delete Templates for a Client\n\n```\nDELETE:\nURL: http://localhost:3009/rs/template/delete/107/403\n  \n```\n\n```\nExample Response   \n\n{\n    \"success\": true,\n    \"id\": 107\n}\n\n```\n\n# Docker usage\n\n```\ndocker run --network=ulbora_bridge --name templates --log-opt max-size=50m --env DATABASE_HOST=someHost /\n --env DATABASE_USER_NAME=someName --env DATABASE_USER_PASSWORD=somePw --env DATABASE_NAME=ulbora_template_service /\n --env DATABASE_POOL_SIZE=5 --env OAUTH2_VALIDATION_URI=http://oauth2:8080/rs/token/validate --env PORT=8080 /\n --restart=always -d ulboralabs/templates sh\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulbora%2Fulboratemplateservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulbora%2Fulboratemplateservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulbora%2Fulboratemplateservice/lists"}