Vue and HAL

I start a new project and I want to use HAL. I like Spring HATEOAS approach. How to implement this with Vue?

  1. Application before loading any of api endpoint loads a special link ( This url returns acceptable actions for current user
  2. Every component checks if it has permission by searching an action in bootstrap response