Skip to content

Commit

Permalink
feat: add apigateway module hcx-platform pom file
Browse files Browse the repository at this point in the history
  • Loading branch information
shiva-rakshith committed Apr 1, 2022
1 parent 109e305 commit 8ab650e
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public RestTemplate restTemplate() {

@SuppressWarnings("rawtypes, unchecked")
@Bean
public Map<String, Acl> aclMap(@Value("${rbac.path}") String filename) throws IOException {
public Map<String, Acl> aclMap(@Value("${rbac.path:classpath:rbac.yaml}") String filename) throws IOException {
Resource resource = resourceLoader.getResource(filename);
ObjectMapper yamlReader = new ObjectMapper(new YAMLFactory());
Map<String, Object> obj = yamlReader.readValue(resource.getInputStream(), Map.class);
Expand Down
2 changes: 1 addition & 1 deletion api-gateway/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ headers:

#rbac config
rbac:
path: ${RBAC_PATH}
path: ${RBAC_PATH:classpath:rbac.yaml}

#hcx error headers
plainrequest:
Expand Down
91 changes: 91 additions & 0 deletions api-gateway/src/main/resources/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
rbac:
- role: ANONYMOUS
paths:
- /health
- /service/health
- role: AUTHENTICATED
- role: provider
paths:
- /v1/coverageeligibility/check
- /v1/predetermination/submit
- /v1/preauth/submit
- /v1/claim/submit
- /v1/paymentnotice/on_request
- /v1/communication/on_request
- /v1/hcx/status
- /v1/audit/search
- /participant/search
- /participant/update
- role: payor
paths:
- /v1/coverageeligibility/check
- /v1/preauth/submit
- /v1/claim/submit
- /v1/predetermination/submit
- /v1/coverageeligibility/on_check
- /v1/predetermination/on_submit
- /v1/preauth/on_submit
- /v1/claim/on_submit
- /v1/paymentnotice/request
- /v1/communication/request
- /v1/hcx/on_status
- /v1/audit/search
- /participant/search
- /participant/update
- role: agency.tpa
paths:
- /v1/coverageeligibility/check
- /v1/preauth/submit
- /v1/claim/submit
- /v1/predetermination/submit
- /v1/coverageeligibility/on_check
- /v1/predetermination/on_submit
- /v1/preauth/on_submit
- /v1/claim/on_submit
- /v1/paymentnotice/request
- /v1/communication/request
- /v1/hcx/on_status
- /v1/audit/search
- /participant/search
- /participant/update
- role: agency.regulator
pahts:
- /v1/hcx/status
- /v1/audit/search
- /participant/search
- /participant/update
- role: research
paths:
- /v1/coverageeligibility/on_check
- /v1/predetermination/on_submit
- /v1/hcx/status
- /v1/audit/search
- /participant/search
- /participant/update
- role: member.isnp
paths:
- /v1/coverageeligibility/on_check
- /v1/predetermination/on_submit
- /v1/hcx/status
- /v1/audit/search
- /participant/search
- /participant/update
- role: agency.sponsor
paths:
- /v1/coverageeligibility/on_check
- /v1/predetermination/on_submit
- /v1/preauth/on_submit
- /v1/claim/on_submit
- /v1/paymentnotice/request
- /v1/communication/request
- /v1/hcx/on_status
- /v1/audit/search
- /participant/search
- /participant/update
- role: HIE/HIO.HCX
paths:
- /participant/create
- /participant/search
- /participant/update
regexPaths:
- /v1/**
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<modules>
<module>hcx-apis</module>
<module>hcx-core</module>
<module>api-gateway</module>
</modules>

</project>

0 comments on commit 8ab650e

Please sign in to comment.