backend
Preparing search index...
genres/genres.controller
GenresController
Class GenresController
Index
Constructors
constructor
Methods
create
find
All
find
One
get
Top
Genres
With
Popular
Books
remove
search
Constructors
constructor
new
GenresController
(
genresService
:
GenresService
)
:
GenresController
Parameters
genresService
:
GenresService
Returns
GenresController
Methods
create
create
(
createGenreDto
:
CreateGenreDto
)
:
Promise
<
{
id
:
string
;
name
:
string
}
>
Parameters
createGenreDto
:
CreateGenreDto
Returns
Promise
<
{
id
:
string
;
name
:
string
}
>
find
All
findAll
(
query
:
PaginationDto
)
:
Promise
<
{
id
:
string
;
name
:
string
}
[]
>
Parameters
query
:
PaginationDto
Returns
Promise
<
{
id
:
string
;
name
:
string
}
[]
>
find
One
findOne
(
id
:
string
)
:
Promise
<
{
id
:
string
;
name
:
string
}
>
Parameters
id
:
string
Returns
Promise
<
{
id
:
string
;
name
:
string
}
>
get
Top
Genres
With
Popular
Books
getTopGenresWithPopularBooks
()
:
Promise
<
{
_count
:
{
books
:
number
}
;
books
:
{
book
:
{
biggerCoverPic
:
string
;
id
:
string
;
smallerCoverPic
:
string
;
statistics
:
{
averageRating
:
number
;
ratingCount
:
number
}
|
null
;
title
:
string
;
}
;
}
[]
;
id
:
string
;
name
:
string
;
}
[]
,
>
Returns
Promise
<
{
_count
:
{
books
:
number
}
;
books
:
{
book
:
{
biggerCoverPic
:
string
;
id
:
string
;
smallerCoverPic
:
string
;
statistics
:
{
averageRating
:
number
;
ratingCount
:
number
}
|
null
;
title
:
string
;
}
;
}
[]
;
id
:
string
;
name
:
string
;
}
[]
,
>
remove
remove
(
id
:
string
)
:
Promise
<
{
id
:
string
;
name
:
string
}
>
Parameters
id
:
string
Returns
Promise
<
{
id
:
string
;
name
:
string
}
>
search
search
(
query
:
string
)
:
Promise
<
string
[]
>
Parameters
query
:
string
Returns
Promise
<
string
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
find
All
find
One
get
Top
Genres
With
Popular
Books
remove
search
backend
Loading...