Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Frontend

A list of awesome AngularJs services, directives, utilities and resources.

How to count watchers

They slow down the page, so a goal is to reduce their number.

Code Block
angular.element(document.body).scope().$root.$$watchersCount

Backend

manual API-Tests

For manual API tests that need more functionality than swagger offeres (e.g. using unallowed methods or omitting required fields), httpie is a nice tool.

...

Code Block
http --json --session /tmp/sess.tmp GET localhost:8000/api/auth/status/

...


In the response, you will receive the csrftoken as cookie. Append this to all following requests, it is valid for all following requests.

Code Block
http --json --session /tmp/sess.tmp POST localhost:8000/api/auth/logout/ X-CSRFToken:pL02uEoGGysnujLCThOtMcjnrj8WHeLO

 

 

...