wso2 / carbon-device-mgt

Apache License 2.0
53 stars 113 forks source link

Updated the last-known api to be able to return a number of records. #1193

Closed lashanfaliq95 closed 6 years ago

lashanfaliq95 commented 6 years ago

Purpose

To be able to get a number of recent records so that a chart can be updated based on those records/

Goals

The new last-known API will return 1 record if no limit is passed or it will return the number of records we pass as the limit.

Approach

Last known API was updated so that it will be backward compatible , the limit parameter is optional so if a limit parameter is not passed it will act as i was before. But if a limit parameter is passed then it will return that limit of records.

User stories

N/A

Release note

N/A

Documentation

N/A

Training

N/A

Certification

N/A

Marketing

N/A

Automation tests

Security checks

Samples

N/A

Related PRs

N/A

Migrations (if applicable)

N/A

Test environment

N/A

Learning

N/A