npm inpm run start
Create api endpoint that returns and filters the list of of publicly available apis and satisfies the following requirements:
- the endpoint accepts
num_elements(number of items in response) andstart_elementparameters that are used for pagination- 0 <
num_elements<= 100, defaults to 100 start_element> 0, defaults to 0- in case parameters are bad, return descriptive error
- 0 <
- user needs to be authorized in order to access the endpoint
- use tokens generated from the
/auth/loginroute - users of role
Usercan see apis that don't have auth set - users of role
Admincan see all of the apis - list of all available apis can be found in the
ApiContoller
- use tokens generated from the
- response needs to contain the following properties:
countnum_elementsstart_elementitems
Approach the task as you would approach real life project, code base changes and refactors are allowed.