Repository navigation
Wormhole API Scheme
Farid Bekran edited this page Aug 14, 2018
·
21 revisions
| Method | Url | Title | Model |
|---|---|---|---|
| POST | api/channels/input | Register input channel | INPUT CHANNEL MODEL |
| PUT | api/channels/input/{channel-id} | Edit input channel | |
| DELETE | api/channels/input/{channel-id} | Delete input channel | |
| PUT | api/channels/input/{channel-id}/deactivate | Deactivate input channel |
| Method | Url | Title | Model |
|---|---|---|---|
| POST | api/channels/output | Register output channel | OUTPUT CHANNEL MODEL |
| PUT | api/channels/output/{channel-id} | Edit output channel | |
| DELETE | api/channels/output/{channel-id} | Delete output channel | |
| PUT | api/channels/output/{channel-id}/deactivate | Deactivate output channel |
| Method | Url | Title | Model |
|---|---|---|---|
| PUT | api/consumer/{tenant-id}/deactivate | Deactivate consumer's tenant | |
| PUT | api/consumer/publisher-tenant/{tenant-id}/block | Block publisher's tenant | |
| PUT | api/consumer/publisher-app/{app-id}/block | Block publisher's app | |
| GET | api/consumer/publishers | Get all sources list |
| Method | Url | Title | Model |
|---|---|---|---|
| POST | api/message/ | Publish message | PUBLISH MESSAGE MODEL |
| Method | Url | Title | Model |
|---|---|---|---|
| POST | api/authorization/rule | Register rule | REGISTER ACL RULE MODEL |
| PUT | api/authorization/rule | Edit rule | EDIT ACL RULE MODEL |
| DELETE | api/authorization/rule/{id} | Delete rule |
| Method | Url | Title | Model |
|---|---|---|---|
| GET | api/publishers | Get all publishers | GET ALL PUBLISHERS RESPONSE MODEL |
| GET | api/consumers | Get all consumers | GET ALL CONSUMERS RESPONSE MODEL |
| GET | api/tenant/{tenant-id}/publishers | Get all tenant's publishers | |
| GET | api/tenant/{tenant-id}/consumers | Get all tenant's consumers |
{
channelType: (i.e. push, pull, internal kafka, queue, ... ),
url?: '',
topic?: '',
filter: {
categories?: [ ]
}
}
{
message: { },
target: { tenant?, category}
}
{
channelType: (i.e. push, pull, internal kafka… ),
url?: '',
topic?: '',
filter: {
categories: [ ],
tags?: [],
sourceApps?: [ ],
inputChannels?: []
}
}
]
publisher1: {
name: "",
channels: [ ]
}
]
]
consumer1: {
name: "",
channels: [ ],
isActive: bool
}
]