packages feed

battleplace-api (empty) → 0.1.0.0

raw patch · 3 files changed

+90/−0 lines, 3 filesdep +basedep +battleplacedep +servant

Dependencies added: base, battleplace, servant, servant-client

Files

+ BattlePlace/Api.hs view
@@ -0,0 +1,45 @@+{-|+Module: BattlePlace.Api+Description: Definitions for latest version of BattlePlace API.+License: MIT+-}++{-# OPTIONS_GHC -Wno-missing-signatures #-}++module BattlePlace.Api+	( clientAuth+	, clientMatch+	, clientMatchStatus+	, clientSessionResult+	, serverMatch+	, serverSessionResult+	, baseUrl+	, module BattlePlace.Token.Types+	, module BattlePlace.WebApi+	, module BattlePlace.WebApi.Types+	) where++import Data.Proxy+import Servant.API((:<|>)(..))+import qualified Servant.Client as Servant++import BattlePlace.Token.Types+import BattlePlace.WebApi+import BattlePlace.WebApi.Types++api :: Servant.Client WebApi+api = Servant.client (Proxy :: Proxy WebApi)++(client :<|> server) = api++clientAuth :<|> (clientMatch :<|> clientMatchStatus) :<|> clientSessionResult = client++serverMatch :<|> serverSessionResult = server++baseUrl :: Servant.BaseUrl+baseUrl = Servant.BaseUrl+	{ Servant.baseUrlScheme = Servant.Https+	, Servant.baseUrlHost = "api.battleplace.io"+	, Servant.baseUrlPort = 443+	, Servant.baseUrlPath = "/"+	}
+ LICENSE view
@@ -0,0 +1,21 @@+The MIT License (MIT)++Copyright (c) 2017-2018 Alexander Bich (aka Quyse Lert)++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in+all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+THE SOFTWARE.
+ battleplace-api.cabal view
@@ -0,0 +1,24 @@+name:                battleplace-api+version:             0.1.0.0+synopsis:            Public API definitions of BattlePlace.io service+description:         Public API definitions of BattlePlace.io service+license:             MIT+license-file:        LICENSE+author:              Alexander Bich <quyse0@gmail.com>+maintainer:          Alexander Bich <quyse0@gmail.com>+copyright:           (c) 2017-2018 Alexander Bich+category:            Game+stability:           experimental+build-type:          Simple+cabal-version:       >=1.10++library+  exposed-modules:+    BattlePlace.Api+  other-modules:+  build-depends:+      base >= 4.5 && < 5+    , battleplace+    , servant+    , servant-client+  default-language:    Haskell2010