|
| 1 | + |
| 2 | + |
| 3 | +<p align=center> |
| 4 | + <a href="https://github.com/contributte/api-skeleton/actions"><img src="https://badgen.net/github/checks/contributte/api-skeleton/master"></a> |
| 5 | + <a href="https://coveralls.io/r/contributte/api-skeleton"><img src="https://badgen.net/coveralls/c/github/contributte/api-skeleton"></a> |
| 6 | + <a href="https://packagist.org/packages/contributte/api-skeleton"><img src="https://badgen.net/packagist/dm/contributte/api-skeleton"></a> |
| 7 | + <a href="https://packagist.org/packages/contributte/api-skeleton"><img src="https://badgen.net/packagist/v/contributte/api-skeleton"></a> |
| 8 | +</p> |
| 9 | +<p align=center> |
| 10 | + <a href="https://packagist.org/packages/contributte/api-skeleton"><img src="https://badgen.net/packagist/php/contributte/api-skeleton"></a> |
| 11 | + <a href="https://github.com/contributte/api-skeleton"><img src="https://badgen.net/github/license/contributte/api-skeleton"></a> |
| 12 | + <a href="https://bit.ly/ctteg"><img src="https://badgen.net/badge/support/gitter/cyan"></a> |
| 13 | + <a href="https://bit.ly/cttfo"><img src="https://badgen.net/badge/support/forum/yellow"></a> |
| 14 | + <a href="https://contributte.org/partners.html"><img src="https://badgen.net/badge/sponsor/donations/F96854"></a> |
| 15 | +</p> |
| 16 | + |
| 17 | +<p align=center> |
| 18 | +Website 🚀 <a href="https://contributte.org">contributte.org</a> | Contact 👨🏻💻 <a href="https://f3l1x.io">f3l1x.io</a> | Twitter 🐦 <a href="https://twitter.com/contributte">@contributte</a> |
| 19 | +</p> |
| 20 | + |
| 21 | +<p align=center> |
| 22 | + <img src="https://api.microlink.io?url=https%3A%2F%2Fexamples.contributte.org%2Fsentry-skeleton%2F&overlay.browser=light&screenshot=true&meta=false&embed=screenshot.url"></img> |
| 23 | +</p> |
| 24 | + |
| 25 | +----- |
| 26 | + |
| 27 | +## Goal |
| 28 | + |
| 29 | +Main goal is to provide example of native API to [Nette](https://nette.org). |
| 30 | + |
| 31 | +## Demo |
| 32 | + |
| 33 | +https://examples.contributte.org/api-skeleton/ |
| 34 | + |
| 35 | +## Installation |
| 36 | + |
| 37 | +You will need `PHP 8.1+` and [Composer](https://getcomposer.org/). |
| 38 | + |
| 39 | +Create project using composer. |
| 40 | + |
| 41 | +```bash |
| 42 | +composer create-project -s dev contributte/api-skeleton acme |
| 43 | +``` |
| 44 | + |
| 45 | +Now you have application installed. It's time to run it. |
| 46 | + |
| 47 | +## Startup |
| 48 | + |
| 49 | +The easiest way is to use php built-in web server. |
| 50 | + |
| 51 | +```bash |
| 52 | +# make dev |
| 53 | +php -S 0.0.0.0:8000 -t www |
| 54 | +``` |
| 55 | + |
| 56 | +Then visit [http://localhost:8000](http://localhost:8000) in your browser. |
| 57 | + |
| 58 | +**API endpoints** |
| 59 | +- http://localhost:8000/api/v1/ping |
| 60 | +- http://localhost:8000/api/v1/users |
| 61 | +- http://localhost:8000/api/_/apidoc |
| 62 | + |
| 63 | +## Development |
| 64 | + |
| 65 | +See [how to contribute](https://contributte.org/contributing.html) to this package. |
| 66 | + |
| 67 | +This package is currently maintaining by these authors. |
| 68 | + |
| 69 | +<a href="https://github.com/f3l1x"> |
| 70 | + <img width="80" height="80" src="https://avatars2.githubusercontent.com/u/538058?v=3&s=80"> |
| 71 | +</a> |
| 72 | + |
| 73 | +----- |
| 74 | + |
| 75 | +Consider to [support](https://contributte.org/partners.html) **contributte** development team. Also thank you for using this project. |
0 commit comments