We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fb6fe9 commit ab79c3fCopy full SHA for ab79c3f
drivers/place/staff_api.cr
@@ -109,6 +109,12 @@ class Place::StaffAPI < PlaceOS::Driver
109
}
110
end
111
112
+ def auth_authority
113
+ response = get("/auth/authority")
114
+ raise "unexpected response for /auth/authority: #{response.status_code}\n#{response.body}" unless response.success?
115
+ JSON.parse(response.body)
116
+ end
117
+
118
def get_system(id : String, complete : Bool = false)
119
response = get("/api/engine/v2/systems/#{id}?complete=#{complete}", headers: authentication)
120
raise "unexpected response for system id #{id}: #{response.status_code}\n#{response.body}" unless response.success?
0 commit comments