Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Swap :user for :owner for clarity#150

Merged
pengwynn merged 1 commit intomasterfromclearer-owner-repo
Sep 24, 2012
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletionscontent/index.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -34,8 +34,8 @@ The API is expected to be finalized Real Soon Now.

* All `*_url` attributes move to a `_links` object. See [Pull
Requests](/v3/pulls/#get-a-single-pull-request) for an example.
* The `/repos/:user/:repo/hooks/:id/test` action becomes
`/repos/:user/:repo/hooks/:id/tests`.
* The `/repos/:owner/:repo/hooks/:id/test` action becomes
`/repos/:owner/:repo/hooks/:id/tests`.
* The `/gists/:id/fork` action becomes `/gists/:id/forks`.
* Gist forks/history objects become separate API calls.
* Gist files object is not returned on Gist listings.
Expand Down
2 changes: 1 addition & 1 deletioncontent/v3.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -50,7 +50,7 @@ parameter:
$ curl -i "https://api.github.com/repos/mojombo/jekyll/issues?state=closed"
</pre>

In this example, the 'mojombo' and 'jekyll' values are provided for the `:user`
In this example, the 'mojombo' and 'jekyll' values are provided for the `:owner`
and `:repo` parameters in the path while `:state` is passed in the query
string.

Expand Down
6 changes: 3 additions & 3 deletionscontent/v3/events.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,15 +25,15 @@ All Events have the same response format:

## List repository events

GET /repos/:user/:repo/events
GET /repos/:owner/:repo/events

## List issue events for a repository

GET /repos/:user/:repo/issues/events
GET /repos/:owner/:repo/issues/events

## List public events for a network of repositories

GET /networks/:user/:repo/events
GET /networks/:owner/:repo/events

## List public events for an organization

Expand Down
6 changes: 3 additions & 3 deletionscontent/v3/git/blobs.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,7 +17,7 @@ read more about the use of mime types in the API [here](/v3/media/).

## Get a Blob

GET /repos/:user/:repo/git/blobs/:sha
GET /repos/:owner/:repo/git/blobs/:sha

### Response

Expand All@@ -26,7 +26,7 @@ read more about the use of mime types in the API [here](/v3/media/).

## Create a Blob

POST /repos/:user/:repo/git/blobs
POST /repos/:owner/:repo/git/blobs

### Input

Expand All@@ -35,7 +35,7 @@ read more about the use of mime types in the API [here](/v3/media/).
### Response

<%= headers 201,
:Location => "https://api.github.com/git/:user/:repo/blob/:sha" %>
:Location => "https://api.github.com/git/:owner/:repo/blob/:sha" %>
<%= json :sha => "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15" %>

## Custom Mime Types
Expand Down
6 changes: 3 additions & 3 deletionscontent/v3/git/commits.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@ title: Git Commits | GitHub API

## Get a Commit

GET /repos/:user/:repo/git/commits/:sha
GET /repos/:owner/:repo/git/commits/:sha

### Response

Expand All@@ -18,7 +18,7 @@ title: Git Commits | GitHub API

## Create a Commit

POST /repos/:user/:repo/git/commits
POST /repos/:owner/:repo/git/commits

### Parameters

Expand DownExpand Up@@ -71,6 +71,6 @@ committer.date
### Response

<%= headers 201,
:Location => "https://api.github.com/git/:user/:repo/commit/:sha" %>
:Location => "https://api.github.com/git/:owner/:repo/commit/:sha" %>
<%= json :new_commit %>

16 changes: 8 additions & 8 deletionscontent/v3/git/refs.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,11 +9,11 @@ title: Git Refs | GitHub API

## Get a Reference

GET /repos/:user/:repo/git/refs/:ref
GET /repos/:owner/:repo/git/refs/:ref

The `ref` in the URL must be formatted as `heads/branch`, not just `branch`. For example, the call to get the data for a branch named `skunkworkz/featureA` would be:

GET /repos/:user/:repo/git/refs/heads/skunkworkz/featureA
GET /repos/:owner/:repo/git/refs/heads/skunkworkz/featureA

### Response

Expand All@@ -22,7 +22,7 @@ The `ref` in the URL must be formatted as `heads/branch`, not just `branch`. For

## Get all References

GET /repos/:user/:repo/git/refs
GET /repos/:owner/:repo/git/refs

This will return an array of all the references on the system, including
things like notes and stashes if they exist on the server. Anything in
Expand All@@ -32,7 +32,7 @@ most common.
You can also request a sub-namespace. For example, to get all the tag
references, you can call:

GET /repos/:user/:repo/git/refs/tags
GET /repos/:owner/:repo/git/refs/tags

For a full refs listing, you'll get something that looks like:

Expand All@@ -42,7 +42,7 @@ For a full refs listing, you'll get something that looks like:

## Create a Reference

POST /repos/:user/:repo/git/refs
POST /repos/:owner/:repo/git/refs

### Parameters

Expand All@@ -65,7 +65,7 @@ sha

## Update a Reference

PATCH /repos/:user/:repo/git/refs/:ref
PATCH /repos/:owner/:repo/git/refs/:ref

### Parameters

Expand All@@ -85,12 +85,12 @@ out or setting it to `false` will make sure you're not overwriting work.
### Response

<%= headers 200, \
:Location => "https://api.github.com/git/:user/:repo/commit/:sha" %>
:Location => "https://api.github.com/git/:owner/:repo/commit/:sha" %>
<%= json :ref %>

## Delete a Reference

DELETE /repos/:user/:repo/git/refs/:ref
DELETE /repos/:owner/:repo/git/refs/:ref

Example: Deleting a branch:

Expand Down
6 changes: 3 additions & 3 deletionscontent/v3/git/tags.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,7 +12,7 @@ lightweight tags.

## Get a Tag

GET /repos/:user/:repo/git/tags/:sha
GET /repos/:owner/:repo/git/tags/:sha

### Response

Expand All@@ -28,7 +28,7 @@ the `refs/tags/[tag]` reference. If you want to create a lightweight
tag, you simply have to create the reference - this call would be
unnecessary.

POST /repos/:user/:repo/git/tags
POST /repos/:owner/:repo/git/tags

### Parameters

Expand DownExpand Up@@ -57,6 +57,6 @@ tagger.date
### Response

<%= headers 201,
:Location => "https://api.github.com/repos/:user/:repo/git/tags/:sha" %>
:Location => "https://api.github.com/repos/:owner/:repo/git/tags/:sha" %>
<%= json :gittag %>

8 changes: 4 additions & 4 deletionscontent/v3/git/trees.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@ title: Git Trees | GitHub API

## Get a Tree

GET /repos/:user/:repo/git/trees/:sha
GET /repos/:owner/:repo/git/trees/:sha

### Response

Expand All@@ -18,7 +18,7 @@ title: Git Trees | GitHub API

## Get a Tree Recursively

GET /repos/:user/:repo/git/trees/:sha?recursive=1
GET /repos/:owner/:repo/git/trees/:sha?recursive=1

### Response

Expand All@@ -32,7 +32,7 @@ tree and a nested path modifying that tree are specified, it will
overwrite the contents of that tree with the new path contents and write
a new tree out.

POST /repos/:user/:repo/git/trees
POST /repos/:owner/:repo/git/trees

### Parameters

Expand DownExpand Up@@ -68,6 +68,6 @@ tree.content
### Response

<%= headers 201,
:Location => "https://api.github.com/repos/:user/:repo/git/trees/:sha" %>
:Location => "https://api.github.com/repos/:owner/:repo/git/trees/:sha" %>
<%= json :tree_new %>

8 changes: 4 additions & 4 deletionscontent/v3/issues.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,7 +45,7 @@ since

## List issues for a repository

GET /repos/:user/:repo/issues
GET /repos/:owner/:repo/issues

### Parameters

Expand DownExpand Up@@ -85,7 +85,7 @@ since

## Get a single issue

GET /repos/:user/:repo/issues/:number
GET /repos/:owner/:repo/issues/:number

### Response

Expand All@@ -94,7 +94,7 @@ since

## Create an issue

POST /repos/:user/:repo/issues
POST /repos/:owner/:repo/issues

### Input

Expand DownExpand Up@@ -132,7 +132,7 @@ issue.

## Edit an issue

PATCH /repos/:user/:repo/issues/:number
PATCH /repos/:owner/:repo/issues/:number

### Input

Expand Down
4 changes: 2 additions & 2 deletionscontent/v3/issues/assignees.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,7 +12,7 @@ title: Issue Assignees | GitHub API
This call lists all the available assignees (owner + collaborators) to which
issues may be assigned.

GET /repos/:user/:repo/assignees
GET /repos/:owner/:repo/assignees

### Response

Expand All@@ -23,7 +23,7 @@ issues may be assigned.

You may also check to see if a particular user is an assignee for a repository.

GET /repos/:user/:repo/assignees/:assignee
GET /repos/:owner/:repo/assignees/:assignee

### Response

Expand Down
10 changes: 5 additions & 5 deletionscontent/v3/issues/comments.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,7 +16,7 @@ You can read more about the use of mime types in the API

## List comments on an issue

GET /repos/:user/:repo/issues/:number/comments
GET /repos/:owner/:repo/issues/:number/comments

### Response

Expand All@@ -25,7 +25,7 @@ You can read more about the use of mime types in the API

## Get a single comment

GET /repos/:user/:repo/issues/comments/:id
GET /repos/:owner/:repo/issues/comments/:id

### Response

Expand All@@ -34,7 +34,7 @@ You can read more about the use of mime types in the API

## Create a comment

POST /repos/:user/:repo/issues/:number/comments
POST /repos/:owner/:repo/issues/:number/comments

### Input

Expand All@@ -52,7 +52,7 @@ body

## Edit a comment

PATCH /repos/:user/:repo/issues/comments/:id
PATCH /repos/:owner/:repo/issues/comments/:id

### Input

Expand All@@ -68,7 +68,7 @@ body

## Delete a comment

DELETE /repos/:user/:repo/issues/comments/:id
DELETE /repos/:owner/:repo/issues/comments/:id

### Response

Expand Down
6 changes: 3 additions & 3 deletionscontent/v3/issues/events.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -51,7 +51,7 @@ assigned

## List events for an issue

GET /repos/:user/:repo/issues/:issue_number/events
GET /repos/:owner/:repo/issues/:issue_number/events

### Response

Expand All@@ -60,7 +60,7 @@ assigned

## List events for a repository

GET /repos/:user/:repo/issues/events
GET /repos/:owner/:repo/issues/events

### Response

Expand All@@ -69,7 +69,7 @@ assigned

## Get a single event

GET /repos/:user/:repo/issues/events/:id
GET /repos/:owner/:repo/issues/events/:id

### Response

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp