Inner resources

Get all inner resources

GET http://localhost:5000/api/outer-inner-resource-pn/inner-resources

Query Parameters

Name
Type
Description

Sort

string

PageIndex

integer

Offset

integer

IsSortDsc

boolean

PageSize

integer

Headers

Name
Type
Description

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

Name
Type
Description

Authentication

string

Bearer access_token

Request Body

Name
Type
Description

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

Name
Type
Description

Authentication

string

Bearer access_token

Request Body

Name
Type
Description

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

Name
Type
Description

id

string

Id of the inner resource to delete

Headers

Name
Type
Description

Authentication

string

Bearer access_token

Last updated

Was this helpful?