ccaa94df7cba9b729cb283fff71d5f166b7cf3fa
[dmaap/messagerouter/msgrtr.git] / src / main / resources / routes.conf
1 package com.att.nsa.cambria.endpoints
2
3 #
4 #       We need to deprecate the original non-versioned paths and use /v1/ for them.
5 #       Non-versioned paths will be supported "permanently."
6 #
7
8 #
9 #       metrics
10 #
11 GET  /metrics  CambriaMetrics.get
12 GET  /metrics/{metricName}  CambriaMetrics.getMetricByName
13
14 GET  /v1/metrics  CambriaMetrics.get
15 GET  /v1/metrics/{metricName}  CambriaMetrics.getMetricByName
16
17 #
18 #       get and post events
19 #
20 GET             /events/{topic}/{consumerGroup}/{clientId}              CambriaEvents.getEvents
21 POST    /events/{topic}                                                                 CambriaEvents.pushEvents
22 POST    /events/{topic}/{partition}                                             CambriaEvents.pushEvents
23
24 GET             /v1/events/{topic}/{consumerGroup}/{clientId}           CambriaEvents.getEvents
25 POST    /v1/events/{topic}                                                                      CambriaEvents.pushEvents
26 POST    /v1/events/{topic}/{partition}                                          CambriaEvents.pushEvents
27
28
29 #
30 #       api keys
31 #
32 GET             /apiKeys  CambriaApiKeys.getAllApiKeys
33 POST    /apiKeys/create  CambriaApiKeys.createApiKey
34 GET             /apiKeys/{apiKey}  CambriaApiKeys.getApiKey
35 PATCH   /apiKeys/{apiKey}  CambriaApiKeys.updateApiKey
36 DELETE  /apiKeys/{apiKey}  CambriaApiKeys.deleteApiKey
37
38 GET             /v1/apiKeys  CambriaApiKeys.getAllApiKeys
39 POST    /v1/apiKeys/create  CambriaApiKeys.createApiKey
40 GET             /v1/apiKeys/{apiKey}  CambriaApiKeys.getApiKey
41 PATCH   /v1/apiKeys/{apiKey}  CambriaApiKeys.updateApiKey
42 DELETE  /v1/apiKeys/{apiKey}  CambriaApiKeys.deleteApiKey
43
44 #
45 #       topics
46 #
47 POST    /topics/create                  CambriaTopics.createTopic
48 GET             /topics                                 CambriaTopics.getTopics
49 GET             /topics/{topicName}             CambriaTopics.getTopic
50 DELETE  /topics/{topicName}             CambriaTopics.deleteTopic
51
52 POST    /v1/topics/create                       CambriaTopics.createTopic
53 GET             /v1/topics                                      CambriaTopics.getTopics
54 GET             /v1/topics/{topicName}          CambriaTopics.getTopic
55 DELETE  /v1/topics/{topicName}          CambriaTopics.deleteTopic
56
57 #
58 #       topic permissions
59 #
60 GET             /topics/{topicName}/producers                                   CambriaTopics.getPublishersByTopicName
61 PUT             /topics/{topicName}/producers/{producerId}              CambriaTopics.permitPublisherForTopic
62 DELETE  /topics/{topicName}/producers/{producerId}              CambriaTopics.denyPublisherForTopic
63
64 GET             /topics/{topicName}/consumers                                   CambriaTopics.getConsumersByTopicName
65 PUT             /topics/{topicName}/consumers/{consumerId}              CambriaTopics.permitConsumerForTopic
66 DELETE  /topics/{topicName}/consumers/{consumerId}              CambriaTopics.denyConsumerForTopic
67
68 GET             /v1/topics/{topicName}/producers                                        CambriaTopics.getPublishersByTopicName
69 PUT             /v1/topics/{topicName}/producers/{producerId}           CambriaTopics.permitPublisherForTopic
70 DELETE  /v1/topics/{topicName}/producers/{producerId}           CambriaTopics.denyPublisherForTopic
71
72 GET             /v1/topics/{topicName}/consumers                                        CambriaTopics.getConsumersByTopicName
73 PUT             /v1/topics/{topicName}/consumers/{consumerId}           CambriaTopics.permitConsumerForTopic
74 DELETE  /v1/topics/{topicName}/consumers/{consumerId}           CambriaTopics.denyConsumerForTopic
75
76 #
77 #       Admin
78 #
79 GET             /admin/consumerCache                                                    CambriaAdmin.showConsumerCache
80 POST    /admin/dropConsumerCache                                                CambriaAdmin.dropConsumerCache
81
82 GET             /v1/admin/consumerCache                                                 CambriaAdmin.showConsumerCache
83 POST    /v1/admin/dropConsumerCache                                             CambriaAdmin.dropConsumerCache
84
85 ###############################################################################
86 #
87 #       UI routes don't need to be versioned
88 #
89
90 #
91 #       UI
92 #
93 GET     /                                                       CambriaUi.hello
94 GET     /ui/apikeys                                     CambriaUi.getApiKeysTable
95 GET     /ui/apikeys/{apiKey}            CambriaUi.getApiKey
96 GET     /ui/topics                                      CambriaUi.getTopicsTable
97 GET     /ui/topics/{topic}                      CambriaUi.getTopic
98
99
100 # typical static file paths
101 GET             /css/                           staticDir:css
102 GET             /js/                            staticDir:js
103 GET             /images/                        staticDir:images
104 GET             /font/                          staticDir:font
105 GET             /favicon.ico            staticFile:images/attLogo.gif
106 GET             /font-awesome/          staticDir:font-awesome