-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: removing entities and workflows from proto spec (#87)
* chore: removing entities and workflows from proto spec * bumping runtime
- Loading branch information
Showing
10 changed files
with
9 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
...vasdk/src/main/scala/akka/javasdk/impl/eventsourcedentity/EventSourcedEntityService.scala
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
akka-javasdk/src/main/scala/akka/javasdk/impl/keyvalueentity/KeyValueEntityService.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,4 @@ GET localhost:9000/api/users/002 | |
|
||
|
||
### get by country | ||
GET localhost:9000/api/users/by-country/Belgium | ||
|
||
### doe@acme info - forbiden call (ACL blocks it) | ||
GET localhost:9000/akka/v1.0/entity/unique-address/[email protected]/getState | ||
GET localhost:9000/api/users/by-country/Belgium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,40 +153,6 @@ Start this query in one terminal window while triggering updates in another term | |
changing the name to and from "Jan Janssen" or adding more customers with different ids and the same name, to see the | ||
updates appear. | ||
|
||
## Pre-defined paths | ||
|
||
Akka runtime provides pre-defined paths based on the component id, entity id and the method name to interact directly | ||
with the entities, those are however locked down from access through default deny-all ACLs. It is possible to explicitly | ||
allow access on an entity using the `akka.javasdk.annotations.Acl` annotation, or by completely disabling the local | ||
"dev mode" ACL checking by running the service with `mvn -Dakka.javasdk.dev-mode.acl.enabled=false compile exec:java` | ||
or changing the default in your `src/main/resources/application.conf`. | ||
|
||
For deployed services the ACLs are always enabled. | ||
|
||
Zero parameter methods are exposed as HTTP GET: | ||
|
||
```shell | ||
curl localhost:9000/akka/v1.0/entity/customer/002/getCustomer | ||
``` | ||
|
||
Methods with a parameter are instead exposed as HTTP POST: | ||
|
||
```shell | ||
curl -i localhost:9000/akka/v1.0/entity/customer/004/create \ | ||
--header "Content-Type: application/json" \ | ||
-XPOST \ | ||
--data '{"email":"[email protected]","name":"Test 4 Testsson","address":{"street":"Teststreet 27","city":"Testcity"}}' | ||
``` | ||
|
||
The views: | ||
|
||
```shell | ||
curl localhost:9000/akka/v1.0/view/customers_by_email/getCustomer \ | ||
--header "Content-Type: application/json" \ | ||
-XPOST \ | ||
--data '{"email":"[email protected]"}' | ||
``` | ||
|
||
## Deploying | ||
|
||
You can use the [Akka Console](https://console.akka.io) to create a project and see the status of your service. | ||
|