Notifications
Clear all

Is there any way to test rest API using JMX-Console?

3 Posts
4 Users
1 Reactions
1,235 Views
0
Topic starter

Is there any way to test rest API using JMX-Console?

3 Answers
1

better to test it with unit tests, please check examples of AbstractRestTest descendants, like RestAuthServerTest or other tests near by

0

Also, if you are trying not to create unit tests but to just try some stuff interactively, there are supposedly some good Chrome and Firefox plugins out there. For example, you can google for "chrome REST plugin"

0

We use REST calls to quickly check the communication between CMD and other instances.

Platform REST client uses a little different header for Authorization. So wanted to add this here.

Install Chrome plugin for encoding

Use the format ent={ENTNAME},user={USERNAME}:{PASSWORD}

You can use the encoding chrome plugin to do this.

 image 1

Now when you test the rest call, just add the header

Authorization: Basic ZW50PU9mZmljZSBEZXBvdCBJbmMsdXNlcj1NeVRlc3RVc2VyOnBhc3N3b3Jk

where the code is Base64 encoding generated.

Advanced REST client is a good chrome plugin to use.

Sample REST call using the plugin:

 image 1