Created
June 21, 2025 10:49
-
-
Save RaulMarquezInclan/4d2df8cc1586a408661882a1761405fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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