mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Repository.get_readme and Repository.get_contents (issue #65)
This commit is contained in:
@@ -309,6 +309,18 @@
|
||||
{ "name": "total", "type": "integer" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ContentFile",
|
||||
"attributes": [
|
||||
{ "name": "type", "type": "string" },
|
||||
{ "name": "encoding", "type": "string" },
|
||||
{ "name": "size", "type": "integer" },
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "path", "type": "string" },
|
||||
{ "name": "content", "type": "string" },
|
||||
{ "name": "sha", "type": "string" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "File",
|
||||
"attributes": [
|
||||
@@ -1824,6 +1836,34 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": [ "get", "readme" ],
|
||||
"type": "ContentFile",
|
||||
"group": "contents",
|
||||
"request": {
|
||||
"verb": "GET",
|
||||
"url": [
|
||||
{ "type": "attribute", "value": [ "url" ] },
|
||||
{ "type": "constant", "value": "/readme" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": [ "get", "contents" ],
|
||||
"type": "ContentFile",
|
||||
"group": "contents",
|
||||
"mandatoryParameters": [
|
||||
{ "name": "path", "type": "string" }
|
||||
],
|
||||
"request": {
|
||||
"verb": "GET",
|
||||
"url": [
|
||||
{ "type": "attribute", "value": [ "url" ] },
|
||||
{ "type": "constant", "value": "/contents" },
|
||||
{ "type": "argument", "value": [ "path" ] }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": [ "compare" ],
|
||||
"type": "Comparison",
|
||||
|
||||
@@ -2397,6 +2397,69 @@
|
||||
"name": "Comparison",
|
||||
"methods": []
|
||||
},
|
||||
{
|
||||
"attributes": [
|
||||
{
|
||||
"type": {
|
||||
"simple": true,
|
||||
"cardinality": "scalar",
|
||||
"name": "string"
|
||||
},
|
||||
"name": "content"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"simple": true,
|
||||
"cardinality": "scalar",
|
||||
"name": "string"
|
||||
},
|
||||
"name": "encoding"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"simple": true,
|
||||
"cardinality": "scalar",
|
||||
"name": "string"
|
||||
},
|
||||
"name": "name"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"simple": true,
|
||||
"cardinality": "scalar",
|
||||
"name": "string"
|
||||
},
|
||||
"name": "path"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"simple": true,
|
||||
"cardinality": "scalar",
|
||||
"name": "string"
|
||||
},
|
||||
"name": "sha"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"simple": true,
|
||||
"cardinality": "scalar",
|
||||
"name": "integer"
|
||||
},
|
||||
"name": "size"
|
||||
},
|
||||
{
|
||||
"type": {
|
||||
"simple": true,
|
||||
"cardinality": "scalar",
|
||||
"name": "string"
|
||||
},
|
||||
"name": "type"
|
||||
}
|
||||
],
|
||||
"isCompletable": false,
|
||||
"name": "ContentFile",
|
||||
"methods": []
|
||||
},
|
||||
{
|
||||
"attributes": [
|
||||
{
|
||||
@@ -10696,6 +10759,81 @@
|
||||
"name": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"group": "contents",
|
||||
"name": [
|
||||
"get",
|
||||
"readme"
|
||||
],
|
||||
"mandatoryParameters": [],
|
||||
"request": {
|
||||
"url": [
|
||||
{
|
||||
"type": "attribute",
|
||||
"value": [
|
||||
"url"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "constant",
|
||||
"value": "/readme"
|
||||
}
|
||||
],
|
||||
"verb": "GET"
|
||||
},
|
||||
"isMutation": false,
|
||||
"optionalParameters": [],
|
||||
"type": {
|
||||
"simple": false,
|
||||
"cardinality": "scalar",
|
||||
"name": "ContentFile"
|
||||
}
|
||||
},
|
||||
{
|
||||
"group": "contents",
|
||||
"name": [
|
||||
"get",
|
||||
"contents"
|
||||
],
|
||||
"mandatoryParameters": [
|
||||
{
|
||||
"type": {
|
||||
"simple": true,
|
||||
"cardinality": "scalar",
|
||||
"name": "string"
|
||||
},
|
||||
"name": "path"
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
"url": [
|
||||
{
|
||||
"type": "attribute",
|
||||
"value": [
|
||||
"url"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "constant",
|
||||
"value": "/contents"
|
||||
},
|
||||
{
|
||||
"type": "argument",
|
||||
"value": [
|
||||
"path"
|
||||
]
|
||||
}
|
||||
],
|
||||
"verb": "GET"
|
||||
},
|
||||
"isMutation": false,
|
||||
"optionalParameters": [],
|
||||
"type": {
|
||||
"simple": false,
|
||||
"cardinality": "scalar",
|
||||
"name": "ContentFile"
|
||||
}
|
||||
},
|
||||
{
|
||||
"group": "Comparison",
|
||||
"name": [
|
||||
|
||||
Reference in New Issue
Block a user