Commit a18c8462 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[REST] API version.

parent c430654e
......@@ -189,7 +189,15 @@ makeDevApp env = do
type SwaggerAPI = SwaggerSchemaUI "swagger-ui" "swagger.json"
-- | API for serving main operational routes of @gargantext.org@
type GargAPI =
type GargAPI = "api" :> Summary "Version API" :> GargAPIVersion
-- | TODO :<|> Summary "Latest API" :> GargAPI'
type GargAPIVersion = "v1.0" :> Summary "API v1.0: " :> GargAPI'
type GargAPI' =
-- Roots endpoint
"user" :> Summary "First user endpoint"
......
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