Simple api that retrun text of license with current year and your copyright.
Current licenses:
- Apache License 2.0 (Apache-2.0)
- Artistic License 2.0 (Artistic-2.0)
- 2-clause BSD License (BSD-2-Clause)
- 3-clause BSD License (BSD-3-Clause)
- GNU General Public License version 3 (GPL-3.0)
- ISC License (ISC)
- GNU Lesser General Public License version 3 (LGPL-3.0)
- MIT License (MIT)
- Universal Permissive License (UPL)
- Do What The Fuck You Want To Public License (WTFPL)
git clone git@github.com:k33nice/licenser
cd licenser
go build
cp .env.sample .env
- change enviroment variables
make rollout
./licenser
Make get request with choosen license
-
Apache License 2.0 (Apache-2.0)
curl -s http://localhost:33654/apache-2
-
Artistic License 2.0 (Artistic-2.0)
curl -s http://localhost:33654/artistic-2
-
2-clause BSD License (BSD-2-Clause)
curl -s http://localhost:33654/bsd-2
-
3-clause BSD License (BSD-3-Clause)
curl -s http://localhost:33654/bsd-3
-
GNU General Public License version 3 (GPL-3.0)
curl -s http://localhost:33654/gpl-3
-
ISC License (ISC)
curl -s http://localhost:33654/isc
-
GNU Lesser General Public License version 3 (LGPL-3.0)
curl -s http://localhost:33654/lgpl-3
-
MIT License (MIT)
curl -s http://localhost:33654/mit
-
Universal Permissive License (UPL)
curl -s http://localhost:33654/upl
-
Do What The Fuck You Want To Public License (WTFPL)
curl -s http://localhost:33654/wtfpl
n
-- Name (James Bond)e
-- Email (james.bond@mi6.gov)y
-- Year(s) (2017, 2000 - 2017)p
-- Project (Casino Royale)
curl -s http://localhost:33654/mit
curl -sG http://localhost:33654/mit -d e=foo@bar.baz --data-urlencode "y=2000 - 2017"