forked from kyleconroy/gitlicense
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the README and add a terrible homepage for the web
- Loading branch information
1 parent
bc44175
commit 7304d98
Showing
2 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,22 +1,33 @@ | |||
# GitLicense | # GitLicense | ||
|
|
||
REST API for what license a project is under | REST API for discovering the license for a github repository. | ||
|
|
||
## Algorithm | ## Usage | ||
|
|
||
The current algorithm is really simple. I look for a `LICENSE` or `LICENSE.*` file, and see if it matches any of the licenses I support. | curl -i http://gitlicense.herokuapp.com/:user/:repo | ||
|
|||
The return value will be a JSON object of the following form. | |||
|
|||
{ | |||
repo: ":user", | |||
user: ":repo", | |||
license: "MIT License" | |||
} | |||
|
|
||
### Supported Licenses | ### Supported Licenses | ||
|
|
||
* MIT license (MIT) | * MIT license (MIT) | ||
* ISC License (ISC) | * ISC License (ISC) | ||
* Apache License 2.0 (Apache-2.0) | * Apache License 2.0 (Apache-2.0) | ||
* GNU General Public License, version 2 (GPL-2.0) | |||
* GNU General Public License, version 3 (GPL-3.0) | * GNU General Public License, version 3 (GPL-3.0) | ||
* GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPL-3.0) | * GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPL-3.0) | ||
* BSD License | * BSD License | ||
* Modified BSD License | |||
* Artisitic License 2.0 | |||
* Mozilla Public License | |||
|
|
||
## TODO | ## TODO | ||
|
|
||
* Improve the license matching algorithm | * Improve the license matching algorithm | ||
* Support more licenses | |||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters