cancel
Showing results for 
Search instead for 
Did you mean: 

WS410 API _size parameter not always working

marccawood
Participant
0 Kudos

According to the documentation the /ws410/rest API should support a <collection>_size parameter to limit the number of records returned.

This works and returns 2 records:

http://localhost/ws410/rest/users?users_size=2

This does not work and returns all records (thousands):

http://localhost/ws410/rest/medias/?medias_size=2

Why does it not work for medias?

Accepted Solutions (1)

Accepted Solutions (1)

marccawood
Participant
0 Kudos

It seems the trailing slash / kills all parameters!

This works and returns 2 records:

http://localhost/ws410/rest/medias?medias_size=2

This does not work and returns all records (thousands):

http://localhost/ws410/rest/medias/?medias_size=2

Answers (1)

Answers (1)

former_member469962
Contributor
0 Kudos

Hello Marc,

I executed the query on my OOTB hybris 5.7 instance: http://localhost:9001/ws410/rest/medias?medias_size=2 and i found exactly same number of results returned as requested. Regards,
Shwetha