openapi: 3.0.0
info:
version: 2015-07-09
x-release: v4
title: APIs.io Engineering Platform Amazon API Gateway 2014 11 13 Gists API
description: Amazon API Gateway
Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.
x-logo:
url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png
backgroundColor: '#FFFFFF'
termsOfService: https://aws.amazon.com/service-terms/
contact:
name: Mike Ralphson
email: mike.ralphson@gmail.com
url: https://github.com/mermade/aws2openapi
x-twitter: PermittedSoc
license:
name: Apache 2.0 License
url: http://www.apache.org/licenses/
x-providerName: amazonaws.com
x-serviceName: apigateway
x-origin:
- contentType: application/json
url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/apigateway-2015-07-09.normal.json
converter:
url: https://github.com/mermade/aws2openapi
version: 1.0.0
x-apisguru-driver: external
x-apiClientRegistration:
url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct
x-apisguru-categories:
- cloud
x-preferred: true
servers:
- url: http://apigateway.{region}.amazonaws.com
variables:
region:
description: The AWS region
enum:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- us-gov-west-1
- us-gov-east-1
- ca-central-1
- eu-north-1
- eu-west-1
- eu-west-2
- eu-west-3
- eu-central-1
- eu-south-1
- af-south-1
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
- ap-southeast-1
- ap-southeast-2
- ap-east-1
- ap-south-1
- sa-east-1
- me-south-1
default: us-east-1
description: The Amazon API Gateway multi-region endpoint
- url: https://apigateway.{region}.amazonaws.com
variables:
region:
description: The AWS region
enum:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- us-gov-west-1
- us-gov-east-1
- ca-central-1
- eu-north-1
- eu-west-1
- eu-west-2
- eu-west-3
- eu-central-1
- eu-south-1
- af-south-1
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
- ap-southeast-1
- ap-southeast-2
- ap-east-1
- ap-south-1
- sa-east-1
- me-south-1
default: us-east-1
description: The Amazon API Gateway multi-region endpoint
- url: http://apigateway.{region}.amazonaws.com.cn
variables:
region:
description: The AWS region
enum:
- cn-north-1
- cn-northwest-1
default: cn-north-1
description: The Amazon API Gateway endpoint for China (Beijing) and China (Ningxia)
- url: https://apigateway.{region}.amazonaws.com.cn
variables:
region:
description: The AWS region
enum:
- cn-north-1
- cn-northwest-1
default: cn-north-1
description: The Amazon API Gateway endpoint for China (Beijing) and China (Ningxia)
security:
- hmac: []
tags:
- name: Gists
description: View, modify your gists.
paths:
/gists:
get:
summary: APIs.io Engineering Platform List gists for the authenticated user
description: 'Lists the authenticated user''s gists or if called anonymously, this endpoint returns all public gists:'
tags:
- Gists
operationId: gists/list
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#list-gists-for-the-authenticated-user
parameters:
- $ref: '#/components/parameters/since'
- $ref: '#/components/parameters/per-page'
- $ref: '#/components/parameters/page'
responses:
'200':
description: Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/base-gist'
examples:
default:
$ref: '#/components/examples/base-gist-items'
headers:
Link:
$ref: '#/components/headers/link'
'304':
$ref: '#/components/responses/not_modified'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
post:
summary: APIs.io Engineering Platform Create a gist
description: 'Allows you to add a new gist with one or more files.
**Note:** Don''t name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.'
operationId: gists/create
tags:
- Gists
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#create-a-gist
parameters: []
requestBody:
required: true
content:
application/json:
schema:
properties:
description:
description: Description of the gist
example: Example Ruby script
type: string
files:
description: Names and content for the files that make up the gist
example:
hello.rb:
content: puts "Hello, World!"
type: object
additionalProperties:
type: object
properties:
content:
description: Content of the file
readOnly: false
type: string
required:
- content
public:
oneOf:
- description: Flag indicating whether the gist is public
example: true
type: boolean
default: false
- type: string
example: 'true'
default: 'false'
enum:
- 'true'
- 'false'
required:
- files
type: object
examples:
default:
summary: Creating a gist
value:
description: Example of a gist
public: false
files:
README.md:
content: Hello World
responses:
'201':
description: Response
content:
application/json:
schema:
$ref: '#/components/schemas/gist-simple'
examples:
default:
$ref: '#/components/examples/gist'
headers:
Location:
example: https://api.github.com/gists/aa5a315d61ae9438b18d
schema:
type: string
'422':
$ref: '#/components/responses/validation_failed'
'304':
$ref: '#/components/responses/not_modified'
'404':
$ref: '#/components/responses/not_found'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
/gists/public:
get:
summary: APIs.io Engineering Platform List public gists
description: 'List public gists sorted by most recently updated to least recently updated.
Note: With [pagination](https://docs.github.com/enterprise-server@3.9/rest/guides/using-pagination-in-the-rest-api), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.'
tags:
- Gists
operationId: gists/list-public
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#list-public-gists
parameters:
- $ref: '#/components/parameters/since'
- $ref: '#/components/parameters/per-page'
- $ref: '#/components/parameters/page'
responses:
'200':
description: Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/base-gist'
examples:
default:
$ref: '#/components/examples/base-gist-items'
headers:
Link:
$ref: '#/components/headers/link'
'422':
$ref: '#/components/responses/validation_failed'
'304':
$ref: '#/components/responses/not_modified'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
/gists/starred:
get:
summary: APIs.io Engineering Platform List starred gists
description: 'List the authenticated user''s starred gists:'
tags:
- Gists
operationId: gists/list-starred
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#list-starred-gists
parameters:
- $ref: '#/components/parameters/since'
- $ref: '#/components/parameters/per-page'
- $ref: '#/components/parameters/page'
responses:
'200':
description: Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/base-gist'
examples:
default:
$ref: '#/components/examples/base-gist-items'
headers:
Link:
$ref: '#/components/headers/link'
'401':
$ref: '#/components/responses/requires_authentication'
'304':
$ref: '#/components/responses/not_modified'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
/gists/{gist_id}:
get:
summary: APIs.io Engineering Platform Get a gist
description: 'Gets a specified gist.
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.'
tags:
- Gists
operationId: gists/get
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#get-a-gist
parameters:
- $ref: '#/components/parameters/gist-id'
responses:
'200':
description: Response
content:
application/json:
schema:
$ref: '#/components/schemas/gist-simple'
examples:
default:
$ref: '#/components/examples/gist'
'403':
$ref: '#/components/responses/forbidden_gist'
'404':
$ref: '#/components/responses/not_found'
'304':
$ref: '#/components/responses/not_modified'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
patch:
summary: APIs.io Engineering Platform Update a gist
description: 'Allows you to update a gist''s description and to update, delete, or rename gist files. Files
from the previous version of the gist that aren''t explicitly changed during an edit
are unchanged.
At least one of `description` or `files` is required.
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.'
tags:
- Gists
operationId: gists/update
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#update-a-gist
parameters:
- $ref: '#/components/parameters/gist-id'
requestBody:
required: true
content:
application/json:
schema:
properties:
description:
description: The description of the gist.
example: Example Ruby script
type: string
files:
description: 'The gist files to be updated, renamed, or deleted. Each `key` must match the current filename
(including extension) of the targeted gist file. For example: `hello.py`.
To delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be
deleted if the specified object does not contain at least one of `content` or `filename`.'
example:
hello.rb:
content: blah
filename: goodbye.rb
type: object
additionalProperties:
type: object
nullable: true
properties:
content:
description: The new content of the file.
type: string
filename:
description: The new filename for the file.
type: string
nullable: true
type: object
nullable: true
examples:
updateGist:
summary: Updating a gist
value:
description: An updated gist description
files:
README.md:
content: Hello World from GitHub
deleteFile:
summary: Deleting a gist file
value:
files:
hello.py: null
renameFile:
summary: Renaming a gist file
value:
files:
hello.py:
filename: goodbye.py
responses:
'200':
description: Response
content:
application/json:
schema:
$ref: '#/components/schemas/gist-simple'
examples:
updateGist:
$ref: '#/components/examples/gist'
deleteFile:
$ref: '#/components/examples/delete-gist-file'
renameFile:
$ref: '#/components/examples/rename-gist-file'
'422':
$ref: '#/components/responses/validation_failed'
'404':
$ref: '#/components/responses/not_found'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
delete:
summary: APIs.io Engineering Platform Delete a gist
description: ''
tags:
- Gists
operationId: gists/delete
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#delete-a-gist
parameters:
- $ref: '#/components/parameters/gist-id'
responses:
'204':
description: Response
'404':
$ref: '#/components/responses/not_found'
'304':
$ref: '#/components/responses/not_modified'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
/gists/{gist_id}/comments:
get:
summary: APIs.io Engineering Platform List gist comments
description: 'Lists the comments on a gist.
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.'
tags:
- Gists
operationId: gists/list-comments
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/comments#list-gist-comments
parameters:
- $ref: '#/components/parameters/gist-id'
- $ref: '#/components/parameters/per-page'
- $ref: '#/components/parameters/page'
responses:
'200':
description: Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/gist-comment'
examples:
default:
$ref: '#/components/examples/gist-comment-items'
headers:
Link:
$ref: '#/components/headers/link'
'304':
$ref: '#/components/responses/not_modified'
'404':
$ref: '#/components/responses/not_found'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: comments
post:
summary: APIs.io Engineering Platform Create a gist comment
description: 'Creates a comment on a gist.
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.'
tags:
- Gists
operationId: gists/create-comment
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/comments#create-a-gist-comment
parameters:
- $ref: '#/components/parameters/gist-id'
requestBody:
required: true
content:
application/json:
schema:
properties:
body:
description: The comment text.
type: string
maxLength: 65535
example: Body of the attachment
type: object
required:
- body
examples:
default:
summary: Creating a comment in a gist
value:
body: This is a comment to a gist
responses:
'201':
description: Response
content:
application/json:
schema:
$ref: '#/components/schemas/gist-comment'
examples:
default:
$ref: '#/components/examples/gist-comment'
headers:
Location:
example: https://api.github.com/gists/a6db0bec360bb87e9418/comments/1
schema:
type: string
'304':
$ref: '#/components/responses/not_modified'
'404':
$ref: '#/components/responses/not_found'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: comments
/gists/{gist_id}/comments/{comment_id}:
get:
summary: APIs.io Engineering Platform Get a gist comment
description: 'Gets a comment on a gist.
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.'
tags:
- Gists
operationId: gists/get-comment
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/comments#get-a-gist-comment
parameters:
- $ref: '#/components/parameters/gist-id'
- $ref: '#/components/parameters/comment-id'
responses:
'200':
description: Response
content:
application/json:
schema:
$ref: '#/components/schemas/gist-comment'
examples:
default:
$ref: '#/components/examples/gist-comment'
'304':
$ref: '#/components/responses/not_modified'
'404':
$ref: '#/components/responses/not_found'
'403':
$ref: '#/components/responses/forbidden_gist'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: comments
patch:
summary: APIs.io Engineering Platform Update a gist comment
description: 'Updates a comment on a gist.
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.'
tags:
- Gists
operationId: gists/update-comment
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/comments#update-a-gist-comment
parameters:
- $ref: '#/components/parameters/gist-id'
- $ref: '#/components/parameters/comment-id'
requestBody:
required: true
content:
application/json:
schema:
properties:
body:
description: The comment text.
type: string
maxLength: 65535
example: Body of the attachment
type: object
required:
- body
examples:
default:
summary: Updating a comment in a gist
value:
body: This is an update to a comment in a gist
responses:
'200':
description: Response
content:
application/json:
schema:
$ref: '#/components/schemas/gist-comment'
examples:
default:
$ref: '#/components/examples/gist-comment'
'404':
$ref: '#/components/responses/not_found'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: comments
delete:
summary: APIs.io Engineering Platform Delete a gist comment
description: ''
tags:
- Gists
operationId: gists/delete-comment
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/comments#delete-a-gist-comment
parameters:
- $ref: '#/components/parameters/gist-id'
- $ref: '#/components/parameters/comment-id'
responses:
'204':
description: Response
'304':
$ref: '#/components/responses/not_modified'
'404':
$ref: '#/components/responses/not_found'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: comments
/gists/{gist_id}/commits:
get:
summary: APIs.io Engineering Platform List gist commits
description: ''
tags:
- Gists
operationId: gists/list-commits
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#list-gist-commits
parameters:
- $ref: '#/components/parameters/gist-id'
- $ref: '#/components/parameters/per-page'
- $ref: '#/components/parameters/page'
responses:
'200':
description: Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/gist-commit'
examples:
default:
$ref: '#/components/examples/gist-commit-items'
headers:
Link:
example: ; rel="next"
schema:
type: string
'404':
$ref: '#/components/responses/not_found'
'304':
$ref: '#/components/responses/not_modified'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
/gists/{gist_id}/forks:
get:
summary: APIs.io Engineering Platform List gist forks
description: ''
tags:
- Gists
operationId: gists/list-forks
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#list-gist-forks
parameters:
- $ref: '#/components/parameters/gist-id'
- $ref: '#/components/parameters/per-page'
- $ref: '#/components/parameters/page'
responses:
'200':
description: Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/gist-simple'
examples:
default:
$ref: '#/components/examples/gist-fork-items'
headers:
Link:
$ref: '#/components/headers/link'
'404':
$ref: '#/components/responses/not_found'
'304':
$ref: '#/components/responses/not_modified'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
post:
summary: APIs.io Engineering Platform Fork a gist
description: ''
tags:
- Gists
operationId: gists/fork
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#fork-a-gist
parameters:
- $ref: '#/components/parameters/gist-id'
responses:
'201':
description: Response
content:
application/json:
schema:
$ref: '#/components/schemas/base-gist'
examples:
default:
$ref: '#/components/examples/base-gist'
headers:
Location:
example: https://api.github.com/gists/aa5a315d61ae9438b18d
schema:
type: string
'404':
$ref: '#/components/responses/not_found'
'422':
$ref: '#/components/responses/validation_failed'
'304':
$ref: '#/components/responses/not_modified'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
/gists/{gist_id}/star:
get:
summary: APIs.io Engineering Platform Check if a gist is starred
description: ''
tags:
- Gists
operationId: gists/check-is-starred
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#check-if-a-gist-is-starred
parameters:
- $ref: '#/components/parameters/gist-id'
responses:
'204':
description: Response if gist is starred
'404':
description: Not Found if gist is not starred
content:
application/json:
schema:
type: object
properties: {}
additionalProperties: false
'304':
$ref: '#/components/responses/not_modified'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
put:
summary: APIs.io Engineering Platform Star a gist
description: Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-server@3.9/rest/guides/getting-started-with-the-rest-api#http-method)."
tags:
- Gists
operationId: gists/star
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#star-a-gist
parameters:
- $ref: '#/components/parameters/gist-id'
responses:
'204':
description: Response
'404':
$ref: '#/components/responses/not_found'
'304':
$ref: '#/components/responses/not_modified'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
delete:
summary: APIs.io Engineering Platform Unstar a gist
description: ''
tags:
- Gists
operationId: gists/unstar
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#unstar-a-gist
parameters:
- $ref: '#/components/parameters/gist-id'
responses:
'204':
description: Response
'304':
$ref: '#/components/responses/not_modified'
'404':
$ref: '#/components/responses/not_found'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
/gists/{gist_id}/{sha}:
get:
summary: APIs.io Engineering Platform Get a gist revision
description: 'Gets a specified gist revision.
This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
- **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.'
tags:
- Gists
operationId: gists/get-revision
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#get-a-gist-revision
parameters:
- $ref: '#/components/parameters/gist-id'
- name: sha
in: path
required: true
schema:
type: string
responses:
'200':
description: Response
content:
application/json:
schema:
$ref: '#/components/schemas/gist-simple'
examples:
default:
$ref: '#/components/examples/gist'
'422':
$ref: '#/components/responses/validation_failed'
'404':
$ref: '#/components/responses/not_found'
'403':
$ref: '#/components/responses/forbidden'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
/users/{username}/gists:
get:
summary: APIs.io Engineering Platform List gists for a user
description: 'Lists public gists for the specified user:'
tags:
- Gists
operationId: gists/list-for-user
externalDocs:
description: API method documentation
url: https://docs.github.com/enterprise-server@3.9/rest/gists/gists#list-gists-for-a-user
parameters:
- $ref: '#/components/parameters/username'
- $ref: '#/components/parameters/since'
- $ref: '#/components/parameters/per-page'
- $ref: '#/components/parameters/page'
responses:
'200':
description: Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/base-gist'
examples:
default:
$ref: '#/components/examples/base-gist-items'
headers:
Link:
$ref: '#/components/headers/link'
'422':
$ref: '#/components/responses/validation_failed'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: gists
subcategory: gists
components:
schemas:
nullable-simple-user:
title: Simple User
description: A GitHub user.
type: object
properties:
name:
nullable: true
type: string
email:
nullable: true
type: string
login:
type: string
example: octocat
id:
type: integer
format: int64
example: 1
node_id:
type: string
example: MDQ6VXNlcjE=
avatar_url:
type: string
format: uri
example: https://github.com/images/error/octocat_happy.gif
gravatar_id:
type: string
example: 41d064eb2195891e12d0413f63227ea7
nullable: true
url:
type: string
format: uri
example: https://api.github.com/users/octocat
html_url:
type: string
format: uri
example: https://github.com/octocat
followers_url:
type: string
format: uri
example: https://api.github.com/users/octocat/followers
following_url:
type: string
example: https://api.github.com/users/octocat/following{/other_user}
gists_url:
type: string
example: https://api.github.com/users/octocat/gists{/gist_id}
starred_url:
type: string
example: https://api.github.com/users/octocat/starred{/owner}{/repo}
subscriptions_url:
type: string
format: uri
example: https://api.github.com/users/octocat/subscriptions
organizations_url:
type: string
format: uri
example: https://api.github.com/users/octocat/orgs
repos_url:
type: string
format: uri
example: https://api.github.com/users/octocat/repos
events_url:
type: string
example: https://api.github.com/users/octocat/events{/privacy}
received_events_url:
type: string
format: uri
example: https://api.github.com/users/octocat/received_events
type:
type: string
example: User
site_admin:
type: boolean
starred_at:
type: string
example: '"2020-07-09T00:17:55Z"'
required:
- avatar_url
- events_url
- followers_url
- following_url
- gists_url
- gravatar_id
- html_url
- id
- node_id
- login
- organizations_url
- received_events_url
- repos_url
- site_admin
- starred_url
- subscriptions_url
- type
- url
nullable: true
gist-history:
title: Gist History
description: Gist History
type: object
properties:
user:
$ref: '#/components/schemas/nullable-simple-user'
version:
type: string
committed_at:
type: string
format: date-time
change_status:
type: object
properties:
total:
type: integer
additions:
type: integer
deletions:
type: integer
url:
type: string
format: uri
gist-commit:
title: Gist Commit
description: Gist Commit
type: object
properties:
url:
type: string
format: uri
example: https://api.github.com/gists/aa5a315d61ae9438b18d/57a7f021a713b1c5a6a199b54cc514735d2d462f
version:
type: string
example: 57a7f021a713b1c5a6a199b54cc514735d2d462f
user:
$ref: '#/components/schemas/nullable-simple-user'
change_status:
type: object
properties:
total:
type: integer
additions:
type: integer
deletions:
type: integer
committed_at:
type: string
format: date-time
example: '2010-04-14T02:15:15Z'
required:
- url
- user
- version
- committed_at
- change_status
public-user:
title: Public User
description: Public User
type: object
properties:
login:
type: string
id:
type: integer
format: int64
node_id:
type: string
avatar_url:
type: string
format: uri
gravatar_id:
type: string
nullable: true
url:
type: string
format: uri
html_url:
type: string
format: uri
followers_url:
type: string
format: uri
following_url:
type: string
gists_url:
type: string
starred_url:
type: string
subscriptions_url:
type: string
format: uri
organizations_url:
type: string
format: uri
repos_url:
type: string
format: uri
events_url:
type: string
received_events_url:
type: string
format: uri
type:
type: string
site_admin:
type: boolean
name:
type: string
nullable: true
company:
type: string
nullable: true
blog:
type: string
nullable: true
location:
type: string
nullable: true
email:
type: string
format: email
nullable: true
notification_email:
type: string
format: email
nullable: true
hireable:
type: boolean
nullable: true
bio:
type: string
nullable: true
twitter_username:
type: string
nullable: true
public_repos:
type: integer
public_gists:
type: integer
followers:
type: integer
following:
type: integer
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
plan:
type: object
properties:
collaborators:
type: integer
name:
type: string
space:
type: integer
private_repos:
type: integer
required:
- collaborators
- name
- space
- private_repos
suspended_at:
type: string
format: date-time
nullable: true
private_gists:
type: integer
example: 1
total_private_repos:
type: integer
example: 2
owned_private_repos:
type: integer
example: 2
disk_usage:
type: integer
example: 1
collaborators:
type: integer
example: 3
required:
- avatar_url
- events_url
- followers_url
- following_url
- gists_url
- gravatar_id
- html_url
- id
- node_id
- login
- organizations_url
- received_events_url
- repos_url
- site_admin
- starred_url
- subscriptions_url
- type
- url
- bio
- blog
- company
- email
- followers
- following
- hireable
- location
- name
- public_gists
- public_repos
- created_at
- updated_at
additionalProperties: false
basic-error:
title: Basic Error
description: Basic Error
type: object
properties:
message:
type: string
documentation_url:
type: string
url:
type: string
status:
type: string
validation-error:
title: Validation Error
description: Validation Error
type: object
required:
- message
- documentation_url
properties:
message:
type: string
documentation_url:
type: string
errors:
type: array
items:
type: object
required:
- code
properties:
resource:
type: string
field:
type: string
message:
type: string
code:
type: string
index:
type: integer
value:
oneOf:
- type: string
nullable: true
- type: integer
nullable: true
- type: array
nullable: true
items:
type: string
simple-user:
title: Simple User
description: A GitHub user.
type: object
properties:
name:
nullable: true
type: string
email:
nullable: true
type: string
login:
type: string
example: octocat
id:
type: integer
format: int64
example: 1
node_id:
type: string
example: MDQ6VXNlcjE=
avatar_url:
type: string
format: uri
example: https://github.com/images/error/octocat_happy.gif
gravatar_id:
type: string
example: 41d064eb2195891e12d0413f63227ea7
nullable: true
url:
type: string
format: uri
example: https://api.github.com/users/octocat
html_url:
type: string
format: uri
example: https://github.com/octocat
followers_url:
type: string
format: uri
example: https://api.github.com/users/octocat/followers
following_url:
type: string
example: https://api.github.com/users/octocat/following{/other_user}
gists_url:
type: string
example: https://api.github.com/users/octocat/gists{/gist_id}
starred_url:
type: string
example: https://api.github.com/users/octocat/starred{/owner}{/repo}
subscriptions_url:
type: string
format: uri
example: https://api.github.com/users/octocat/subscriptions
organizations_url:
type: string
format: uri
example: https://api.github.com/users/octocat/orgs
repos_url:
type: string
format: uri
example: https://api.github.com/users/octocat/repos
events_url:
type: string
example: https://api.github.com/users/octocat/events{/privacy}
received_events_url:
type: string
format: uri
example: https://api.github.com/users/octocat/received_events
type:
type: string
example: User
site_admin:
type: boolean
starred_at:
type: string
example: '"2020-07-09T00:17:55Z"'
required:
- avatar_url
- events_url
- followers_url
- following_url
- gists_url
- gravatar_id
- html_url
- id
- node_id
- login
- organizations_url
- received_events_url
- repos_url
- site_admin
- starred_url
- subscriptions_url
- type
- url
gist-simple:
title: Gist Simple
description: Gist Simple
type: object
properties:
forks:
deprecated: true
nullable: true
type: array
items:
type: object
properties:
id:
type: string
url:
type: string
format: uri
user:
$ref: '#/components/schemas/public-user'
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
history:
deprecated: true
nullable: true
type: array
items:
$ref: '#/components/schemas/gist-history'
fork_of:
nullable: true
title: Gist
description: Gist
type: object
properties:
url:
type: string
format: uri
forks_url:
type: string
format: uri
commits_url:
type: string
format: uri
id:
type: string
node_id:
type: string
git_pull_url:
type: string
format: uri
git_push_url:
type: string
format: uri
html_url:
type: string
format: uri
files:
type: object
additionalProperties:
type: object
properties:
filename:
type: string
type:
type: string
language:
type: string
raw_url:
type: string
size:
type: integer
public:
type: boolean
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
description:
type: string
nullable: true
comments:
type: integer
user:
$ref: '#/components/schemas/nullable-simple-user'
comments_url:
type: string
format: uri
owner:
$ref: '#/components/schemas/nullable-simple-user'
truncated:
type: boolean
forks:
type: array
items: {}
history:
type: array
items: {}
required:
- id
- node_id
- url
- forks_url
- commits_url
- git_pull_url
- git_push_url
- html_url
- comments_url
- public
- description
- comments
- user
- files
- created_at
- updated_at
url:
type: string
forks_url:
type: string
commits_url:
type: string
id:
type: string
node_id:
type: string
git_pull_url:
type: string
git_push_url:
type: string
html_url:
type: string
files:
type: object
additionalProperties:
nullable: true
type: object
properties:
filename:
type: string
type:
type: string
language:
type: string
raw_url:
type: string
size:
type: integer
truncated:
type: boolean
content:
type: string
public:
type: boolean
created_at:
type: string
updated_at:
type: string
description:
type: string
nullable: true
comments:
type: integer
user:
type: string
nullable: true
comments_url:
type: string
owner:
$ref: '#/components/schemas/simple-user'
truncated:
type: boolean
gist-comment:
title: Gist Comment
description: A comment made to a gist.
type: object
properties:
id:
type: integer
example: 1
node_id:
type: string
example: MDExOkdpc3RDb21tZW50MQ==
url:
type: string
format: uri
example: https://api.github.com/gists/a6db0bec360bb87e9418/comments/1
body:
description: The comment text.
type: string
maxLength: 65535
example: Body of the attachment
user:
$ref: '#/components/schemas/nullable-simple-user'
created_at:
type: string
format: date-time
example: '2011-04-18T23:23:56Z'
updated_at:
type: string
format: date-time
example: '2011-04-18T23:23:56Z'
author_association:
$ref: '#/components/schemas/author-association'
required:
- url
- id
- node_id
- user
- body
- author_association
- created_at
- updated_at
author-association:
title: author_association
type: string
example: OWNER
description: How the author is associated with the repository.
enum:
- COLLABORATOR
- CONTRIBUTOR
- FIRST_TIMER
- FIRST_TIME_CONTRIBUTOR
- MANNEQUIN
- MEMBER
- NONE
- OWNER
base-gist:
title: Base Gist
description: Base Gist
type: object
properties:
url:
type: string
format: uri
forks_url:
type: string
format: uri
commits_url:
type: string
format: uri
id:
type: string
node_id:
type: string
git_pull_url:
type: string
format: uri
git_push_url:
type: string
format: uri
html_url:
type: string
format: uri
files:
type: object
additionalProperties:
type: object
properties:
filename:
type: string
type:
type: string
language:
type: string
raw_url:
type: string
size:
type: integer
public:
type: boolean
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
description:
type: string
nullable: true
comments:
type: integer
user:
$ref: '#/components/schemas/nullable-simple-user'
comments_url:
type: string
format: uri
owner:
$ref: '#/components/schemas/simple-user'
truncated:
type: boolean
forks:
type: array
items: {}
history:
type: array
items: {}
required:
- id
- node_id
- url
- forks_url
- commits_url
- git_pull_url
- git_push_url
- html_url
- comments_url
- public
- description
- comments
- user
- files
- created_at
- updated_at
responses:
forbidden:
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/basic-error'
not_found:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/basic-error'
requires_authentication:
description: Requires authentication
content:
application/json:
schema:
$ref: '#/components/schemas/basic-error'
forbidden_gist:
description: Forbidden Gist
content:
application/json:
schema:
type: object
properties:
block:
type: object
properties:
reason:
type: string
created_at:
type: string
html_url:
type: string
nullable: true
message:
type: string
documentation_url:
type: string
not_modified:
description: Not modified
validation_failed:
description: Validation failed, or the endpoint has been spammed.
content:
application/json:
schema:
$ref: '#/components/schemas/validation-error'
parameters:
username:
name: username
description: The handle for the GitHub user account.
in: path
required: true
schema:
type: string
comment-id:
name: comment_id
description: The unique identifier of the comment.
in: path
required: true
schema:
type: integer
since:
name: since
description: 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.'
in: query
required: false
schema:
type: string
format: date-time
per-page:
name: per_page
description: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
default: 30
page:
name: page
description: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.9/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
in: query
schema:
type: integer
default: 1
gist-id:
name: gist_id
description: The unique identifier of the gist.
in: path
required: true
schema:
type: string
headers:
link:
example: ; rel="next", ; rel="last"
schema:
type: string
examples:
gist-comment-items:
value:
- id: 1
node_id: MDExOkdpc3RDb21tZW50MQ==
url: https://api.github.com/gists/a6db0bec360bb87e9418/comments/1
body: Just commenting for the sake of commenting
user:
login: octocat
id: 1
node_id: MDQ6VXNlcjE=
avatar_url: https://github.com/images/error/octocat_happy.gif
gravatar_id: ''
url: https://api.github.com/users/octocat
html_url: https://github.com/octocat
followers_url: https://api.github.com/users/octocat/followers
following_url: https://api.github.com/users/octocat/following{/other_user}
gists_url: https://api.github.com/users/octocat/gists{/gist_id}
starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/octocat/subscriptions
organizations_url: https://api.github.com/users/octocat/orgs
repos_url: https://api.github.com/users/octocat/repos
events_url: https://api.github.com/users/octocat/events{/privacy}
received_events_url: https://api.github.com/users/octocat/received_events
type: User
site_admin: false
created_at: '2011-04-18T23:23:56Z'
updated_at: '2011-04-18T23:23:56Z'
author_association: COLLABORATOR
base-gist-items:
value:
- url: https://api.github.com/gists/aa5a315d61ae9438b18d
forks_url: https://api.github.com/gists/aa5a315d61ae9438b18d/forks
commits_url: https://api.github.com/gists/aa5a315d61ae9438b18d/commits
id: aa5a315d61ae9438b18d
node_id: MDQ6R2lzdGFhNWEzMTVkNjFhZTk0MzhiMThk
git_pull_url: https://gist.github.com/aa5a315d61ae9438b18d.git
git_push_url: https://gist.github.com/aa5a315d61ae9438b18d.git
html_url: https://gist.github.com/aa5a315d61ae9438b18d
files:
hello_world.rb:
filename: hello_world.rb
type: application/x-ruby
language: Ruby
raw_url: https://gist.githubusercontent.com/octocat/6cad326836d38bd3a7ae/raw/db9c55113504e46fa076e7df3a04ce592e2e86d8/hello_world.rb
size: 167
public: true
created_at: '2010-04-14T02:15:15Z'
updated_at: '2011-06-20T11:34:15Z'
description: Hello World Examples
comments: 0
user: null
comments_url: https://api.github.com/gists/aa5a315d61ae9438b18d/comments/
owner:
login: octocat
id: 1
node_id: MDQ6VXNlcjE=
avatar_url: https://github.com/images/error/octocat_happy.gif
gravatar_id: ''
url: https://api.github.com/users/octocat
html_url: https://github.com/octocat
followers_url: https://api.github.com/users/octocat/followers
following_url: https://api.github.com/users/octocat/following{/other_user}
gists_url: https://api.github.com/users/octocat/gists{/gist_id}
starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/octocat/subscriptions
organizations_url: https://api.github.com/users/octocat/orgs
repos_url: https://api.github.com/users/octocat/repos
events_url: https://api.github.com/users/octocat/events{/privacy}
received_events_url: https://api.github.com/users/octocat/received_events
type: User
site_admin: false
truncated: false
rename-gist-file:
value:
url: https://api.github.com/gists/2decf6c462d9b4418f2
forks_url: https://api.github.com/gists/2decf6c462d9b4418f2/forks
commits_url: https://api.github.com/gists/2decf6c462d9b4418f2/commits
id: 2decf6c462d9b4418f2
node_id: G_kwDOBhHyLdoAIDg0ODFZDliNDQxOGYy
git_pull_url: https://gist.github.com/2decf6c462d9b4418f2.git
git_push_url: https://gist.github.com/2decf6c462d9b4418f2.git
html_url: https://gist.github.com/2decf6c462d9b4418f2
files:
goodbye.py:
filename: goodbye.py
type: application/x-python
language: Python
raw_url: https://gist.githubusercontent.com/monalisa/8481a81af6b7a2decf6c462d9b4418f2/raw/ac3e6daf176fafe73609fd000cd188e4472010fb/goodbye.py
size: 4
truncated: false
content: '# Hello world'
public: true
created_at: '2022-09-20T12:11:58Z'
updated_at: '2022-09-21T10:28:06Z'
description: A gist description.
comments: 0
user: null
comments_url: https://api.github.com/gists/2decf6c462d9b4418f2/comments
owner:
login: monalisa
id: 104456405
node_id: U_kgDOBhHyLQ
avatar_url: https://avatars.githubusercontent.com/u/104456405?v=4
gravatar_id: ''
url: https://api.github.com/users/monalisa
html_url: https://github.com/monalisa
followers_url: https://api.github.com/users/monalisa/followers
following_url: https://api.github.com/users/monalisa/following{/other_user}
gists_url: https://api.github.com/users/monalisa/gists{/gist_id}
starred_url: https://api.github.com/users/monalisa/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/monalisa/subscriptions
organizations_url: https://api.github.com/users/monalisa/orgs
repos_url: https://api.github.com/users/monalisa/repos
events_url: https://api.github.com/users/monalisa/events{/privacy}
received_events_url: https://api.github.com/users/monalisa/received_events
type: User
site_admin: true
forks: []
history:
- user:
login: monalisa
id: 104456405
node_id: U_kgyLQ
avatar_url: https://avatars.githubusercontent.com/u/104456405?v=4
gravatar_id: ''
url: https://api.github.com/users/monalisa
html_url: https://github.com/monalisa
followers_url: https://api.github.com/users/monalisa/followers
following_url: https://api.github.com/users/monalisa/following{/other_user}
gists_url: https://api.github.com/users/monalisa/gists{/gist_id}
starred_url: https://api.github.com/users/monalisa/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/monalisa/subscriptions
organizations_url: https://api.github.com/users/monalisa/orgs
repos_url: https://api.github.com/users/monalisa/repos
events_url: https://api.github.com/users/monalisa/events{/privacy}
received_events_url: https://api.github.com/users/monalisa/received_events
type: User
site_admin: true
version: 468aac8caed5f0c3b859b8286968
committed_at: '2022-09-21T10:28:06Z'
change_status:
total: 0
additions: 0
deletions: 0
url: https://api.github.com/gists/8481a81af6b7a2d418f2/468aac8caed5f0c3b859b8286968
truncated: false
base-gist:
value:
url: https://api.github.com/gists/aa5a315d61ae9438b18d
forks_url: https://api.github.com/gists/aa5a315d61ae9438b18d/forks
commits_url: https://api.github.com/gists/aa5a315d61ae9438b18d/commits
id: aa5a315d61ae9438b18d
node_id: MDQ6R2lzdGFhNWEzMTVkNjFhZTk0MzhiMThk
git_pull_url: https://gist.github.com/aa5a315d61ae9438b18d.git
git_push_url: https://gist.github.com/aa5a315d61ae9438b18d.git
html_url: https://gist.github.com/aa5a315d61ae9438b18d
files:
hello_world.rb:
filename: hello_world.rb
type: application/x-ruby
language: Ruby
raw_url: https://gist.githubusercontent.com/octocat/6cad326836d38bd3a7ae/raw/db9c55113504e46fa076e7df3a04ce592e2e86d8/hello_world.rb
size: 167
public: true
created_at: '2010-04-14T02:15:15Z'
updated_at: '2011-06-20T11:34:15Z'
description: Hello World Examples
comments: 0
user: null
comments_url: https://api.github.com/gists/aa5a315d61ae9438b18d/comments/
owner:
login: octocat
id: 1
node_id: MDQ6VXNlcjE=
avatar_url: https://github.com/images/error/octocat_happy.gif
gravatar_id: ''
url: https://api.github.com/users/octocat
html_url: https://github.com/octocat
followers_url: https://api.github.com/users/octocat/followers
following_url: https://api.github.com/users/octocat/following{/other_user}
gists_url: https://api.github.com/users/octocat/gists{/gist_id}
starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/octocat/subscriptions
organizations_url: https://api.github.com/users/octocat/orgs
repos_url: https://api.github.com/users/octocat/repos
events_url: https://api.github.com/users/octocat/events{/privacy}
received_events_url: https://api.github.com/users/octocat/received_events
type: User
site_admin: false
truncated: false
gist-commit-items:
value:
- url: https://api.github.com/gists/aa5a315d61ae9438b18d/57a7f021a713b1c5a6a199b54cc514735d2d462f
version: 57a7f021a713b1c5a6a199b54cc514735d2d462f
user:
login: octocat
id: 1
node_id: MDQ6VXNlcjE=
avatar_url: https://github.com/images/error/octocat_happy.gif
gravatar_id: ''
url: https://api.github.com/users/octocat
html_url: https://github.com/octocat
followers_url: https://api.github.com/users/octocat/followers
following_url: https://api.github.com/users/octocat/following{/other_user}
gists_url: https://api.github.com/users/octocat/gists{/gist_id}
starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/octocat/subscriptions
organizations_url: https://api.github.com/users/octocat/orgs
repos_url: https://api.github.com/users/octocat/repos
events_url: https://api.github.com/users/octocat/events{/privacy}
received_events_url: https://api.github.com/users/octocat/received_events
type: User
site_admin: false
change_status:
deletions: 0
additions: 180
total: 180
committed_at: '2010-04-14T02:15:15Z'
gist:
value:
url: https://api.github.com/gists/2decf6c462d9b4418f2
forks_url: https://api.github.com/gists/2decf6c462d9b4418f2/forks
commits_url: https://api.github.com/gists/2decf6c462d9b4418f2/commits
id: 2decf6c462d9b4418f2
node_id: G_kwDOBhHyLdZDliNDQxOGYy
git_pull_url: https://gist.github.com/2decf6c462d9b4418f2.git
git_push_url: https://gist.github.com/2decf6c462d9b4418f2.git
html_url: https://gist.github.com/2decf6c462d9b4418f2
files:
README.md:
filename: README.md
type: text/markdown
language: Markdown
raw_url: https://gist.githubusercontent.com/monalisa/2decf6c462d9b4418f2/raw/ac3e6daf176fafe73609fd000cd188e4472010fb/README.md
size: 23
truncated: false
content: Hello world from GitHub
public: true
created_at: '2022-09-20T12:11:58Z'
updated_at: '2022-09-21T10:28:06Z'
description: An updated gist description.
comments: 0
user: null
comments_url: https://api.github.com/gists/2decf6c462d9b4418f2/comments
owner:
login: monalisa
id: 104456405
node_id: U_kgDOBhHyLQ
avatar_url: https://avatars.githubusercontent.com/u/104456405?v=4
gravatar_id: ''
url: https://api.github.com/users/monalisa
html_url: https://github.com/monalisa
followers_url: https://api.github.com/users/monalisa/followers
following_url: https://api.github.com/users/monalisa/following{/other_user}
gists_url: https://api.github.com/users/monalisa/gists{/gist_id}
starred_url: https://api.github.com/users/monalisa/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/monalisa/subscriptions
organizations_url: https://api.github.com/users/monalisa/orgs
repos_url: https://api.github.com/users/monalisa/repos
events_url: https://api.github.com/users/monalisa/events{/privacy}
received_events_url: https://api.github.com/users/monalisa/received_events
type: User
site_admin: true
forks: []
history:
- user:
login: monalisa
id: 104456405
node_id: U_kgyLQ
avatar_url: https://avatars.githubusercontent.com/u/104456405?v=4
gravatar_id: ''
url: https://api.github.com/users/monalisa
html_url: https://github.com/monalisa
followers_url: https://api.github.com/users/monalisa/followers
following_url: https://api.github.com/users/monalisa/following{/other_user}
gists_url: https://api.github.com/users/monalisa/gists{/gist_id}
starred_url: https://api.github.com/users/monalisa/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/monalisa/subscriptions
organizations_url: https://api.github.com/users/monalisa/orgs
repos_url: https://api.github.com/users/monalisa/repos
events_url: https://api.github.com/users/monalisa/events{/privacy}
received_events_url: https://api.github.com/users/monalisa/received_events
type: User
site_admin: true
version: 468aac8caed5f0c3b859b8286968
committed_at: '2022-09-21T10:28:06Z'
change_status:
total: 2
additions: 1
deletions: 1
url: https://api.github.com/gists/8481a81af6b7a2d418f2/468aac8caed5f0c3b859b8286968
truncated: false
gist-fork-items:
value:
- url: https://api.github.com/gists/aa5a315d61ae9438b18d
forks_url: https://api.github.com/gists/aa5a315d61ae9438b18d/forks
commits_url: https://api.github.com/gists/aa5a315d61ae9438b18d/commits
id: aa5a315d61ae9438b18d
node_id: MDQ6R2lzdGFhNWEzMTVkNjFhZTk0MzhiMThk
git_pull_url: https://gist.github.com/aa5a315d61ae9438b18d.git
git_push_url: https://gist.github.com/aa5a315d61ae9438b18d.git
html_url: https://gist.github.com/aa5a315d61ae9438b18d
files:
hello_world.rb:
filename: hello_world.rb
type: application/x-ruby
language: Ruby
raw_url: https://gist.githubusercontent.com/octocat/6cad326836d38bd3a7ae/raw/db9c55113504e46fa076e7df3a04ce592e2e86d8/hello_world.rb
size: 167
public: true
created_at: '2010-04-14T02:15:15Z'
updated_at: '2011-06-20T11:34:15Z'
description: Hello World Examples
comments: 1
user: null
comments_url: https://api.github.com/gists/aa5a315d61ae9438b18d/comments/
owner:
login: octocat
id: 1
node_id: MDQ6VXNlcjE=
avatar_url: https://github.com/images/error/octocat_happy.gif
gravatar_id: ''
url: https://api.github.com/users/octocat
html_url: https://github.com/octocat
followers_url: https://api.github.com/users/octocat/followers
following_url: https://api.github.com/users/octocat/following{/other_user}
gists_url: https://api.github.com/users/octocat/gists{/gist_id}
starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/octocat/subscriptions
organizations_url: https://api.github.com/users/octocat/orgs
repos_url: https://api.github.com/users/octocat/repos
events_url: https://api.github.com/users/octocat/events{/privacy}
received_events_url: https://api.github.com/users/octocat/received_events
type: User
site_admin: false
gist-comment:
value:
id: 1
node_id: MDExOkdpc3RDb21tZW50MQ==
url: https://api.github.com/gists/a6db0bec360bb87e9418/comments/1
body: Just commenting for the sake of commenting
user:
login: octocat
id: 1
node_id: MDQ6VXNlcjE=
avatar_url: https://github.com/images/error/octocat_happy.gif
gravatar_id: ''
url: https://api.github.com/users/octocat
html_url: https://github.com/octocat
followers_url: https://api.github.com/users/octocat/followers
following_url: https://api.github.com/users/octocat/following{/other_user}
gists_url: https://api.github.com/users/octocat/gists{/gist_id}
starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/octocat/subscriptions
organizations_url: https://api.github.com/users/octocat/orgs
repos_url: https://api.github.com/users/octocat/repos
events_url: https://api.github.com/users/octocat/events{/privacy}
received_events_url: https://api.github.com/users/octocat/received_events
type: User
site_admin: false
created_at: '2011-04-18T23:23:56Z'
updated_at: '2011-04-18T23:23:56Z'
author_association: COLLABORATOR
delete-gist-file:
value:
url: https://api.github.com/gists/2decf6c462d9b4418f2
forks_url: https://api.github.com/gists/2decf6c462d9b4418f2/forks
commits_url: https://api.github.com/gists/2decf6c462d9b4418f2/commits
id: 2decf6c462d9b4418f2
node_id: G_kwDOBhHyLdoAIDg0ODFZDliNDQxOGYy
git_pull_url: https://gist.github.com/2decf6c462d9b4418f2.git
git_push_url: https://gist.github.com/2decf6c462d9b4418f2.git
html_url: https://gist.github.com/2decf6c462d9b4418f2
files: null
public: true
created_at: '2022-09-20T12:11:58Z'
updated_at: '2022-09-21T10:28:06Z'
description: A gist description.
comments: 0
user: null
comments_url: https://api.github.com/gists/2decf6c462d9b4418f2/comments
owner:
login: monalisa
id: 104456405
node_id: U_kgDOBhHyLQ
avatar_url: https://avatars.githubusercontent.com/u/104456405?v=4
gravatar_id: ''
url: https://api.github.com/users/monalisa
html_url: https://github.com/monalisa
followers_url: https://api.github.com/users/monalisa/followers
following_url: https://api.github.com/users/monalisa/following{/other_user}
gists_url: https://api.github.com/users/monalisa/gists{/gist_id}
starred_url: https://api.github.com/users/monalisa/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/monalisa/subscriptions
organizations_url: https://api.github.com/users/monalisa/orgs
repos_url: https://api.github.com/users/monalisa/repos
events_url: https://api.github.com/users/monalisa/events{/privacy}
received_events_url: https://api.github.com/users/monalisa/received_events
type: User
site_admin: true
forks: []
history:
- user:
login: monalisa
id: 104456405
node_id: U_kgyLQ
avatar_url: https://avatars.githubusercontent.com/u/104456405?v=4
gravatar_id: ''
url: https://api.github.com/users/monalisa
html_url: https://github.com/monalisa
followers_url: https://api.github.com/users/monalisa/followers
following_url: https://api.github.com/users/monalisa/following{/other_user}
gists_url: https://api.github.com/users/monalisa/gists{/gist_id}
starred_url: https://api.github.com/users/monalisa/starred{/owner}{/repo}
subscriptions_url: https://api.github.com/users/monalisa/subscriptions
organizations_url: https://api.github.com/users/monalisa/orgs
repos_url: https://api.github.com/users/monalisa/repos
events_url: https://api.github.com/users/monalisa/events{/privacy}
received_events_url: https://api.github.com/users/monalisa/received_events
type: User
site_admin: true
version: 9cc352a89178a6d4
committed_at: '2022-09-21T10:28:06Z'
change_status:
total: 1
additions: 0
deletions: 1
url: https://api.github.com/gists/8481a81af6b7a2d418f2/468aac8caed5f0c3b859b8286968
truncated: false
securitySchemes:
hmac:
type: apiKey
name: Authorization
in: header
description: Amazon Signature authorization v4
x-amazon-apigateway-authtype: awsSigv4
externalDocs:
description: Amazon Web Services documentation
url: https://docs.aws.amazon.com/apigateway/
x-hasEquivalentPaths: true