Package v1.sulphurapi.handlers.endpoints
Class EndpointsActionsHandler
java.lang.Object
v1.sulphurapi.handlers.endpoints.EndpointsActionsHandler
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EndpointsActionsHandler
public EndpointsActionsHandler()
-
-
Method Details
-
getActionHandler
public void getActionHandler(String endpointURL, String method, JTextArea requestArea, JTextArea responseArea, String body, List<String> headers) Handles the action of sending an API request and updating the request and response areas.- Parameters:
endpointURL
- The URL of the API endpoint to send the request to.method
- The HTTP method to use for the request (e.g., GET, POST).requestArea
- The JTextArea where the request details will be displayed.responseArea
- The JTextArea where the response details will be displayed.body
- The body of the request, if applicable (e.g., for POST requests).headers
- A list of headers to include in the request.
-