Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SearchAPI results mode = SearchAPI {
- searchEp :: mode :- (Summary "Search endpoint" :> (ReqBody '[JSON] SearchQuery :> (QueryParam "offset" Offset :> (QueryParam "limit" Limit :> (QueryParam "order" OrderBy :> Post '[JSON] results)))))
- data SearchType
- data SearchQuery = SearchQuery {
- query :: !RawQuery
- expected :: !SearchType
- newtype SearchResult = SearchResult {}
- data SearchResultTypes
- = SearchResultDoc {
- docs :: ![Row]
- | SearchResultContact {
- contacts :: ![Row]
- | SearchNoResult { }
- = SearchResultDoc {
Routes types
SearchAPI | |
|
Instances
Generic (SearchAPI results mode) # | |
type Rep (SearchAPI results mode) # | |
Defined in Gargantext.API.Routes.Named.Search type Rep (SearchAPI results mode) = D1 ('MetaData "SearchAPI" "Gargantext.API.Routes.Named.Search" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "SearchAPI" 'PrefixI 'True) (S1 ('MetaSel ('Just "searchEp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (mode :- (Summary "Search endpoint" :> (ReqBody '[JSON] SearchQuery :> (QueryParam "offset" Offset :> (QueryParam "limit" Limit :> (QueryParam "order" OrderBy :> Post '[JSON] results))))))))) |
API types (appears in the routes)
data SearchType #
Instances
data SearchQuery #
SearchQuery | |
|
Instances
newtype SearchResult #
Instances
data SearchResultTypes #
SearchResultDoc | |
| |
SearchResultContact | |
| |
SearchNoResult | |
Instances
Arbitrary SearchResultTypes # | |
Defined in Gargantext.API.Routes.Named.Search | |
FromJSON SearchResultTypes # | |
Defined in Gargantext.API.Routes.Named.Search parseJSON :: Value -> Parser SearchResultTypes # parseJSONList :: Value -> Parser [SearchResultTypes] # | |
ToJSON SearchResultTypes # | |
Defined in Gargantext.API.Routes.Named.Search toJSON :: SearchResultTypes -> Value # toEncoding :: SearchResultTypes -> Encoding # toJSONList :: [SearchResultTypes] -> Value # toEncodingList :: [SearchResultTypes] -> Encoding # | |
Generic SearchResultTypes # | |
Defined in Gargantext.API.Routes.Named.Search type Rep SearchResultTypes :: Type -> Type # from :: SearchResultTypes -> Rep SearchResultTypes x # to :: Rep SearchResultTypes x -> SearchResultTypes # | |
ToSchema SearchResultTypes # | |
type Rep SearchResultTypes # | |
Defined in Gargantext.API.Routes.Named.Search |