[comixed-dev] Re: Auditing REST API calls

  • From: Frédéric Fouret <fouretfrederic@xxxxxxxxx>
  • To: comixed-dev@xxxxxxxxxxxxx
  • Date: Tue, 18 Aug 2020 21:09:30 +0200

It's interesting. I'm learning something :)
I'll see what it says in the code, but from what I've seen it's pretty
clear.

Le mar. 18 août 2020 à 15:46, Darryl L. Pierce <mcpierce@xxxxxxxxx> a
écrit :

I've created a new PR this morning for introducing AOJ annotations into
the project. The aspect wraps the call, logs it to the database with
details like the user, the remote IP, the URL, method and content of the
request.

It's currently only on the task-related controller APIs since those are
the only ones that use the new ApiResponse<?> type for wrapping their
response bodies. But as each REST API is refactored to use that new model,
we'll annotate it to also log its interactions.

Any thoughts or questions?

--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." - Gord
Downie

Other related posts: