module API.SparInternal where

import Testlib.Prelude

getAllIdPs :: (HasCallStack, MakesValue domain) => domain -> String -> App Response
getAllIdPs :: forall domain.
(HasCallStack, MakesValue domain) =>
domain -> String -> App Response
getAllIdPs domain
domain String
tid = do
  Request
req <- domain -> Service -> Versioned -> String -> App Request
forall user.
(HasCallStack, MakesValue user) =>
user -> Service -> Versioned -> String -> App Request
baseRequest domain
domain Service
Spar Versioned
Unversioned (String -> App Request) -> String -> App Request
forall a b. (a -> b) -> a -> b
$ [String] -> String
joinHttpPath [String
"i", String
"identity-providers", String
tid]
  String -> Request -> App Response
submit String
"GET" Request
req