Commit 93400b1a authored by Alexandre Delanoë's avatar Alexandre Delanoë

[API ToSchema FIX] Swagger documentation TODO.

parent 189813e6
Pipeline #511 failed with stage
...@@ -38,6 +38,7 @@ import Gargantext.Viz.Phylo.Main ...@@ -38,6 +38,7 @@ import Gargantext.Viz.Phylo.Main
import Gargantext.Viz.Phylo.Aggregates import Gargantext.Viz.Phylo.Aggregates
import Gargantext.Viz.Phylo.Example import Gargantext.Viz.Phylo.Example
import Gargantext.Viz.Phylo.Tools import Gargantext.Viz.Phylo.Tools
import Gargantext.API.Ngrams (TODO(..))
--import Gargantext.Viz.Phylo.View.ViewMaker --import Gargantext.Viz.Phylo.View.ViewMaker
import Gargantext.Viz.Phylo.LevelMaker import Gargantext.Viz.Phylo.LevelMaker
import Servant import Servant
...@@ -64,11 +65,7 @@ newtype SVG = SVG DB.ByteString ...@@ -64,11 +65,7 @@ newtype SVG = SVG DB.ByteString
instance ToSchema SVG instance ToSchema SVG
where where
declareNamedSchema = undefined {-genericDeclareNamedSchema declareNamedSchema _ = declareNamedSchema (Proxy :: Proxy TODO)
defaultSchemaOptions {fieldLabelModifier = \fieldLabel -> drop 3 fieldLabel}
-}
-- undefined
--genericDeclareNamedSchemaUnrestricted (swaggerOptions "")
instance Show SVG where instance Show SVG where
show (SVG a) = show a show (SVG a) = show a
...@@ -82,7 +79,6 @@ instance Show a => MimeRender PlainText a where ...@@ -82,7 +79,6 @@ instance Show a => MimeRender PlainText a where
instance MimeRender SVG SVG where instance MimeRender SVG SVG where
mimeRender _ (SVG s) = DBL.fromStrict s mimeRender _ (SVG s) = DBL.fromStrict s
------------------------------------------------------------------------ ------------------------------------------------------------------------
type GetPhylo = QueryParam "listId" ListId type GetPhylo = QueryParam "listId" ListId
:> QueryParam "level" Level :> QueryParam "level" Level
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment