Skip to content

Commit

Permalink
feat: change permissions openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteenke committed Mar 21, 2024
1 parent a4f238c commit 799f587
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
13 changes: 12 additions & 1 deletion src/main/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ app:
enabled: true
spec:
permissions:
microfrontend:
read: permission on all GET requests and POST search
write: permission on PUT, POST, PATCH requests, where objects are saved or updated
delete: permission on all DELETE requests
product:
read: permission on all GET requests and POST search
write: permission on PUT, POST, PATCH requests, where objects are saved or updated
delete: permission on all DELETE requests
delete: permission on all DELETE requests
microservice:
read: permission on all GET requests and POST search
write: permission on PUT, POST, PATCH requests, where objects are saved or updated
delete: permission on all DELETE requests
image:
read: permission on all GET requests and POST search
write: permission on PUT, POST, PATCH requests, where objects are saved or updated
30 changes: 15 additions & 15 deletions src/main/openapi/onecx-product-store-bff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ paths:
post:
x-onecx:
permissions:
product:
microfrontend:
- write
tags:
- Microfrontends
Expand Down Expand Up @@ -53,7 +53,7 @@ paths:
post:
x-onecx:
permissions:
product:
microfrontend:
- read
tags:
- Microfrontends
Expand Down Expand Up @@ -82,7 +82,7 @@ paths:
get:
x-onecx:
permissions:
product:
microfrontend:
- read
tags:
- Microfrontends
Expand All @@ -107,7 +107,7 @@ paths:
get:
x-onecx:
permissions:
product:
microfrontend:
- read
tags:
- Microfrontends
Expand All @@ -131,7 +131,7 @@ paths:
put:
x-onecx:
permissions:
product:
microfrontend:
- write
tags:
- Microfrontends
Expand Down Expand Up @@ -163,7 +163,7 @@ paths:
delete:
x-onecx:
permissions:
product:
microfrontend:
- delete
tags:
- Microfrontends
Expand Down Expand Up @@ -382,7 +382,7 @@ paths:
post:
x-onecx:
permissions:
product:
microservice:
- write
tags:
- Microservices
Expand Down Expand Up @@ -417,7 +417,7 @@ paths:
post:
x-onecx:
permissions:
product:
microservice:
- read
tags:
- Microservices
Expand Down Expand Up @@ -445,7 +445,7 @@ paths:
/microservices/{id}:
x-onecx:
permissions:
product:
microservice:
- read
get:
tags:
Expand All @@ -470,7 +470,7 @@ paths:
put:
x-onecx:
permissions:
product:
microservice:
- write
tags:
- Microservices
Expand Down Expand Up @@ -502,7 +502,7 @@ paths:
delete:
x-onecx:
permissions:
product:
microservice:
- delete
tags:
- Microservices
Expand All @@ -526,7 +526,7 @@ paths:
/microservices/appId/{appId}:
x-onecx:
permissions:
product:
microservice:
- read
get:
tags:
Expand All @@ -552,7 +552,7 @@ paths:
post:
x-onecx:
permissions:
product:
image:
- write
tags:
- imagesInternal
Expand Down Expand Up @@ -595,7 +595,7 @@ paths:
get:
x-onecx:
permissions:
product:
image:
- read
tags:
- imagesInternal
Expand Down Expand Up @@ -629,7 +629,7 @@ paths:
put:
x-onecx:
permissions:
product:
image:
- write
tags:
- imagesInternal
Expand Down

0 comments on commit 799f587

Please sign in to comment.