Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add internal endpoints of `cargohold`, `galley`, `legalhold` and `spar` to the Swagger docs for internal endpoints.
2 changes: 0 additions & 2 deletions libs/galley-types/galley-types.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ library
Galley.Types
Galley.Types.Bot
Galley.Types.Bot.Service
Galley.Types.Conversations.Intra
Galley.Types.Conversations.Members
Galley.Types.Conversations.One2One
Galley.Types.Conversations.Roles
Galley.Types.Teams
Galley.Types.Teams.Intra

other-modules: Paths_galley_types
hs-source-dirs: src
Expand Down
2 changes: 0 additions & 2 deletions libs/galley-types/test/unit/Test/Galley/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import Control.Lens
import Data.Set hiding (drop)
import qualified Data.Set as Set
import Galley.Types.Teams
import Galley.Types.Teams.Intra (GuardLegalholdPolicyConflicts)
import Imports
import Test.Galley.Roundtrip (testRoundTrip)
import qualified Test.QuickCheck as QC
Expand All @@ -49,7 +48,6 @@ tests =
assertBool "owner.self" ((rolePermissions r2 ^. self) `isSubsetOf` (rolePermissions r1 ^. self))
assertBool "owner.copy" ((rolePermissions r2 ^. copy) `isSubsetOf` (rolePermissions r1 ^. copy)),
testRoundTrip @FeatureFlags,
testRoundTrip @GuardLegalholdPolicyConflicts,
testGroup
"permissionsRole, rolePermissions"
[ testCase "'Role' maps to expected permissions" $ do
Expand Down
15 changes: 14 additions & 1 deletion libs/wire-api/src/Wire/API/Routes/Internal/Cargohold.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,21 @@

module Wire.API.Routes.Internal.Cargohold where

import Control.Lens
import Data.Swagger
import Imports
import Servant
import Servant.Swagger
import Wire.API.Routes.MultiVerb
import Wire.API.SwaggerServant

type InternalAPI =
"i" :> "status" :> MultiVerb 'GET '() '[RespondEmpty 200 "OK"] ()
SwaggerTag "cargohold"
:> "i"
:> "status"
:> MultiVerb 'GET '() '[RespondEmpty 200 "OK"] ()

swaggerDoc :: Swagger
swaggerDoc =
toSwagger (Proxy @InternalAPI)
& info . title .~ "Wire-Server internal cargohold API"
Loading