This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin Cookbook and have Ken Kousen on-line!
See this thread for details.
Win a copy of Kotlin Cookbook this week in the Kotlin forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

error in running POST request for a Spring boot actuator endpoint

 
Ranch Hand
Posts: 1780
12
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 1780
12
  • Likes 2
  • Mark post as helpful
  • send pies
  • 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
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!