Package helper

Class SubmitToGitHub

java.lang.Object
helper.SubmitToGitHub

public class SubmitToGitHub extends Object
Contains methods for uploading files to a GitHub repository through GitHub's REST API.
Author:
Afonso Sampaio
  • Constructor Details

    • SubmitToGitHub

      public SubmitToGitHub()
  • Method Details

    • createFile

      public static String createFile(String filename) throws IOException, InterruptedException
      Creates a file to be sent through a PUT request to GitHub's REST API.
      Parameters:
      filename - The name of the ontology file to upload.
      Returns:
      The body of the response sent by the server.
      Throws:
      IOException - If an I/O error occurs when sending or receiving.
      InterruptedException - If the operation is interrupted.