Skip to content

Commit

Permalink
update code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Sep 24, 2017
1 parent c4ce7e4 commit 4e31766
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions doc/get_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,18 @@ contains several keys:

.. code-block:: yaml
routes:
"/todo": !include resources/routes/todo/collection.yaml
"/todo/:todo_id": !include resources/routes/todo/entity.yaml
"/todo": !include resources/routes/todo/collection.yaml
"/todo/:todo_id": !include resources/routes/todo/entity.yaml
* **schema**

Contains the available request and response schema in the JSON-Schema format:

.. code-block:: yaml
schema:
Todo: !include resources/schema/todo/entity.json
Todo-Collection: !include resources/schema/todo/collection.json
Message: !include resources/schema/message.json
Todo: !include resources/schema/todo/entity.json
Todo-Collection: !include resources/schema/todo/collection.json
Message: !include resources/schema/message.json
* **connection**

Expand All @@ -39,7 +37,10 @@ contains several keys:

.. code-block:: yaml
connection: !include resources/connections.yaml
Default-Connection:
class: Fusio\Adapter\Sql\Connection\SqlAdvanced
config:
url: "sqlite:///${dir.cache}/todo-app.db"
* **migration**

Expand All @@ -48,7 +49,8 @@ contains several keys:

.. code-block:: yaml
migration: !include resources/migrations.yaml
Default-Connection:
- resources/migration/v1_schema.php
Through the command ``php bin/fusio deploy`` you can deploy the API. It is now
possible to visit the API endpoint at: ``/todo``.
Expand Down

0 comments on commit 4e31766

Please sign in to comment.