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.

Clarify instructions for /forks endpoint.#828

Merged
jasonrudolph merged 2 commits intomasterfromjammur-patch-1
Jul 27, 2015

Conversation

@jammur
Copy link
Contributor

The existing text isn't clear as to whether theorganization parameter is optional. This can lead to people assuming the parameter isn't optional and doingorganization=username, which will not work.

The existing text isn't clear as to whether the `organization` parameter is optional. This can lead to people assuming the parameter isn't optional and doing `organization=username`, which will not work.
@jasonrudolph
Copy link
Contributor

@jammur: Thanks for this pull request. 🙇

The existing docs for this endpoint are a little unusual when compared to the rest of the API docs. I think thatmight be contributing to some of the confusion. I'll try to explain and also propose a remedy.

For most of the API endpoints, the docs describe each parameter inside the "Parameters" table. For example, consider thedocs for the "Create a file" endpoint:

create-file-docs

It's kind of strange that the"Create a fork" docs describe the parameter in freeform proseand also in the "Parameters" table:

create-fork-docs

While we're updating these docs, I recommend addressing that anomaly like so:

  1. Remove the freeform documentation that exists just above the parameters table. Incorporate that content into the parameters table.
  2. Inside the parameters table, state that the parameter is optional.[example]

What do you think?

This removes the freeform prose from the /forks endpoint description, and clarifies the `organization` parameter in the parameters table.
@jammur
Copy link
ContributorAuthor

@jasonrudolph Thanks for the feedback! I agree. I've pushed a new commit with your suggested changes.

jasonrudolph added a commit that referenced this pull requestJul 27, 2015
Clarify instructions for /forks endpoint.
@jasonrudolphjasonrudolph merged commite92d9cb intomasterJul 27, 2015
@jasonrudolphjasonrudolph deleted the jammur-patch-1 branchJuly 27, 2015 13:07
@jasonrudolph
Copy link
Contributor

🍰

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@jammur@jasonrudolph

[8]ページ先頭

©2009-2025 Movatter.jp