{"id":27114418,"url":"https://github.com/yting27/feature-switches","last_synced_at":"2026-04-24T16:05:01.160Z","repository":{"id":239271817,"uuid":"799059831","full_name":"yting27/feature-switches","owner":"yting27","description":"Manage users’ accesses to new features via feature switches","archived":false,"fork":false,"pushed_at":"2024-05-11T05:27:37.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-11T06:24:54.842Z","etag":null,"topics":["java","rest-api","spring-boot"],"latest_commit_sha":null,"homepage":"","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/yting27.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":"2024-05-11T04:34:04.000Z","updated_at":"2024-05-11T06:24:56.289Z","dependencies_parsed_at":"2024-05-11T06:24:56.186Z","dependency_job_id":"cb932f67-bb08-412d-9a3e-37fa67df24e2","html_url":"https://github.com/yting27/feature-switches","commit_stats":null,"previous_names":["yting27/feature-switches"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yting27%2Ffeature-switches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yting27%2Ffeature-switches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yting27%2Ffeature-switches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yting27%2Ffeature-switches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yting27","download_url":"https://codeload.github.com/yting27/feature-switches/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589803,"owners_count":20963022,"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":["java","rest-api","spring-boot"],"created_at":"2025-04-07T03:57:30.135Z","updated_at":"2026-04-24T16:04:56.125Z","avatar_url":"https://github.com/yting27.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# feature-switches\n\n## Getting Started\n\n1. Make sure the required tools are installed: [Guide](https://spring.io/guides/gs/spring-boot)\n\n2. Add or edit feature access with `/feature` endpoint (method: POST):\n    ```bash\n    ## Body parameters: featureName, email, enable\n    curl --location 'localhost:8080/feature' \\\n    --header 'Content-Type: application/json' \\\n    --data-raw '{\n        \"featureName\": \"edit-profile\",\n        \"email\": \"abc@gmail.com\",\n        \"enable\": true\n    }\n    '\n    ```\n    Response example:\n    ```\n    {\n        \"statusCode\": \"OK\",\n        \"hasError\": false,\n        \"error\": null,\n        \"data\": {\n            \"message\": \"Successfully updated existing feature access (ID: 5)\"\n        }\n    }\n    ```\n\n3. Query feature access of a user with `/feature` endpoint (method: GET):\n    ```bash\n    ## Query paramaters: email, featureName\n    curl --location 'localhost:8080/feature?email=abc%40gmail.com\u0026featureName=edit-profile'\n    ```\n    Response example:\n    ```\n    {\n        \"statusCode\": \"OK\",\n        \"hasError\": false,\n        \"error\": null,\n        \"data\": {\n            \"canAccess\": true\n        }\n    }\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyting27%2Ffeature-switches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyting27%2Ffeature-switches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyting27%2Ffeature-switches/lists"}