@startuml
title Get policies from fortigate (sequence)
actor client
participant FortigatePoliciesAPIView
participant FortigatePoliciesSerializer
participant GetFortigatePolicies
entity fortigate

client -> FortigatePoliciesAPIView: Give me fortigate rules 
FortigatePoliciesAPIView -> GetFortigatePolicies: Initialize operation
GetFortigatePolicies -> fortigate: API request GET: cmdb/firewall/policy/
fortigate -> GetFortigatePolicies: Response with policies
GetFortigatePolicies -> FortigatePoliciesAPIView: Return API response from fortiagate to API view
FortigatePoliciesAPIView -> FortigatePoliciesSerializer: Serialize API response from fortigate
FortigatePoliciesSerializer -> FortigatePoliciesAPIView: Serialized data
FortigatePoliciesAPIView -> client: Serialized fortigate rules


@enduml