The problem was in the url construct, it should be -

http://vdijava:8080/AwgFacilityApi/facility/getByCode?codes=00&codes=01 
<http://vdijava:8080/AwgFacilityApi/facility/getByCode?codes=00,01>



On Friday, June 23, 2017 at 10:48:27 AM UTC-5, Richard Moore wrote:
>
> If I use the url in my browser -
> http://vdijava:8080/AwgFacilityApi/facility/getByCode?codes=00
>
> I get the following expected response -
>
> [{"code":"00","address":{"street":"5000 KANSAS AVE               
> ","city":"KANSAS CITY         ","stateAbbreviation":"KS","state":"KANSAS      
>         ","zipCode":"66106","zipPlusCode":"1135"},"name":"KANSAS CITY         
> ","oneLetterCode":"K","twoLetterCode":"KC","divisionNumberCode":"00","vmFlag":false,"corporateName":"ASSOCIATED
>  WHOLESALE GROCERS, INC. ","retailVmFlag":false,"militaryFlag":false}]
>
>
>
> But if I use -
>
> http://vdijava:8080/AwgFacilityApi/facility/getByCode?codes=00,01
>
>
> I get no response because the value received in the FacilityApiServiceImpl 
> get a List<String> codes of ["00,01"] instead of ["00", "01"].
>
>
> I have attached the yaml and the FacilityApiServiceImpl class.
>
>
> What am I doing wrong in the yaml?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to