Skip to content

Commit d77fe77

Browse files
authored
Update README.md
1 parent 40bf8b0 commit d77fe77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ Use the [editor](https://stately.ai/editor) to create and export your state mach
66
## API
77

88
Read current state:
9+
910
`https://state.do/:key`
1011

1112
Send event to machine:
13+
1214
`https://state.do/:key/:event`
1315

1416
Initialize machine:
17+
1518
`https://state.do/:key?{"id":"fetch","initial":"init","states":{"init":{"on":{"FETCH":"loading"}},"loading":{"callback":"https://fetcher.do/60sec/https://example.com/","on":{"4XX":"fault","5XX":"failure","*":"success"}},"failure":{"callback":"https://alarms.do/?fromnow=10sec&callback=https://state.do/:key/RETRY","on":{"RETRY":{"target":"loading"}}},"fault":{"callback":"https://example.logging.do/error?message=","type":"final"},"success":{"callback":"https://graphology.do.cf/:key?newnode?example|","type":"final"}}}`
1619

1720
## Callbacks

0 commit comments

Comments
 (0)