1
mirror of https://github.com/public-apis/public-apis synced 2024-12-01 20:18:16 +01:00
public-apis/CONTRIBUTING.md

96 lines
5.5 KiB
Markdown
Raw Normal View History

2016-12-12 05:28:20 +01:00
# Contributing to public-apis
2021-10-13 12:41:49 +02:00
> While the masses of pull requests and community involvement are appreciated, some pull requests have been specifically
2016-12-12 05:28:20 +01:00
opened to market company APIs that offer paid solutions. This API list is not a marketing tool, but a tool to help the
2016-12-12 11:35:05 +01:00
community build applications and use free, public APIs quickly and easily. Pull requests that are identified as marketing attempts will not be accepted.
>
2020-10-09 20:35:38 +02:00
> Please make sure the API you want to add has a full free access or at least a free tier before submitting.
>
2016-12-12 11:35:05 +01:00
> Thanks for understanding! :)
2016-12-12 05:28:20 +01:00
2017-04-01 14:11:07 +02:00
## Formatting
2016-12-12 05:28:20 +01:00
Current API entry format:
2018-10-16 06:49:51 +02:00
| API | Description | Auth | HTTPS | CORS |
| --- | --- | --- | --- | --- |
| 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)? * |
2016-12-12 05:28:20 +01:00
Example entry:
2016-12-12 05:28:20 +01:00
```
2018-10-16 06:49:51 +02:00
| [NASA](https://api.nasa.gov) | NASA data, including imagery | No | Yes | Yes |
2016-12-12 05:28:20 +01:00
```
2018-01-14 19:27:34 +01:00
\* Currently, the only accepted inputs for the `Auth` field are as follows:
* `OAuth` - _the API supports OAuth_
* `apiKey` - _the API uses a private key string/token for authentication - try and use the correct parameter_
2016-12-12 18:23:56 +01:00
* `X-Mashape-Key` - _the name of the header which may need to be sent_
* `No` - _the API requires no authentication to run_
* `User-Agent` - _the name of the header to be sent with requests to the API_
2016-12-12 05:28:20 +01:00
2018-01-14 19:27:34 +01:00
\* Currently, the only accepted inputs for the `CORS` field are as follows:
* `Yes` - _the API supports CORS_
* `No` - _the API does not support CORS_
* `Unknown` - _it is unknown if the API supports CORS_
2020-11-01 20:44:38 +01:00
_Without proper [CORS configuration](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) an API will only be usable server side._
After you've created a branch on your fork with your changes, it's time to [make a pull request][pr-link].
2017-01-18 22:06:15 +01:00
*Please follow the guidelines given below while making a Pull Request to the Public APIs*
2016-12-12 11:36:30 +01:00
## Pull Request Guidelines
2016-12-12 05:28:20 +01:00
* Continue to follow the alphabetical ordering that is in place per section.
* Each table column should be padded with one space on either side.
* The Description should not exceed 100 characters.
* 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`.
* Add one link per Pull Request.
* Make sure the PR title is in the format of `Add Api-name API` *for e.g.*: `Add Blockchain API`
* Use a short descriptive commit message. *for e.g.*: ❌`Update Readme.md` ✔ `Add Blockchain API to Cryptocurrency`
* Search previous Pull Requests or Issues before making a new one, as yours may be a duplicate.
* Don't mention the TLD(Top Level Domain) in the name of the API. *for e.g.*: ❌Gmail.com ✔Gmail
* Please make sure the API name does not end with `API`. *for e.g.*: ❌Gmail API ✔Gmail
* Please make sure the API has proper documentation.
* 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.
* Target your Pull Request to the `master` branch of the `public-apis`
2016-12-12 05:28:20 +01:00
2016-12-12 11:35:42 +01:00
Once youve submitted a pull request, the collaborators can review your proposed changes and decide whether or not to incorporate (pull in) your changes.
2016-12-12 05:28:20 +01:00
2017-04-01 14:11:07 +02:00
### Pull Request Pro Tips
2016-12-12 05:28:20 +01:00
* [Fork][fork-link] the repository and [clone][clone-link] it locally.
Connect your local repository to the original `upstream` repository by adding it as a [remote][remote-link].
Pull in changes from `upstream` often so that you stay up to date and so when you submit your pull request,
merge conflicts will be less likely. See more detailed instructions [here][syncing-link].
* Create a [branch][branch-link] for your edits.
* Contribute in the style of the project as outlined above. This makes it easier for the collaborators to merge
2016-12-12 05:28:20 +01:00
and for others to understand and maintain in the future.
2017-04-01 14:11:07 +02:00
### Open Pull Requests
2016-12-12 05:28:20 +01:00
Once youve opened a pull request, a discussion will start around your proposed changes.
2016-12-12 11:35:42 +01:00
2016-12-12 05:28:20 +01:00
Other contributors and users may chime in, but ultimately the decision is made by the collaborators.
2016-12-12 11:35:42 +01:00
2016-12-12 05:28:20 +01:00
During the discussion, you may be asked to make some changes to your pull request.
2016-12-12 11:35:42 +01:00
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.
2016-12-12 05:28:20 +01:00
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.
2017-08-05 22:59:59 +02:00
*Thanks for being a part of this project, and we look forward to hearing from you soon!*
2017-03-02 17:00:25 +01:00
2016-12-12 05:32:05 +01:00
[branch-link]: <http://guides.github.com/introduction/flow/>
2016-12-12 05:28:20 +01:00
[clone-link]: <https://help.github.com/articles/cloning-a-repository/>
[fork-link]: <http://guides.github.com/activities/forking/>
[oauth-link]: <https://en.wikipedia.org/wiki/OAuth>
[pr-link]: <https://help.github.com/articles/creating-a-pull-request/>
[remote-link]: <https://help.github.com/articles/configuring-a-remote-for-a-fork/>
2016-12-12 05:32:05 +01:00
[syncing-link]: <https://help.github.com/articles/syncing-a-fork>
[squash-link]: <https://github.com/todotxt/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit>
2016-12-12 05:32:05 +01:00