Question

How to test an API with variable passed into URL ?

  • 22 March 2024
  • 3 replies
  • 19 views

Badge +1

Hello,

 

Here's my problem:

I need to test an API that takes the (current date + four days) as a parameter in the URL.

Thus this field evolves over time and it cannot be a static URL path
How can I do this with Centreon?

thanks  in advance for your support

Luc


3 replies

Userlevel 6
Badge +18

Hi @LucVanacker please have a look to this article: 

 

Badge +1

I have red this article, but I did not find how to make dynamic the parameters on the API call.
Could you point it to me ?

 

thanks

Luc

Userlevel 6
Badge +18

If you want to use dynamic parameters, you will need to develop a script doing this then calling the URL

Reply