Make sure caching for users/{userId}/tasks works
Add in query string parameters to allow pagination
Format of query string now accepted:
/users/{userId}/tasks?count={count}&page={page}
note: failing to pass in the count or page values will return 1st 10
Other Changes:
fix caching in /users
To Test:
(1) in VSCode add the line "CACHE_TOGGLE": "On" to functions/local.settings.json
make sure this file also contains the variables ENV_DATABASE_CONNECTION_STRING, ENV_REDIS_KEY, ENV_REDIS_HOST, and ENV_REDIS_PORT (all available in key vault)
(2) under the "Run/Debug" tab in VSCode, run the functions
(3) go to Postman, c/p the endpoint for /users that VSCode will display on the terminal & enter integer values for {count} and {page}
Make sure caching for users/{userId}/tasks works Add in query string parameters to allow pagination
Format of query string now accepted:
/users/{userId}/tasks?count={count}&page={page}
note: failing to pass in the count or page values will return 1st 10
Other Changes: fix caching in /users
To Test:
(1) in VSCode add the line
"CACHE_TOGGLE": "On"
to functions/local.settings.json(2) under the "Run/Debug" tab in VSCode, run the functions
(3) go to Postman, c/p the endpoint for /users that VSCode will display on the terminal & enter integer values for {count} and {page}
(4) run a GET
(5) run another GET
(6) run a POST with a body like so:
(7) run (yet) another GET
(8) Change the CACHE_TOGGLE value in /functions/local.settings.json to "Off"
(9) run a GET
(10) run a POST with a body like in (6)
**TIMESHEET*** Fixing caching: 3 hours Pagination: 2 hours Fixing merge errors: 1 hr