Outer resources

Get all outer resources

GET http://localhost:5000/api/outer-inner-resource-pn/outer-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": "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

Name
Type
Description

Authentication

string

Bearer access_token

Request Body

Name
Type
Description

name

string

Name of the outer resource

relatedInnerResourceIds

array

List of inner resource ids or null

Update an outer resource

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

Headers

Name
Type
Description

Authentication

string

Bearer access_token

Request Body

Name
Type
Description

Id

number

Id of the outer resource

name

string

Name of outer resource

relatedInnerResourceIds

array

List of inner resource ids or null

Delete an outer resource

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

Path Parameters

Name
Type
Description

id

string

Id of the outer resource to delete

Headers

Name
Type
Description

Authentication

string

Bearer access_token

Last updated

Was this helpful?