Girl-Code-It / Opportunity-Calendar-Frontend

Opportunity Calendar is the one-stop place to refer important opportunites available in tech-space like newly posted jobs, internships, hackathons, tech-conferences, scholarhsips etc.
https://cutt.ly/opportunity-calendar
MIT License
49 stars 88 forks source link

Implement Pagination #235

Open Manvityagi opened 3 years ago

Manvityagi commented 3 years ago

Expected Behavior:

Users should be able to move from one page to another image

Current Behavior:

All the results are shown. There is no pagination.

Solution:

The GET API can take 2 query params - page and limit. Make use of them while calling APIs and retrieving results. Default value is page=1 and limit = 10.

API Documentation

ritik307 commented 3 years ago

@Manvityagi I would like to work on this Plz assign

Vishal1003 commented 3 years ago

@Manvityagi Is this issue still open? If yes then I would like to work on this!

vaishali614 commented 3 years ago

Issues are assigned on FCFS basis, so I'm assigning this issue to @ritik307 @Vishal1003 please find some other issue to work upon.

Manvityagi commented 3 years ago

@Vishal1003 It has been assigned to you. I think @ritik307 is not available as of now.

akshitakanojia commented 3 years ago

@Manvityagi if this issue becomes available in future, I would like to work on it.

vaishali614 commented 3 years ago

@Vishal1003 Please respond if you're working on this issue, otherwise I'll have to unassign you from this issue.

Vishal1003 commented 3 years ago

@vaishali614 I'm really sorry. I won't be able to work on this issue as of now.

Manvityagi commented 3 years ago

@Manvityagi if this issue becomes available in future, I would like to work on it.

Awesome @akshitakanojia. I have assigned to you, Feel free to comment here if you face any difficulties in implementation.

akshitakanojia commented 3 years ago

@Manvityagi is it possible to get total number of pages as well in the api response, as it will be required to show the page numbers. Otherwise I can show only prev current next.

Manvityagi commented 3 years ago

@Manvityagi is it possible to get total number of pages as well in the api response, as it will be required to show the page numbers. Otherwise I can show only prev current next.

Hey, yeah. We can do that. Would you mind creating that issue in backend?

akshitakanojia commented 3 years ago

okay I'll create.