title: Retrofit optional and required fields
body: <p>When using Retrofit, I know you can use <code>@FieldMap Map&lt;String, String&gt; options</code> to specify optional queries.</p>
  
  <p>Say that I have a api call that had 2 required fields and 3 optional fields. </p>
  
  <p>How would I format these calls?</p>
  
  <p>Would it be something like </p>
  
  <pre><code>Call&lt;Response&gt; getStuff(@Query("user_id") String userId, @Query("password") String password, @FieldMap Map&lt;String, String&gt; options)
  </code></pre>
  
  <p>or would the entire thing be a single @FieldMap like:</p>
  
  <p><code>Call&lt;Response&gt; getStuff(@FieldMap Map&lt;String, String&gt; options)</code></p>
  
  <p>and with this option would you just fill in the required fields and then use <code>null</code> for the optionals?</p>