• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

error in running POST request for a Spring boot actuator endpoint

 
Bartender
Posts: 2265
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have a customized endpoint:


application.properties file:


When I run it in Postman, I made a request http://localhost:8080/actuator/customEndpoint?msg=hello.
But I got an error message from Postman:


Is there anything wrong with my custom endpoint or postman request ?
Postman_output.JPG
[Thumbnail for Postman_output.JPG]
 
Himai Minh
Bartender
Posts: 2265
13
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am able to answer my own question. The correct URL to make the post request should be:
http://localhost:8080/actuator/customEndpoint/writeMessae?msg=hello.
Now, it can print hello in Postman
 
reply
    Bookmark Topic Watch Topic
  • New Topic