Update 'README.md'
This commit is contained in:
42
README.md
42
README.md
@@ -17,8 +17,16 @@
|
|||||||
<details>
|
<details>
|
||||||
<summary>Table of Contents</summary>
|
<summary>Table of Contents</summary>
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href="#usage">Usage</a></li>
|
<li>
|
||||||
|
<a href="#usage">Usage</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#mods">Mods</a></li>
|
||||||
|
<li><a href="#revisions">Revisions</a></li>
|
||||||
|
<li><a href="#executables">Executables</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li><a href="#contributing">Contributing</a></li>
|
<li><a href="#contributing">Contributing</a></li>
|
||||||
|
<li><a href="#tests">Tests</a></li>
|
||||||
<li><a href="#contact">Contact</a></li>
|
<li><a href="#contact">Contact</a></li>
|
||||||
<li><a href="#license">License</a></li>
|
<li><a href="#license">License</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
@@ -32,49 +40,46 @@ _An automatically generated and interactive API documentation with (live) respon
|
|||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
**Mods**
|
##### Mods
|
||||||
|
|
||||||
/api/v1/mods: Get all mods
|
**/api/v1/mods**: Get all mods
|
||||||
- Include: `revisions` | `revisions.executable`
|
- Include: `revisions` | `revisions.executable`
|
||||||
- Sort: `name` | `projectUrl`
|
- Sort: `name` | `projectUrl`
|
||||||
- Example: `/api/v1/mods?include=revisions.executable&sort[projectUrl]`
|
- Example: `/api/v1/mods?include=revisions.executable&sort[projectUrl]`
|
||||||
|
|
||||||
/api/v1/mods/{id}: Get mod by id
|
**/api/v1/mods/{id}**: Get mod by id
|
||||||
- Include: `revisions` | `revisions.executable`
|
- Include: `revisions` | `revisions.executable`
|
||||||
- Sort: `name` | `projectUrl`
|
- Sort: `name` | `projectUrl`
|
||||||
- Example: `/api/v1/mods/1337?include=revisions.executable&sort[projectUrl]`
|
- Example: `/api/v1/mods/1337?include=revisions.executable&sort[projectUrl]`
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
**Revisions**
|
##### Revisions
|
||||||
|
|
||||||
/api/v1/revisions: Get all revisions
|
**/api/v1/revisions**: Get all revisions
|
||||||
- Include: `executable` | `mod` | `executable,mod`
|
- Include: `executable` | `mod` | `executable,mod`
|
||||||
- Sort: `version`
|
- Sort: `version`
|
||||||
- Example: `/api/v1/revisions?include=executable,mod&sort[version]`
|
- Example: `/api/v1/revisions?include=executable,mod&sort[version]`
|
||||||
|
|
||||||
/api/v1/revisions/{id}: Get revision by id
|
**/api/v1/revisions/{id}**: Get revision by id
|
||||||
- Include: `executable` | `mod` | `executable,mod`
|
- Include: `executable` | `mod` | `executable,mod`
|
||||||
- Sort: `version`
|
- Sort: `version`
|
||||||
- Example: `/api/v1/revisions/1337?include=executable,mod&sort[version]`
|
- Example: `/api/v1/revisions/1337?include=executable,mod&sort[version]`
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
**Executables**
|
##### Executables
|
||||||
|
|
||||||
/api/v1/executables: Get all executables
|
**/api/v1/executables**: Get all executables
|
||||||
- Include: `revisions` | `revisions.mod`
|
- Include: `revisions` | `revisions.mod`
|
||||||
- Sort: `name` | `key`
|
- Sort: `name` | `key`
|
||||||
- Example: `/api/v1/executables?include=revisions.mod&sort[name]`
|
- Example: `/api/v1/executables?include=revisions.mod&sort[name]`
|
||||||
|
|
||||||
/api/v1/executables/{id}: Get executable by id
|
**/api/v1/executables/{id}**: Get executable by id
|
||||||
- Include: `revisions` | `revisions.mod`
|
- Include: `revisions` | `revisions.mod`
|
||||||
- Sort: `name` | `key`
|
- Sort: `name` | `key`
|
||||||
- Example: `/api/v1/executables/1337?include=revisions.mod&sort[name]`
|
- Example: `/api/v1/executables/1337?include=revisions.mod&sort[name]`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
@@ -97,11 +102,22 @@ php artisan json:import
|
|||||||
|
|
||||||
4. Serve the project via `php artisan serve` or [Laravel Homestead](https://fourplayers.atlassian.net/wiki/spaces/4NET/pages/1035206657/Homestead+Installation).
|
4. Serve the project via `php artisan serve` or [Laravel Homestead](https://fourplayers.atlassian.net/wiki/spaces/4NET/pages/1035206657/Homestead+Installation).
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
## Tests
|
||||||
|
|
||||||
|
Tests are available.\
|
||||||
|
A HTML coverage report is available in tests/Coverage.
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
|
|
||||||
Marlon Maschkiwitz - marlon.maschkiwitz@4players.io <br/>
|
Marlon Maschkiwitz - marlon.maschkiwitz@4players.io <br/>
|
||||||
Project Link - https://gitlab.4players.de/4np/apis/docker-minecraft-api
|
Project Link - https://gitlab.4players.de/4np/apis/docker-minecraft-api
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Distributed under the MIT License. See `LICENSE.txt` for more information.
|
Distributed under the MIT License. See `LICENSE.txt` for more information.
|
||||||
|
|||||||
Reference in New Issue
Block a user