typescript-api-platform
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Abstract
Api
Resource
constructor
axios
object
Factory
prefix
build
Params
build
Search
build
Url
count
delete
get
get
All
get
One
load
Page
load
Props
load
Searches
load
Sort
patch
post
pre
Process
Data
put
wrap
Hydra
Item
wrap
Promise
Abstract
Data
Abstract
Data
Resource
Abstract
Entity
Resource
Abstract
Get
Entity
Resource
Abstract
Resource
Default
Data
Resource
Id
Data
Message
Api
Search
Api
Sort
Axios
Response
Ext
Get
One
Options
Get
Options
Page
configure
Cancel
configure
Page
create
Props
Params
Type parameters
ResponseType
InputType
Hierarchy
AbstractResource
AbstractApiResource
Index
Constructors
constructor
Properties
axios
object
Factory
prefix
Methods
build
Params
build
Search
build
Url
count
delete
get
get
All
get
One
load
Page
load
Props
load
Searches
load
Sort
patch
post
pre
Process
Data
put
wrap
Hydra
Item
wrap
Promise
Constructors
constructor
new
Abstract
Api
Resource
(
axios
:
AxiosInstance
, ObjectConstructor
?:
undefined
|
object
)
:
AbstractApiResource
Parameters
axios:
AxiosInstance
Optional
ObjectConstructor:
undefined
|
object
Returns
AbstractApiResource
Properties
Protected
axios
axios
:
AxiosInstance
Protected
Optional
object
Factory
object
Factory
:
undefined
|
function
Abstract
prefix
prefix
:
string
Methods
Protected
build
Params
build
Params
(
options
?:
GetOptions
|
GetOneOptions
)
:
string
[]
Parameters
Optional
options:
GetOptions
|
GetOneOptions
Returns
string
[]
Protected
build
Search
build
Search
(
field
:
string
, query
:
string
|
number
|
boolean
, type
:
string
|
undefined
, isArray
?:
boolean
)
:
string
Parameters
field:
string
query:
string
|
number
|
boolean
type:
string
|
undefined
Default value
isArray:
boolean
= false
Returns
string
Protected
build
Url
build
Url
(
path
:
string
, options
?:
GetOptions
|
GetOneOptions
)
:
string
Parameters
path:
string
Optional
options:
GetOptions
|
GetOneOptions
Returns
string
count
count<GetResponseType>
(
options
?:
GetOptions
)
:
Promise
<
number
&
AxiosResponseExt
>
Type parameters
GetResponseType
Parameters
Optional
options:
GetOptions
Returns
Promise
<
number
&
AxiosResponseExt
>
delete
delete<DeleteResponseType>
(
id
:
number
|
string
, options
?:
GetOneOptions
)
:
Promise
<
ResponseType
&
AxiosResponseExt
>
Type parameters
DeleteResponseType
Parameters
id:
number
|
string
Optional
options:
GetOneOptions
Returns
Promise
<
ResponseType
&
AxiosResponseExt
>
get
get<GetResponseType>
(
options
?:
GetOptions
)
:
Promise
<
GetResponseType
[]
&
AxiosResponseExt
>
Type parameters
GetResponseType
Parameters
Optional
options:
GetOptions
Returns
Promise
<
GetResponseType
[]
&
AxiosResponseExt
>
get
All
get
All<GetResponseType>
(
options
?:
GetOptions
)
:
Promise
<
GetResponseType
[]
&
AxiosResponseExt
>
Type parameters
GetResponseType
Parameters
Optional
options:
GetOptions
Returns
Promise
<
GetResponseType
[]
&
AxiosResponseExt
>
get
One
get
One<GetResponseType>
(
id
:
number
|
string
, options
?:
GetOneOptions
)
:
Promise
<
GetResponseType
&
AxiosResponseExt
>
Type parameters
GetResponseType
Parameters
id:
number
|
string
Optional
options:
GetOneOptions
Returns
Promise
<
GetResponseType
&
AxiosResponseExt
>
Protected
load
Page
load
Page
(
params
:
string
[]
, options
:
GetOptions
)
:
void
Parameters
params:
string
[]
options:
GetOptions
Returns
void
Protected
load
Props
load
Props
(
params
:
string
[]
, options
:
GetOneOptions
)
:
void
Parameters
params:
string
[]
options:
GetOneOptions
Returns
void
Protected
load
Searches
load
Searches
(
params
:
string
[]
, options
:
GetOptions
)
:
void
Parameters
params:
string
[]
options:
GetOptions
Returns
void
Protected
load
Sort
load
Sort
(
params
:
string
[]
, options
:
GetOptions
)
:
void
Parameters
params:
string
[]
options:
GetOptions
Returns
void
patch
patch<PatchInputType, PatchResponseType>
(
id
:
number
|
string
, item
:
PatchInputType
, options
?:
GetOneOptions
)
:
Promise
<
PatchResponseType
&
AxiosResponseExt
>
Type parameters
PatchInputType
PatchResponseType
Parameters
id:
number
|
string
item:
PatchInputType
Optional
options:
GetOneOptions
Returns
Promise
<
PatchResponseType
&
AxiosResponseExt
>
post
post<PostInputType, PostResponseType>
(
item
:
PostInputType
, options
?:
GetOneOptions
)
:
Promise
<
PostResponseType
&
AxiosResponseExt
>
Type parameters
PostInputType
PostResponseType
Parameters
item:
PostInputType
Optional
options:
GetOneOptions
Returns
Promise
<
PostResponseType
&
AxiosResponseExt
>
Protected
pre
Process
Data
pre
Process
Data
(
item
:
any
)
:
any
Parameters
item:
any
Returns
any
put
put<PutInputType, PutResponseType>
(
id
:
number
|
string
, item
:
PutInputType
, options
?:
GetOneOptions
)
:
Promise
<
PutResponseType
&
AxiosResponseExt
>
Type parameters
PutInputType
PutResponseType
Parameters
id:
number
|
string
item:
PutInputType
Optional
options:
GetOneOptions
Returns
Promise
<
PutResponseType
&
AxiosResponseExt
>
Protected
wrap
Hydra
Item
wrap
Hydra
Item
(
data
:
any
)
:
any
&
object
Parameters
data:
any
Returns
any
&
object
Protected
wrap
Promise
wrap
Promise
(
axiosPromise
:
AxiosPromise
, objectFactory
?:
undefined
|
function
)
:
Promise
<
Object
>
Parameters
axiosPromise:
AxiosPromise
Optional
objectFactory:
undefined
|
function
Returns
Promise
<
Object
>
Generated using
TypeDoc