title: My POST body on composer-rest-server is incorrect
body: <p>I have a function called getAllFieldsInInstitute with a model function</p>
  
  <pre><code>@returns(Field[])
  transaction GetAllFieldsInInstitute{
    o String instituteId
  }
  </code></pre>
  
  <p>I have a similar function called getAllEventTypesInInstitute with a model function:</p>
  
  <pre><code>@returns(EventType[])
  transaction GetAllEventTypesInInstitute{
    o String instituteId
  }
  </code></pre>
  
  <p>The script.js has the same logic file for both functions.
  Here are the POST body's for both functions:</p>
  
  <p><a href="https://i.stack.imgur.com/45Bnl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/45Bnl.png" alt="This is the POST body for the second function"></a></p>
  
  <p>I have tested it for GetAllEventTypesInInstitute, and it works as expected.</p>
  
  <p><a href="https://i.stack.imgur.com/drpby.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/drpby.png" alt="This is the post body of the first function"></a></p>
  
  <p>It does not match for GetAllFieldsInInstitute, and does not work. What do I need to change?</p>
  
  <p>Edit: Function body is correct on bluemix: <a href="https://i.stack.imgur.com/1nE5T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1nE5T.png" alt="function body on composer bluemix"></a></p>
  
  <p>I have downloaded the .bna file from bluemix and deployed that on localhost.</p>