Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,408
Community Members
 
Community Events
176
Community Groups

Limit not working while fetching data using REST API

While fetching data usin REST calls from fisheye and crucile, the limit parameter is not working. Is there any alternative for it?

1 answer

1 vote

Hi Shruti,

Please note not every FishEye/Crucible REST API method supports pagination, the ones that do support have it explicitely mentioned in the documentation. 

Let me know what URL are you trying to hit so I can clarify if pagination is supported for this endpoint or if there is alternative paginated endpoint that could be used instead. 

Hi, I tried limiting data while fetching repositories. Here's the query,

http://localhost:8060/rest-service-fe/repositories-v1?limit=1

Inspite of applying limit=1, I'm getting all the list of repositories. I am facing same issue with other queries as well (Eg. users, revisionInfo etc).

note GET request to https://docs.atlassian.com/fisheye-crucible/latest/wadl/fisheye.html#rest-service-fe:repositories-v1 resource lists all the repositories, while GET request to similar https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories resource retrieves a page of repositories.  The latter use paginated API.

Similary use https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:users to retrieve page of users etc.

Hope that helps

Hi Piotr,

It worked. Thanks a lot! :)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events