API introspection – List packages, resources and their interfaces

Found 8 resources


Resource class Awo\ContentVendor\Extension\BusinessDivision\Controller\Api\V1\BusinessDivisionsController of type CollectionController
Access controlled by ContentVendor\Core\Api\AccessRule\ApiAccessRule

Skeleton class for controlling a collection of rows from the 'BusinessDivisionModel' table.

Controller providing business division related collection actions like listing, filtering and searching.

Name Type Size Default Description Visible Mutable Nullable
Name VARCHAR 128 not set yes no no
Identifier VARCHAR 128 not set yes no no
Color VARCHAR 8 e2001a yes no no
BusinessDivisionContactPersons VIRTUAL not set yes no yes
CreatedAt TIMESTAMP not set yes no yes
UpdatedAt TIMESTAMP not set yes no yes
Uuid VARCHAR 36 not set yes no no

Interfaces

Found 2 interfaces in class Awo\ContentVendor\Extension\BusinessDivision\Controller\Api\V1\BusinessDivisionsController

Resource: BusinessDivisions, Method: find

Loads a model collection or throws an exception

Endpoint
GET /extension/api/v1/business-divisions/
GET /extension/api/v1/business-divisions
Host: /
Accept: application/json


HTTP/1.1 200 Ok
Date: Tue, 11 Feb 2020 11:45:51 +0000
Content-Length: 1600
Content-Type: application/json

{ "BusinessDivisionModelCollection": [ { "Name": "Landesverband", "Identifier": "LANDESVERBAND", "Color": "ff00ffff", "BusinessDivisionContactPersons": null, "CreatedAt": "2013-11-12 16:39:00", "UpdatedAt": "2013-11-12 16:39:00", "Uuid": "123e4567-e89b-12d3-a456-426655440000" } ], "CollectionConfiguration": { "CollectionModelName": "BusinessDivisionModelCollection", "IsPaginated": true, "MaxItemsPerPage": 100, "CurrentPage": 1, "FirstPage": 1, "LastPage": 5, "PreviousPage": 1, "NextPage": 2, "CurrentPageEndpoint": "Endpoint to get this page", "FirstPageEndpoint": "Endpoint to get the first page", "LastPageEndpoint": "Endpoint to get the last page", "PreviousPageEndpoint": "Endpoint to get the previous page", "NextPageEndpoint": "Endpoint to get the next page", "FirstIndex": 0, "LastIndex": 99, "TotalCount": 469 }, "Notifications": [ { "Type": "Propeller\\Lib\\ControllerNotification\\ControllerNotification", "Message": "SOME_NOTIFICATION_MESSAGE", "LocalizedMessage": "The localized notification message", "Level": 1, "LevelAsString": "notification", "Details": [ "Localized detail message #1", "Localized detail message #2", "Localized detail message #3" ], "Code": 17 } ] }
GET /extension/api/v1/business-divisions
                      
Host: /
Accept: application/json



HTTP/1.1 200 Ok
Date: Tue, 11 Feb 2020 11:45:51 +0000
Content-Length: 1600
Content-Type: application/json

{ "BusinessDivisionModelCollection": [ { "Name": "Landesverband", "Identifier": "LANDESVERBAND", "Color": "ff00ffff", "BusinessDivisionContactPersons": null, "CreatedAt": "2013-11-12 16:39:00", "UpdatedAt": "2013-11-12 16:39:00", "Uuid": "123e4567-e89b-12d3-a456-426655440000" } ], "CollectionConfiguration": { "CollectionModelName": "BusinessDivisionModelCollection", "IsPaginated": true, "MaxItemsPerPage": 100, "CurrentPage": 1, "FirstPage": 1, "LastPage": 5, "PreviousPage": 1, "NextPage": 2, "CurrentPageEndpoint": "Endpoint to get this page", "FirstPageEndpoint": "Endpoint to get the first page", "LastPageEndpoint": "Endpoint to get the last page", "PreviousPageEndpoint": "Endpoint to get the previous page", "NextPageEndpoint": "Endpoint to get the next page", "FirstIndex": 0, "LastIndex": 99, "TotalCount": 469 }, "Notifications": [ { "Type": "Propeller\\Lib\\ControllerNotification\\ControllerNotification", "Message": "SOME_NOTIFICATION_MESSAGE", "LocalizedMessage": "The localized notification message", "Level": 1, "LevelAsString": "notification", "Details": [ "Localized detail message #1", "Localized detail message #2", "Localized detail message #3" ], "Code": 17 } ] }
Response data
FilteredBusinessDivisionsControllerModel[] named BusinessDivisionModelCollection

Resource: BusinessDivisions, Method: page

Loads an paginated model collection or throws an exception

The number of items per page is defined in the class property $modelsPerPage

Endpoint
GET /extension/api/v1/business-divisions/page/{?page}/
GET /extension/api/v1/business-divisions/page/{?page}
Host: /
Accept: application/json


HTTP/1.1 200 Ok
Date: Tue, 11 Feb 2020 11:45:51 +0000
Content-Length: 1600
Content-Type: application/json

{ "BusinessDivisionModelCollection": [ { "Name": "Landesverband", "Identifier": "LANDESVERBAND", "Color": "ff00ffff", "BusinessDivisionContactPersons": null, "CreatedAt": "2013-11-12 16:39:00", "UpdatedAt": "2013-11-12 16:39:00", "Uuid": "123e4567-e89b-12d3-a456-426655440000" } ], "CollectionConfiguration": { "CollectionModelName": "BusinessDivisionModelCollection", "IsPaginated": true, "MaxItemsPerPage": 100, "CurrentPage": 1, "FirstPage": 1, "LastPage": 5, "PreviousPage": 1, "NextPage": 2, "CurrentPageEndpoint": "Endpoint to get this page", "FirstPageEndpoint": "Endpoint to get the first page", "LastPageEndpoint": "Endpoint to get the last page", "PreviousPageEndpoint": "Endpoint to get the previous page", "NextPageEndpoint": "Endpoint to get the next page", "FirstIndex": 0, "LastIndex": 99, "TotalCount": 469 }, "Notifications": [ { "Type": "Propeller\\Lib\\ControllerNotification\\ControllerNotification", "Message": "SOME_NOTIFICATION_MESSAGE", "LocalizedMessage": "The localized notification message", "Level": 1, "LevelAsString": "notification", "Details": [ "Localized detail message #1", "Localized detail message #2", "Localized detail message #3" ], "Code": 17 } ] }
GET /extension/api/v1/business-divisions/page/{?page}
                      
Host: /
Accept: application/json



HTTP/1.1 200 Ok
Date: Tue, 11 Feb 2020 11:45:51 +0000
Content-Length: 1600
Content-Type: application/json

{ "BusinessDivisionModelCollection": [ { "Name": "Landesverband", "Identifier": "LANDESVERBAND", "Color": "ff00ffff", "BusinessDivisionContactPersons": null, "CreatedAt": "2013-11-12 16:39:00", "UpdatedAt": "2013-11-12 16:39:00", "Uuid": "123e4567-e89b-12d3-a456-426655440000" } ], "CollectionConfiguration": { "CollectionModelName": "BusinessDivisionModelCollection", "IsPaginated": true, "MaxItemsPerPage": 100, "CurrentPage": 1, "FirstPage": 1, "LastPage": 5, "PreviousPage": 1, "NextPage": 2, "CurrentPageEndpoint": "Endpoint to get this page", "FirstPageEndpoint": "Endpoint to get the first page", "LastPageEndpoint": "Endpoint to get the last page", "PreviousPageEndpoint": "Endpoint to get the previous page", "NextPageEndpoint": "Endpoint to get the next page", "FirstIndex": 0, "LastIndex": 99, "TotalCount": 469 }, "Notifications": [ { "Type": "Propeller\\Lib\\ControllerNotification\\ControllerNotification", "Message": "SOME_NOTIFICATION_MESSAGE", "LocalizedMessage": "The localized notification message", "Level": 1, "LevelAsString": "notification", "Details": [ "Localized detail message #1", "Localized detail message #2", "Localized detail message #3" ], "Code": 17 } ] }
Response data
FilteredBusinessDivisionsControllerModel[] named BusinessDivisionModelCollection