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
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
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
Last updated
Was this helpful?