Open Source Alternative

Open Source Alternative · Acciones GPT

GitHub APII

API for accessing content from GitHub repositories

  • GET /repos/RunaCapital/awesome-oss-alternatives/contents/README.mdGet repository content

    Retrieves the contents of a file or directory in a repository

  • GET /repos/sereneblue/awesome-oss/contents/README.mdGet repository content

    Retrieves the contents of a file or directory in a repository

  • GET /repos/awesome-selfhosted/awesome-selfhosted/contents/README.mdGet repository content

    Retrieves the contents of a file or directory in a repository

Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "GitHub APII",
    "version": "1.0.0",
    "description": "API for accessing content from GitHub repositories"
  },
  "servers": [
    {
      "url": "https://api.github.com",
      "description": "GitHub API server"
    }
  ],
  "paths": {
    "/repos/RunaCapital/awesome-oss-alternatives/contents/README.md": {
      "get": {
        "operationId": "get-source-1",
        "summary": "Get repository content",
        "description": "Retrieves the contents of a file or directory in a repository",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "description": "Owner of the repository",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "description": "Name of the repository",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "path",
            "required": true,
            "description": "Path to the file or directory",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "sha": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Content not found"
          }
        }
      }
    },
    "/repos/sereneblue/awesome-oss/contents/README.md": {
      "get": {
        "operationId": "get-source-2",
        "summary": "Get repository content",
        "description": "Retrieves the contents of a file or directory in a repository",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "description": "Owner of the repository",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "description": "Name of the repository",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "path",
            "required": true,
            "description": "Path to the file or directory",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "sha": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Content not found"
          }
        }
      }
    },
    "/repos/awesome-selfhosted/awesome-selfhosted/contents/README.md": {
      "get": {
        "operationId": "get-source-3",
        "summary": "Get repository content",
        "description": "Retrieves the contents of a file or directory in a repository",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "description": "Owner of the repository",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "description": "Name of the repository",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "path",
            "required": true,
            "description": "Path to the file or directory",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "sha": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Content not found"
          }
        }
      }
    }
  }
}