-
Notifications
You must be signed in to change notification settings - Fork 0
Blueprint Cheat Sheet
Al Beebe edited this page Nov 2, 2015
·
54 revisions
- Microservice that doesn't return a response
- Microservice that returns a single response
- Microservice that can return more then one response
- Microservice that can receive sub requests
- Override the context and payload the client sends to the microservice
- Override the context and payload the microservice sends to the client
- Client request that doesn't return a response
- Client request that returns a single response
- Client request that can return more then one response
- Client request that can receive sub requests
microservice {
description "Create a widget"
uri "microservice:///example/v1/create/widget"
}
microservice {
description "Get a widget"
uri "microservice:///example/v1/get/widget"
response {
description "Successfully received a widget back"
uri "resource:///example/reply/widget-instance"
}
}
microservice {
description "Get a widget"
uri "microservice:///example/v1/get/widget"
response {
description "Successfully received a widget back"
uri "resource:///example/reply/widget-instance"
}
response {
description "Failed to get a widget"
uri "resource:///example/reply/error"
}
}
microservice {
description "Get a widget"
uri "microservice:///example/v1/get/widget"
request {
description "Abort getting the original widget and get a different one"
uri "resource:///example/get/widget"
}
response {
description "Successfully received a widget back"
uri "resource:///example/reply/widget-instance"
}
response {
description "Failed to get a widget"
uri "resource:///example/reply/error"
}
}
microservice {
description "Get a widget"
uri "microservice:///example/v1/get/widget"
context {
package "example"
object "new-context"
}
payload {
package "example"
object "widget-lookup"
}
response {
description "Successfully received a widget back"
uri "resource:///example/reply/widget-instance"
}
response {
description "Failed to get a widget"
uri "resource:///example/reply/error"
}
}
microservice {
description "Get a widget"
uri "microservice:///example/v1/get/widget"
response {
description "Successfully received a widget back"
uri "resource:///example/reply/widget"
context {
package "example"
object "new-context"
}
payload {
package "example"
object "widget-instance"
}
}
response {
description "Failed to get a widget"
uri "resource:///example/reply/error"
}
}
client {
description "A new widget was received"
uri "client:///example/v1/new/widget"
}
client {
description "A new widget was received"
uri "client:///example/v1/new/widget"
response {
description "Confirm the widget was received"
uri "resource:///example/received/widget"
}
}
client {
description "A new widget was received"
uri "client:///example/v1/new/widget"
response {
description "Confirm the widget was received"
uri "resource:///example/received/widget"
}
response {
description "Reply with an error"
uri "resource:///example/reply/error"
}
}
client {
description "A new widget was received"
uri "client:///example/v1/new/widget"
request {
description "Kiss the widget that was just received"
uri "resource:///example/kiss/widget"
}
response {
description "Confirm the widget was kissed"
uri "resource:///example/kissed/widget"
}
response {
description "Confirm the widget was received"
uri "resource:///example/received/widget"
}
response {
description "Reply with an error"
uri "resource:///example/reply/error"
}
}