Skip to content

Resolucion del examen#9

Open
pablop94 wants to merge 1 commit intoCambalab:masterfrom
pablop94:master
Open

Resolucion del examen#9
pablop94 wants to merge 1 commit intoCambalab:masterfrom
pablop94:master

Conversation

@pablop94
Copy link
Copy Markdown

Pablo Pissi

Excercise 1 - Add filter by technologyId for GET /courses endpoint

For the issue #1 the resolution was to add the technologyId in the filterFields of the Course model.

Excercise 2 - create a GET /admin/billing/getInvoices

For the issue #2 the resolution was to call the getChargeableStudents method and then use those students to generate an invoice using the AFIP api. After that, the invoiceId is attached to the response payload.

Excercise 3 - Add Middleware for caching GET requests

For the issue #3 I've created a middleware function which handle the requests. For GET requests, it uses the cache when available and for POST and PUT it removes elements from the cache. There are some GET requests that must be excluded, there is a list for that in the cacheMiddleware file, where you can list the URLs excluded from caching.

Excercise 4 - create GET /stats/failuresByStates

For the issue #4 I make a list of all the notes that are failed, using all the evaluations. Then I mapped the notes to their respective students and with this information, reduced the lists of students (which may contains duplicates) grouping by the state and counting only the different students.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant