A determination of rights, status, or other legal relations may be obtained by means of a pleading seeking that relief alone or as incident to or part of a petition, counterclaim, or other pleading seeking other relief, and, when a party seeks other relief, a court may grant declaratory relief where appropriate.
Okla. Stat. tit. 12, § 1652