ucsb-cs156-m23 / proj-happycows-m23-10am-4

https://ucsb-cs156-m23.github.io/proj-happycows-m23-10am-4/
0 stars 1 forks source link

Backend API endpoint for paged profits #87

Closed yuanchenmeng closed 1 year ago

yuanchenmeng commented 1 year ago

Overview

In this PR, I added an additional API endpoint for paged profits. This API endpoint prepares for the pagination feature. API end point located at /api/profits/paged/commonsid has 3 parameters. One parameter is required: commonid. Default values for page number and page size are 0 and 7.

Sample API endpoint:

/api/profits/paged/commonsid?commonsId=1&page=0&size=7

Screenshots

Swagger

image

Tests

Backend Test coverage & Mutation 100%.

Linked Issues

Closes #65 Backend part of #6