GPT Store
GPT Store · Acciones GPT
GitHub Repository File Management API
An OpenAPI specification for retrieving and updating files in a GitHub repository.
GET /repos/{owner}/{repo}/contents/{path}Get contents of a fileRetrieves the contents of a file in a GitHub repository including its SHA.
PUT /repos/{owner}/{repo}/contents/{path}Update a fileUpdates a file in a GitHub repository.
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "GitHub Repository File Management API",
"description": "An OpenAPI specification for retrieving and updating files in a GitHub repository.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.github.com"
}
],
"paths": {
"/repos/{owner}/{repo}/contents/{path}": {
"get": {
"summary": "Get contents of a file",
"description": "Retrieves the contents of a file in a GitHub repository including its SHA.",
"operationId": "getFileContents",
"parameters": [
{
"name": "owner",
"in": "path",
"required": true,
"description": "Owner of the repository",
"schema": {
"type": "string",
"default": "prajwalsouza"
}
},
{
"name": "repo",
"in": "path",
"required": true,
"description": "Name of the repository",
"schema": {
"type": "string",
"default": "GPT-Store"
}
},
{
"name": "path",
"in": "path",
"required": true,
"description": "Full path to the file within the repository",
"schema": {
"type": "string",
"default": "README.md"
}
}
],
"responses": {
"200": {
"description": "File content and SHA retrieved successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FileContentResponse"
}
}
}
}
},
"security": [
{
"GitHubToken": []
}
]
},
"put": {
"summary": "Update a file",
"description": "Updates a file in a GitHub repository.",
"operationId": "updateFile",
"parameters": [
{
"name": "owner",
"in": "path",
"required": true,
"description": "Owner of the repository",
"schema": {
"type": "string",
"default": "prajwalsouza"
}
},
{
"name": "repo",
"in": "path",
"required": true,
"description": "Name of the repository",
"schema": {
"type": "string",
"default": "GPT-Store"
}
},
{
"name": "path",
"in": "path",
"required": true,
"description": "Full path to the file within the repository",
"schema": {
"type": "string",
"default": "README.md"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateFileRequest"
}
}
}
},
"responses": {
"200": {
"description": "File updated successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateFileResponse"
}
}
}
}
},
"security": [
{
"GitHubToken": []
}
]
}
}
},
"components": {
"schemas": {
"FileContentResponse": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the file."
},
"path": {
"type": "string",
"description": "Full path of the file."
},
"sha": {
"type": "string",
"description": "SHA of the file."
},
"size": {
"type": "integer",
"description": "Size of the file in bytes."
},
"content": {
"type": "string",
"description": "Content of the file encoded in Base64."
}
}
},
"UpdateFileRequest": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "The commit message."
},
"content": {
"type": "string",
"description": "The new file content, encoded in Base64."
},
"sha": {
"type": "string",
"description": "The SHA of the file being replaced."
}
},
"required": [
"message",
"content",
"sha"
]
},
"UpdateFileResponse": {
"type": "object",
"properties": {
"content": {
"type": "object",
"description": "Details of the updated file."
}
}
}
},
"securitySchemes": {
"GitHubToken": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "token"
}
}
}
}GitHub Repository File Management API
An OpenAPI specification for retrieving and updating files in a GitHub repository.
GET /repos/{owner}/{repo}/contents/{path}Get contents of a fileRetrieves the contents of a file in a GitHub repository including its SHA.
PUT /repos/{owner}/{repo}/contents/{path}Update a fileUpdates a file in a GitHub repository.
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "GitHub Repository File Management API",
"description": "An OpenAPI specification for retrieving and updating files in a GitHub repository.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.github.com"
}
],
"paths": {
"/repos/{owner}/{repo}/contents/{path}": {
"get": {
"summary": "Get contents of a file",
"description": "Retrieves the contents of a file in a GitHub repository including its SHA.",
"operationId": "getFileContents",
"parameters": [
{
"name": "owner",
"in": "path",
"required": true,
"description": "Owner of the repository",
"schema": {
"type": "string",
"default": "prajwalsouza"
}
},
{
"name": "repo",
"in": "path",
"required": true,
"description": "Name of the repository",
"schema": {
"type": "string",
"default": "GPT-Store"
}
},
{
"name": "path",
"in": "path",
"required": true,
"description": "Full path to the file within the repository",
"schema": {
"type": "string",
"default": "README.md"
}
}
],
"responses": {
"200": {
"description": "File content and SHA retrieved successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FileContentResponse"
}
}
}
}
},
"security": [
{
"GitHubToken": []
}
]
},
"put": {
"summary": "Update a file",
"description": "Updates a file in a GitHub repository.",
"operationId": "updateFile",
"parameters": [
{
"name": "owner",
"in": "path",
"required": true,
"description": "Owner of the repository",
"schema": {
"type": "string",
"default": "prajwalsouza"
}
},
{
"name": "repo",
"in": "path",
"required": true,
"description": "Name of the repository",
"schema": {
"type": "string",
"default": "GPT-Store"
}
},
{
"name": "path",
"in": "path",
"required": true,
"description": "Full path to the file within the repository",
"schema": {
"type": "string",
"default": "README.md"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateFileRequest"
}
}
}
},
"responses": {
"200": {
"description": "File updated successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateFileResponse"
}
}
}
}
},
"security": [
{
"GitHubToken": []
}
]
}
}
},
"components": {
"schemas": {
"FileContentResponse": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the file."
},
"path": {
"type": "string",
"description": "Full path of the file."
},
"sha": {
"type": "string",
"description": "SHA of the file."
},
"size": {
"type": "integer",
"description": "Size of the file in bytes."
},
"content": {
"type": "string",
"description": "Content of the file encoded in Base64."
}
}
},
"UpdateFileRequest": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "The commit message."
},
"content": {
"type": "string",
"description": "The new file content, encoded in Base64."
},
"sha": {
"type": "string",
"description": "The SHA of the file being replaced."
}
},
"required": [
"message",
"content",
"sha"
]
},
"UpdateFileResponse": {
"type": "object",
"properties": {
"content": {
"type": "object",
"description": "Details of the updated file."
}
}
}
},
"securitySchemes": {
"GitHubToken": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "token"
}
}
}
}GitHub Repository File Management API
An OpenAPI specification for retrieving and updating files in a GitHub repository.
GET /repos/{owner}/{repo}/contents/{path}Get contents of a fileRetrieves the contents of a file in a GitHub repository including its SHA.
PUT /repos/{owner}/{repo}/contents/{path}Update a fileUpdates a file in a GitHub repository.
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "GitHub Repository File Management API",
"description": "An OpenAPI specification for retrieving and updating files in a GitHub repository.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.github.com"
}
],
"paths": {
"/repos/{owner}/{repo}/contents/{path}": {
"get": {
"summary": "Get contents of a file",
"description": "Retrieves the contents of a file in a GitHub repository including its SHA.",
"operationId": "getFileContents",
"parameters": [
{
"name": "owner",
"in": "path",
"required": true,
"description": "Owner of the repository",
"schema": {
"type": "string",
"default": "prajwalsouza"
}
},
{
"name": "repo",
"in": "path",
"required": true,
"description": "Name of the repository",
"schema": {
"type": "string",
"default": "GPT-Store"
}
},
{
"name": "path",
"in": "path",
"required": true,
"description": "Full path to the file within the repository",
"schema": {
"type": "string",
"default": "README.md"
}
}
],
"responses": {
"200": {
"description": "File content and SHA retrieved successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FileContentResponse"
}
}
}
}
},
"security": [
{
"GitHubToken": []
}
]
},
"put": {
"summary": "Update a file",
"description": "Updates a file in a GitHub repository.",
"operationId": "updateFile",
"parameters": [
{
"name": "owner",
"in": "path",
"required": true,
"description": "Owner of the repository",
"schema": {
"type": "string",
"default": "prajwalsouza"
}
},
{
"name": "repo",
"in": "path",
"required": true,
"description": "Name of the repository",
"schema": {
"type": "string",
"default": "GPT-Store"
}
},
{
"name": "path",
"in": "path",
"required": true,
"description": "Full path to the file within the repository",
"schema": {
"type": "string",
"default": "README.md"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateFileRequest"
}
}
}
},
"responses": {
"200": {
"description": "File updated successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateFileResponse"
}
}
}
}
},
"security": [
{
"GitHubToken": []
}
]
}
}
},
"components": {
"schemas": {
"FileContentResponse": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the file."
},
"path": {
"type": "string",
"description": "Full path of the file."
},
"sha": {
"type": "string",
"description": "SHA of the file."
},
"size": {
"type": "integer",
"description": "Size of the file in bytes."
},
"content": {
"type": "string",
"description": "Content of the file encoded in Base64."
}
}
},
"UpdateFileRequest": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "The commit message."
},
"content": {
"type": "string",
"description": "The new file content, encoded in Base64."
},
"sha": {
"type": "string",
"description": "The SHA of the file being replaced."
}
},
"required": [
"message",
"content",
"sha"
]
},
"UpdateFileResponse": {
"type": "object",
"properties": {
"content": {
"type": "object",
"description": "Details of the updated file."
}
}
}
},
"securitySchemes": {
"GitHubToken": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "token"
}
}
}
}