Skip to content

Instantly share code, notes, and snippets.

@RaulMarquezInclan
Created June 21, 2025 10:49
Show Gist options
  • Select an option

  • Save RaulMarquezInclan/4d2df8cc1586a408661882a1761405fd to your computer and use it in GitHub Desktop.

Select an option

Save RaulMarquezInclan/4d2df8cc1586a408661882a1761405fd to your computer and use it in GitHub Desktop.
openapi: 3.1.0
info:
title: Mentora Read-Only GitHub
description: Read-only access to Mentora GitHub repo to provide file-level and code context.
version: 1.0.0
servers:
- url: https://api.github.com
paths:
/repos/{owner}/{repo}/contents/{path}:
get:
operationId: getFileContent
summary: Get contents of a file in the repo
parameters:
- name: owner
in: path
required: true
schema:
type: string
- name: repo
in: path
required: true
schema:
type: string
- name: path
in: path
required: true
schema:
type: string
responses:
"200":
description: File content fetched
content:
application/json:
schema:
type: object
properties:
content:
type: string
encoding:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment