Inner resources
Get all inner resources
GET
http://localhost:5000/api/outer-inner-resource-pn/inner-resources
Query Parameters
Sort
string
PageIndex
integer
Offset
integer
IsSortDsc
boolean
PageSize
integer
Headers
Authentication
string
Bearer access_token
{
"model": {
"total": 2,
"outerResourceList": [{
"id": 2,
"name": "Inner resource 1",
"relatedInnerResourcesIds": null
},
{
"id": 3,
"name": "Inner resource 2",
"relatedInnerResourcesIds": null
}
],
"name": "Inner resources"
},
"success": true,
"message": "Success"
}
Create a new inner resource
POST
http://localhost:5000/api/outer-inner-resource-pn/inner-resources
Headers
Authentication
string
Bearer access_token
Request Body
name
string
Name of the inner resource
relatedouterResourceIds
array
List of inner resource ids or null
{
"success": true,
"message": "Inner resource created successfully"
}
Update an inner resource
PUT
http://localhost:5000/api/outer-inner-resource-pn/inner-resources
Headers
Authentication
string
Bearer access_token
Request Body
Id
number
Id of the inner resource
name
string
Name of inner resource
relatedOuterResourceIds
array
List of outer resource ids or null
{
"success": true,
"message": "Inner resource updated successfully"
}
Delete an inner resource
DELETE
http://localhost:5000/api/outer-inner-resource-pn/inner-resources
Path Parameters
id
string
Id of the inner resource to delete
Headers
Authentication
string
Bearer access_token
{
"success": true,
"message": "Inner resource deleted successfully"
}
Last updated
Was this helpful?