Giriş
POST isteği ile kullanılır
Örnek
Şöyle yaparız
@WriteOperationpublic String helloNameBody(String name) {return "Hello " + name;}
Çağırmak için şöyle yaparız
> curl --location --request POST 'http://localhost:8080/actuator/helloworld' \
> --header 'Content-Type: application/json' \
> --data-raw '{
>     "name": "Albie"
> }'
Hello Albie 
Hiç yorum yok:
Yorum Gönder