25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CONTRIBUTING.md 6.2 KiB

8 년 전
8 년 전
8 년 전
8 년 전
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # Contributing to public-apis
  2. > While the masses of pull requests and community involvement are appreciated, some pull requests have been specifically
  3. opened to market company APIs that offer paid solutions. This API list is not a marketing tool, but a tool to help the
  4. community build applications and use free, public APIs quickly and easily. Pull requests that are identified as marketing attempts will not be accepted.
  5. >
  6. > Please make sure the API you want to add has full, free access or at least a free tier and does not depend on the purchase of a device/service before submitting. An example that would be rejected is an API that is used to control a smart outlet - the API is free, but you must purchase the smart device.
  7. >
  8. > Thanks for understanding! :)
  9. ## Formatting
  10. Current API entry format:
  11. | API | Description | Auth | HTTPS | CORS | Call this API |
  12. | --- | --- | --- | --- | --- | --- |
  13. | API Title(Link to API documentation) | Description of API | Does this API require authentication? * | Does the API support HTTPS? | Does the API support [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)? * | [Does this API have a public Postman Collection?](https://learning.postman.com/docs/publishing-your-api/run-in-postman/creating-run-button/) |
  14. Example entry:
  15. ```
  16. | [NASA](https://api.nasa.gov) | NASA data, including imagery | No | Yes | Yes | [Run in Postman Button]
  17. ```
  18. \* Currently, the only accepted inputs for the `Auth` field are as follows:
  19. * `OAuth` - _the API supports OAuth_
  20. * `apiKey` - _the API uses a private key string/token for authentication - try and use the correct parameter_
  21. * `X-Mashape-Key` - _the name of the header which may need to be sent_
  22. * `No` - _the API requires no authentication to run_
  23. * `User-Agent` - _the name of the header to be sent with requests to the API_
  24. \* Currently, the only accepted inputs for the `CORS` field are as follows:
  25. * `Yes` - _the API supports CORS_
  26. * `No` - _the API does not support CORS_
  27. * `Unknown` - _it is unknown if the API supports CORS_
  28. \* For the Call this API column, add a link to a Postman collection. You may need to [create a collection](https://learning.postman.com/docs/getting-started/first-steps/creating-the-first-collection/) to create a Run in Postman Button.
  29. _Without proper [CORS configuration](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) an API will only be usable server side._
  30. After you've created a branch on your fork with your changes, it's time to [make a pull request][pr-link].
  31. *Please follow the guidelines given below while making a Pull Request to the Public APIs*
  32. ## Pull Request Guidelines
  33. * Never put an update/new version of an API that is already listed, the old version of the API gets deprecated.
  34. * Continue to follow the alphabetical ordering that is in place per section.
  35. * Each table column should be padded with one space on either side.
  36. * The Description should not exceed 100 characters.
  37. * If an API seems to fall into multiple categories, please place the listing within the section most in line with the services offered through the API. For example, the Instagram API is listed under `Social` since it is mainly a social network, even though it could also apply to `Photography`.
  38. * Add one link per Pull Request.
  39. * Make sure the PR title is in the format of `Add Api-name API` *for e.g.*: `Add Blockchain API`
  40. * Use a short descriptive commit message. *for e.g.*: ❌`Update Readme.md` ✔ `Add Blockchain API to Cryptocurrency`
  41. * Search previous Pull Requests or Issues before making a new one, as yours may be a duplicate.
  42. * Don't mention the TLD(Top Level Domain) in the name of the API. *for e.g.*: ❌Gmail.com ✔Gmail
  43. * Please make sure the API name does not end with `API`. *for e.g.*: ❌Gmail API ✔Gmail
  44. * Please make sure the API has proper documentation.
  45. * Please make sure you squash all commits together before opening a pull request. If your pull request requires changes upon review, please be sure to squash all additional commits as well. [This wiki page][squash-link] outlines the squash process.
  46. * Target your Pull Request to the `master` branch of the `public-apis`
  47. Once you’ve submitted a pull request, the collaborators can review your proposed changes and decide whether or not to incorporate (pull in) your changes.
  48. ### Pull Request Pro Tips
  49. * [Fork][fork-link] the repository and [clone][clone-link] it locally.
  50. Connect your local repository to the original `upstream` repository by adding it as a [remote][remote-link].
  51. Pull in changes from `upstream` often so that you stay up to date and so when you submit your pull request,
  52. merge conflicts will be less likely. See more detailed instructions [here][syncing-link].
  53. * Create a [branch][branch-link] for your edits.
  54. * Contribute in the style of the project as outlined above. This makes it easier for the collaborators to merge
  55. and for others to understand and maintain in the future.
  56. ### Open Pull Requests
  57. Once you’ve opened a pull request, a discussion will start around your proposed changes.
  58. Other contributors and users may chime in, but ultimately the decision is made by the collaborators.
  59. During the discussion, you may be asked to make some changes to your pull request.
  60. If so, add more commits to your branch and push them – they will automatically go into the existing pull request. But don't forget to squash them.
  61. Opening a pull request will trigger a build to check the validity of all links in the project. After the build completes, **please ensure that the build has passed**. If the build did not pass, please view the build logs and correct any errors that were found in your contribution.
  62. *Thanks for being a part of this project, and we look forward to hearing from you soon!*
  63. [branch-link]: <http://guides.github.com/introduction/flow/>
  64. [clone-link]: <https://help.github.com/articles/cloning-a-repository/>
  65. [fork-link]: <http://guides.github.com/activities/forking/>
  66. [oauth-link]: <https://en.wikipedia.org/wiki/OAuth>
  67. [pr-link]: <https://help.github.com/articles/creating-a-pull-request/>
  68. [remote-link]: <https://help.github.com/articles/configuring-a-remote-for-a-fork/>
  69. [syncing-link]: <https://help.github.com/articles/syncing-a-fork>
  70. [squash-link]: <https://github.com/todotxt/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit>