title: Autodeploy API error in WSO2 ESB
body: <p>I'm trying to deploy an API in WSO2 ESB automatically. I put .xml file with de API and its resources definition in {ESB_HOME}/repository/deployment/server/synapse-configs/default/api/ and the API Factory from ESB deploy it.</p>
  
  <p>But I get this error:</p>
  
  <pre><code>[2015-04-29 11:19:18,013] ERROR - APIFactory An API must contain at least one resource definition [2015-04-29 11:19:18,017] ERROR - APIDeployer API deployment from the file : /home/sergio/Escritorio/wso2esb-4.8.1/repository/deployment/server/synapse-configs/default/api/prueba.xml : Failed. org.apache.synapse.SynapseException: An API must contain at least one resource definition
  </code></pre>
  
  <p>The xml definition is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;api name="apps" context="/services/services/app"&gt;&lt;resource methods="GET" uri-template="/get/{codigoApp}"&gt;&lt;inSequence&gt;&lt;send&gt;&lt;endpoint&gt;&lt;http method="get" uri-template="http://localhost:8080/services/services/app"/&gt;&lt;/endpoint&gt;&lt;/send&gt;&lt;/inSequence&gt;&lt;/resource&gt;&lt;resource methods="GET" uri-emplate="/getAll"&gt;&lt;inSequence&gt;&lt;send&gt;&lt;endpoint&gt;&lt;http method="get" uri-template="http://localhost:8080/"/&gt;&lt;/endpoint&gt;&lt;/send&gt;&lt;/inSequence&gt;    &lt;/resource&gt;&lt;/api&gt;
  </code></pre>
  
  <p>And I can deploy this api definition in managment panel in WSO2 ESB.</p>
  
  <p>Any idea?</p>
  
  <p>Thanks,
  Sergio.</p>