/api/<resource>
#
GETReturns a ArchitectResource
array which represents collection of your resources.
#
ParametersThis method does not require any parameters.
#
ResponseSuccessful response returns a HTTP 200 OK
status and the following body:
Type | Description |
---|---|
ArchitectResource | Resource collection |
#
POSTReturns a ArchitectResource
which represents your created resource.
#
ParametersThis method takes 1 parameter:
Parameter | Required | Type | Default value | Description |
---|---|---|---|---|
resourceData | true | Record<string, any> | Data representing the resource you want to create |
#
ResponseSuccessful response returns a HTTP 200 OK
status and the following body:
Type | Description |
---|---|
ArchitectResource | Created resource |
#
PUTReturns a ArchitectResource
which represents your updated resource.
#
ParametersThis method takes 2 parameters:
Parameter | Required | Type | Default value | Description |
---|---|---|---|---|
resourceId | true | string | Id representing id of your resource | |
resourceData | true | Record<string, any> | Data you want to update for the given resource |
#
ResponseSuccessful response returns a HTTP 200 OK
status and the following body:
Type | Description |
---|---|
ArchitectResource | Updated resource |
#
DELETEReturns a boolean
representing resource removal confirmation.
#
ParametersThis method takes 1 route parameter:
Parameter | Required | Type | Default value | Description |
---|---|---|---|---|
resourceId | true | string | Unique ID representing your resource |
#
ResponseSuccessful response returns a HTTP 200 OK
status and the following body:
Type | Description |
---|---|
boolean | Returns a boolean based on removal confirmation |