-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
283 additions
and
225 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 | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
composer.lock | ||
vendor | ||
.php_cs.cache | ||
tests/TestApplication/var | ||
tests/TestApplication/var | ||
.couscous |
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
template: | ||
url: https://github.com/Nek-/Template-Light | ||
|
||
github: | ||
user: SwagIndustries | ||
repo: Melodiia | ||
|
||
exclude: | ||
- vendor | ||
- %gitignore% | ||
cname: melodiia.swag.industries | ||
|
||
branch: gh-pages | ||
|
||
|
||
title: Melodiia Documentation | ||
subTitle: Take control of your API | ||
menu: | ||
items: | ||
home: | ||
text: Home page | ||
relativeUrl: index.html | ||
getting_started: | ||
text: Getting Started | ||
relativeUrl: docs/getting-started.html | ||
filters: | ||
text: Using filters | ||
relativeUrl: docs/filters.html | ||
config: | ||
text: Configuration Reference | ||
relativeUrl: docs/config-reference.html | ||
cruds: | ||
text: CRUD Reference | ||
relativeUrl: docs/crud-controllers.html |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Configuration Reference of Melodiia | ||
=================================== | ||
|
||
```yaml | ||
melodiia: | ||
apis: | ||
# Define as much APIs you want here. | ||
main: | ||
base_path: /api/v1 | ||
pagination: | ||
# Using this query attribute you can change the max per page | ||
max_per_page_attribute: max_per_page | ||
# Melodiia comes with some form types to help you build your application. You can enable them here. | ||
# This is the default configuration | ||
form_extensions: | ||
datetime: true | ||
``` |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
About CRUD Controllers | ||
====================== | ||
|
||
Here are all the controllers for your CRUD. | ||
|
||
| CRUD action | Service name | | ||
|-------------------|----------------------------------| | ||
| Create | melodiia.crud.controller.create | | ||
| Read (collection) | melodiia.crud.controller.get_all | | ||
| Read (item) | melodiia.crud.controller.get | | ||
| Update | melodiia.crud.controller.update | | ||
| Delete | melodiia.crud.controller.delete | | ||
|
||
CRUD Controllers have options, here are a list of them and their availability by controller: | ||
|
||
| Option name | Create | Read | Update | Delete | | ||
|-----------------------------------------|--------|------|--------|--------| | ||
| melodiia_model | x | x | x | x | | ||
| melodiia_form | x | | x | | | ||
| melodiia_clear_missing | x | | x | | | ||
| melodiia_serialization_group | | x | | | | ||
| melodiia_security_check | x | x | x | x | | ||
| melodiia_max_per_page | | x | | | | ||
| melodiia_max_per_page_allowed | | x | | | | ||
| melodiia_allow_user_define_max_per_page | | x | | | | ||
|
||
Example of route using options: | ||
|
||
```yaml | ||
acme_article_get_collection: | ||
path: /api/v1/articles | ||
controller: 'melodiia.crud.controller.get_all' | ||
methods: 'GET' | ||
defaults: | ||
melodiia_model: App\Entity\Article | ||
melodiia_serialization_group: "list-article" | ||
melodiia_max_per_page: 25 | ||
``` |
Oops, something went wrong.