Outer resources
Get all outer resources
GET
http://localhost:5000/api/outer-inner-resource-pn/outer-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": "Outer resource 1",
"relatedInnerResourcesIds": null
},
{
"id": 3,
"name": "Outer resource 2",
"relatedInnerResourcesIds": null
}
],
"name": "Outer resources"
},
"success": true,
"message": "Success"
}
Create a new outer resource
POST
http://localhost:5000/api/outer-inner-resource-pn/outer-resources
Headers
Authentication
string
Bearer access_token
Request Body
name
string
Name of the outer resource
relatedInnerResourceIds
array
List of inner resource ids or null
{
"success": true,
"message": "Outer resource created successfully"
}
Update an outer resource
PUT
http://localhost:5000/api/outer-inner-resource-pn/outer-resources
Headers
Authentication
string
Bearer access_token
Request Body
Id
number
Id of the outer resource
name
string
Name of outer resource
relatedInnerResourceIds
array
List of inner resource ids or null
{
"success": true,
"message": "Outer resource updated successfully"
}
Delete an outer resource
DELETE
http://localhost:5000/api/outer-inner-resource-pn/outer-resources
Path Parameters
id
string
Id of the outer resource to delete
Headers
Authentication
string
Bearer access_token
{
"success": true,
"message": "Outer resource deleted successfully"
}
Last updated
Was this helpful?