Permalink
Browse files

Fix syntax error bug on generating documentation

  • Loading branch information...
1 parent 8b17d81 commit 3f902ef78bf033e73a255f3745bed2b7727828aa @zaip zaip committed Oct 20, 2012
Showing with 14 additions and 94 deletions.
  1. +3 −3 setup.sh
  2. +2 −2 src/frapi/custom/AllFiles.php
  3. +4 −84 src/frapi/custom/Config/actions.xml
  4. +5 −5 src/frapi/custom/Config/configurations.xml
View
6 setup.sh 100644 → 100755
@@ -13,7 +13,7 @@ CURRENTDIR=`pwd`
# Giving permissions
## This is for the generated actions (By the administration interface)
-chmod 775 $CURRENTDIR/src/frapi/custom/Action
+chmod 777 $CURRENTDIR/src/frapi/custom/Action
-chmod 775 $CURRENTDIR/src/frapi/custom/Config
-chmod 664 $CURRENTDIR/src/frapi/custom/Config/*.xml
+chmod 777 $CURRENTDIR/src/frapi/custom/Config
+chmod 777 $CURRENTDIR/src/frapi/custom/Config/*.xml
@@ -10,6 +10,6 @@
defined('CUSTOM_LIBRARY') || define('CUSTOM_LIBRARY', CUSTOM_PATH. DIRECTORY_SEPARATOR . 'Library');
defined('CUSTOM_LIBRARY_FRAPI_PLUGINS') ||
- define('CUSTOM_LIBRARY_FRAPI_PLUGINS', CUSTOM_LIBRARY . DIRECTORY_SEPARATOR . 'Frapi' . DIRECTORY_SEPARATOR . 'Plugins');
-
+define('CUSTOM_LIBRARY_FRAPI_PLUGINS', CUSTOM_LIBRARY . DIRECTORY_SEPARATOR . 'Frapi' . DIRECTORY_SEPARATOR . 'Plugins');
+require_once CUSTOM_MODEL . DIRECTORY_SEPARATOR . 'Caso.php';
@@ -2,93 +2,13 @@
<frapi-config>
<actions>
<action>
- <name>Collection</name>
+ <name>Casos</name>
<enabled>1</enabled>
<public>1</public>
- <description>This is an example of a collection. A collection is a bucket of resources. In this case, you can only POST and DELETE this collection.&#13;
-&#13;
-POST: A post will add a new resource to a collection. You have to pass a &quot;name&quot; parameter.&#13;
-&#13;
-DELETE: Delete collection will remove the collection of resources from the system.&#13;
-&#13;
-Try it with &quot;curl -X POST http://api.frapi/collection -d '{&quot;name&quot;:&quot;new&quot;}' -H 'Content-Type: application/json'&#13;
-&#13;
-</description>
- <route>/collection</route>
- <hash>a0caa1c9f6c5ba636005b312918e7ce6acf70ccb</hash>
- <parameters>
- <parameter>
- <name>name</name>
- <required>0</required>
- </parameter>
- </parameters>
- </action>
- <action>
- <name>Resource</name>
- <enabled>1</enabled>
- <public>1</public>
- <description>This is the resource contained in a certain collection group. &#13;
-&#13;
-PUT: A put with the &quot;name&quot; parameter will update the name of the resource&#13;
-&#13;
-DELETE: Deletes the resource.&#13;
-&#13;
-GET: This retrieves the information relative to the resource contained in the collection</description>
- <route>/collection/:resource</route>
- <hash>3ecc1f98f5c2292d41150143083df87ea81dca08</hash>
- <parameters>
- <parameter>
- <name>name</name>
- <required>0</required>
- </parameter>
- </parameters>
- </action>
- <action>
- <name>Siblings</name>
- <enabled>1</enabled>
- <public>1</public>
- <description>This is a collection of sibling for a resource. This only accepts POST, DELETE, GET and HEAD. &#13;
-&#13;
-POST: A post will add a new sibling using the name parameter&#13;
-&#13;
-DELETE: This deletes the siblings connections, it removes all siblings in the collection&#13;
-&#13;
-GET: Retrieve a list of siblings and the relative information.&#13;
-&#13;
-HEAD: Fetch the meta information for the siblings.</description>
- <route>/collection/:resource/siblings</route>
- <hash>2f4d1cefc3bbb184dda9da882fac349558b8bb70</hash>
- <parameters>
- <parameter>
- <name>name</name>
- <required>0</required>
- </parameter>
- </parameters>
- </action>
- <action>
- <name>Sibling</name>
- <enabled>1</enabled>
- <public>1</public>
- <description>This is used to execute operations on a sibling resource. &#13;
-&#13;
-GET: Retrieve the information relative to a sibling&#13;
-&#13;
-DELETE: Remove a sibling for this resource&#13;
-&#13;
-HEAD: Retrieve the meta information relative to a sibling.&#13;
-&#13;
-</description>
- <route>/collection/:resource/siblings/:sibling</route>
- <hash>836d88aacf5906048737893dd4dc0469e353dc33</hash>
- </action>
- <action>
- <name>Introduction</name>
- <enabled>1</enabled>
- <public>1</public>
- <description></description>
- <route>/</route>
+ <description>Lista casos de ocorrências de UFOs</description>
+ <route>/ufoapi/v1/casos</route>
<parameters></parameters>
- <hash>29e39f311db4ca2ef7dacf8d8c493ef69aa29b61</hash>
+ <hash>47e79083814d47eaecaf071c1fbe2d0d9d678a0f</hash>
</action>
</actions>
</frapi-config>
@@ -11,15 +11,15 @@
</configuration>
<configuration>
<key>db_password</key>
- <value>password</value>
+ <value>2112</value>
</configuration>
<configuration>
<key>db_database</key>
- <value>example</value>
+ <value>ufo</value>
</configuration>
<configuration>
<key>api_url</key>
- <value>api.frapi</value>
+ <value>api.piaz.com.br</value>
</configuration>
<configuration>
<key>cache</key>
@@ -28,11 +28,11 @@
<configuration>
<key>use_cdata</key>
<hash>d36820838f92275c856b7cab1c5563976fb72c72</hash>
- <value>1</value>
+ <value>0</value>
</configuration>
<configuration>
<key>allow_cross_domain</key>
- <value>1</value>
+ <value>0</value>
<hash>e93a8dc4d1bb0f7d7dc37d21d6307f7dfdbbdae3</hash>
</configuration>
<configuration>

0 comments on commit 3f902ef

Please sign in to comment.