Skip to content

Add new plugin for HTTP requests

Lorenzo Prosseda requested to merge procsiab/boatswain:plugin-apirequest into main

The commits in this branch implement an API request plugin, also addressing issues #77 (closed) and #81 (closed)

Implement a plugin that performs an HTTP request, through libcurl, with the following properties

  • URI
  • method
  • payload (optional, and available only for the POST method)

The payload is read from a JSON file, the method is selected through a ComboRow and the URI from an EntryRow; those UI elements are declared inside an XML UI file and referenced through a separate type containing the underlying properties.

I took those decisions based on my understanding of the other plugins already created, therefore I am looking forward to getting the feedback of the other maintainers.

Merge request reports