summaryrefslogtreecommitdiffstats
path: root/src/main/resources/routes.conf
blob: ccaa94df7cba9b729cb283fff71d5f166b7cf3fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package com.att.nsa.cambria.endpoints

#
#	We need to deprecate the original non-versioned paths and use /v1/ for them.
#	Non-versioned paths will be supported "permanently."
#

#
#	metrics
#
GET  /metrics  CambriaMetrics.get
GET  /metrics/{metricName}  CambriaMetrics.getMetricByName

GET  /v1/metrics  CambriaMetrics.get
GET  /v1/metrics/{metricName}  CambriaMetrics.getMetricByName

#
#	get and post events
#
GET		/events/{topic}/{consumerGroup}/{clientId}		CambriaEvents.getEvents
POST	/events/{topic}									CambriaEvents.pushEvents
POST	/events/{topic}/{partition}						CambriaEvents.pushEvents

GET		/v1/events/{topic}/{consumerGroup}/{clientId}		CambriaEvents.getEvents
POST	/v1/events/{topic}									CambriaEvents.pushEvents
POST	/v1/events/{topic}/{partition}						CambriaEvents.pushEvents


#
#	api keys
#
GET		/apiKeys  CambriaApiKeys.getAllApiKeys
POST	/apiKeys/create  CambriaApiKeys.createApiKey
GET		/apiKeys/{apiKey}  CambriaApiKeys.getApiKey
PATCH 	/apiKeys/{apiKey}  CambriaApiKeys.updateApiKey
DELETE	/apiKeys/{apiKey}  CambriaApiKeys.deleteApiKey

GET		/v1/apiKeys  CambriaApiKeys.getAllApiKeys
POST	/v1/apiKeys/create  CambriaApiKeys.createApiKey
GET		/v1/apiKeys/{apiKey}  CambriaApiKeys.getApiKey
PATCH	/v1/apiKeys/{apiKey}  CambriaApiKeys.updateApiKey
DELETE	/v1/apiKeys/{apiKey}  CambriaApiKeys.deleteApiKey

#
#	topics
#
POST 	/topics/create			CambriaTopics.createTopic
GET		/topics					CambriaTopics.getTopics
GET		/topics/{topicName}		CambriaTopics.getTopic
DELETE	/topics/{topicName}		CambriaTopics.deleteTopic

POST 	/v1/topics/create			CambriaTopics.createTopic
GET		/v1/topics					CambriaTopics.getTopics
GET		/v1/topics/{topicName}		CambriaTopics.getTopic
DELETE	/v1/topics/{topicName}		CambriaTopics.deleteTopic

#
#	topic permissions
#
GET		/topics/{topicName}/producers					CambriaTopics.getPublishersByTopicName
PUT		/topics/{topicName}/producers/{producerId}		CambriaTopics.permitPublisherForTopic
DELETE	/topics/{topicName}/producers/{producerId}		CambriaTopics.denyPublisherForTopic

GET		/topics/{topicName}/consumers					CambriaTopics.getConsumersByTopicName
PUT		/topics/{topicName}/consumers/{consumerId}		CambriaTopics.permitConsumerForTopic
DELETE	/topics/{topicName}/consumers/{consumerId}		CambriaTopics.denyConsumerForTopic

GET		/v1/topics/{topicName}/producers					CambriaTopics.getPublishersByTopicName
PUT		/v1/topics/{topicName}/producers/{producerId}		CambriaTopics.permitPublisherForTopic
DELETE	/v1/topics/{topicName}/producers/{producerId}		CambriaTopics.denyPublisherForTopic

GET		/v1/topics/{topicName}/consumers					CambriaTopics.getConsumersByTopicName
PUT		/v1/topics/{topicName}/consumers/{consumerId}		CambriaTopics.permitConsumerForTopic
DELETE	/v1/topics/{topicName}/consumers/{consumerId}		CambriaTopics.denyConsumerForTopic

#
#	Admin
#
GET		/admin/consumerCache							CambriaAdmin.showConsumerCache
POST	/admin/dropConsumerCache						CambriaAdmin.dropConsumerCache

GET		/v1/admin/consumerCache							CambriaAdmin.showConsumerCache
POST	/v1/admin/dropConsumerCache						CambriaAdmin.dropConsumerCache

###############################################################################
#
#	UI routes don't need to be versioned
#

#
#	UI
#
GET	/							CambriaUi.hello
GET	/ui/apikeys					CambriaUi.getApiKeysTable
GET	/ui/apikeys/{apiKey}		CambriaUi.getApiKey
GET	/ui/topics					CambriaUi.getTopicsTable
GET	/ui/topics/{topic}			CambriaUi.getTopic


# typical static file paths
GET		/css/				staticDir:css
GET		/js/				staticDir:js
GET		/images/			staticDir:images
GET		/font/				staticDir:font
GET		/favicon.ico		staticFile:images/attLogo.gif
GET		/font-awesome/		staticDir:font-awesome