Iserver 2021 Administrator Guide Repository Api 2
Iserver 2021 Administrator Guide Repository Api 2
Administrator Guide
API v5
iServer 2021 Administrator Guide – API v5
Product: iServer
If you have any queries, you can contact the Orbus Software by email:
[email protected]
2
iServer 2021 Administrator Guide – API v5
Contents
1. iServer Repository API ..................................................................................................................................................... 5
3
iServer 2021 Administrator Guide – API v5
3. Metamodel API..................................................................................................................................................................... 31
4
iServer 2021 Administrator Guide – API v5
Note: Users of the API need an iServer User License. Please contact your system
administrator for more information.
Once the iServer Repository API is deployed to your environment, you can access online
Swagger API interface using the following URL:
The Swagger online API documentation is available at the following URL by default:
For more information how to set up the iServer API to use Azure AD authentication, see
the OAuth2 Integration with iServer API document.
You need a valid iServer user account with permission to use the Repository API (a
profile feature permission)
Note: All content changed or created via the API will be done so under the
authenticated user’s account. Content retrieval will also be based on the
authenticated user’s permissions.
5
iServer 2021 Administrator Guide – API v5
$filter yes Query Filter the items returned by specifying the object,
document, or folder type name using the
following syntax:
Attributes($select={attribute name})
• Get a list of ‘Actor’ type objects, returning the ‘Owner’ custom attribute:
https://bigbank.orbuscloud.com/api/item?$filter=Type%20eq%20'actor
'&$expand=Attributes(%24select%3DOwner)
• Get all ‘Process’ type objects with the Name equal to Process Name:
https://bigbank.orbuscloud.com/api/item?$filter=Name%20eq%Process
Name'%20and%20Type%20eq%20'Process'
6
iServer 2021 Administrator Guide – API v5
When using any OData parameters with attribute name values, please see the Request
Encoding section for more details.
7
iServer 2021 Administrator Guide – API v5
RelatedItems,Relationship($expand=Attributes)
Example GET Request: Get an item by specifying its ID and return all custom attributes:
https://bigbank.orbuscloud.com/api/item/9b9f968c-d063-477f-87b5-
03339ff24e6a?$expand=Attributes
8
iServer 2021 Administrator Guide – API v5
Example GET Request: Get a list of relationships of type ‘EXT: Work Package Contributes to
Goal’, and return all custom attributes:
https://bigbank.orbuscloud.com/api/relationship?$filter=Type%20eq%
20'EXT%3A%20Work%20Package%20contributes%20to%20Goal'&$expand=Attr
ibutes
9
iServer 2021 Administrator Guide – API v5
$expand no Query Insert the word ‘Attributes’ to return all attributes for
the relationship, or filter to return a specific attribute
using the following: Attributes($select={attribute
name}).
Example GET Request: Return a specific relationship by its iServer ID and return all custom
attributes:
https://bigbank.orbuscloud.com/api/relationship/4cded933-08a2-
4202-b69f-6ce6d3487e4a?$expand=Attributes
10
iServer 2021 Administrator Guide – API v5
Example GET Request: Return the related items of a source object, specifying its iServer ID,
and filtering related items by the ‘Work Package constitutes Work Package’ relationship
type. All custom attributes of related items are requested:
https://bigbank.orbuscloud.com/api/item/bbbe2223-6a24-409c-8452-
f4a2106382be/relateditems?relationshipType=TOGAF%3A%20Work%20Packa
ge%20constitutes%20Work%20Package&$expand=Attributes
11
iServer 2021 Administrator Guide – API v5
Example GET Request: Return all the attributes of an ‘Actor’ object type by specifying its
iServer ID:
https://bigbank.orbuscloud.com/api/item/6ae42ff2-68bd-4cee-b47b-
0759e4ea59c0/attributevalues
Example GET Request: Return all attributes for a relationship by specifying the relationships
iServer ID:
https://bigbank.orbuscloud.com/api/relationship/00380dbb-ab1c-
4321-b599-92a88c608da0/attributes
12
iServer 2021 Administrator Guide – API v5
Example GET Request: Return all the relationships between two repository items by
specifying the iServer ID’s of each item (source and target items of the relationship):
https://bigbank.orbuscloud.com/api/relationship/298b2b68-a4b8-
493c-962c-a4da2059376e/94629db8-ee30-48e4-901e-153bdddfb299
13
iServer 2021 Administrator Guide – API v5
Attributes($select=[attribute name])
Example GET Request: Return a list of all libraries in the repository including their assigned
attributes:
https://bigbank.orbuscloud.com/api/libraries?$expand=Attributes
Example GET Request: Return all documents and sub-folders of a folder based on its ID:
https://bigbank.orbuscloud.com/api/folder/298b2b68-a4b8-493c-962c-
a4da2059376e/content
14
iServer 2021 Administrator Guide – API v5
Example GET Request: Return a .png file for a page of a Visio document stored under
specified library:
https://bigbank.orbuscloud.com/api/document/visiopage?documentName
=Business%20Architecture&library=System%20Repository&pageNumber=2
Example GET Request: Return the list of all objects and relationships that are used in a Visio
diagram by specifying the document’s ID in iServer:
https://bigbank.orbuscloud.com/api/document/visiocontent?diagramId
=94629db8-ee30-48e4-901e-153bdddfb299
15
iServer 2021 Administrator Guide – API v5
Example GET Request: Return a list of Visio diagrams that an object is used in, by specifying
object’s ID in iServer:
https://bigbank.orbuscloud.com/api/item/94629db8-ee30-48e4-901e-
153bdddfb299/whereused
https://bigbank.orbuscloud.com/api/user
16
iServer 2021 Administrator Guide – API v5
Note: If ‘Item Approval’ is enabled in iServer, all objects created via the API using
POST will be left in a draft, checked-out state in the repository.
Repository items with mandatory attributes are not currently supported by the API
POST methods.
Item yes Body Specify the Name, Type, and Library of the new
item using the following syntax:
Note: Objects and Folders can only be created in Libraries, not in folders or sub-
folders.
17
iServer 2021 Administrator Guide – API v5
Example POST Request: Create a new relationship between source and target objects or
documents by specifying their iServer ID’s. The relationship type to be used is ‘EXT: Work
Package contributes to Goal’:
https://bigbank.orbuscloud.com/api/item/bbbe2223-6a24-409c-8452-
f4a2106382be/relateditems/e634c7a8-8eef-453e-8422-
091d01fc1e1c?relationshipTypeName=EXT%3A%20Work%20Package%20contri
butes%20to%20Goal
18
iServer 2021 Administrator Guide – API v5
https://bigbank.orbuscloud.com/api/views/listview
19
iServer 2021 Administrator Guide – API v5
https://bigbank.orbuscloud.com/api/views/hierarchyview
20
iServer 2021 Administrator Guide – API v5
library yes Body Specify the Name and Folder Type of the
new library.
“Permissions”: [
"ProfileName": "string",
"HasRead": true,
"HasModify": true,
"HasDelete": true,
"HasModifyContents": true,
"HasModifyRelationships": true
21
iServer 2021 Administrator Guide – API v5
https://bigbank.orbuscloud.com/api/library?Name=Business%20Archite
cture &FolderType=library
22
iServer 2021 Administrator Guide – API v5
Note: If ‘Item Approval’ is enabled in iServer, all objects edited via the API using PUT
will be left in a draft, checked-out state in the repository. Repository items with
mandatory attributes are not currently supported by the API PUT methods.
“iServerID”: “iServerID”,
Note: Remove sections in the body that are not being updated by the PUT request.
For example, ‘Name’ should not be included in the request body if it is not being
updated.
23
iServer 2021 Administrator Guide – API v5
“iServerId”: “iServerID”,
Note: Remove sections in the body that are not being updated by the PUT request.
For example, ‘Description’ should not be included in the request body if it is not
being updated.
24
iServer 2021 Administrator Guide – API v5
Example PUT Request: Identify an item by its ID, and update the ‘Accountable Executive’
attribute and provide an attribute value of ‘John Smith’:
https://bigbank.orbuscloud.com/api/item/bbbe2223-6a24-409c-8452-
f4a2106382be/attributevalues?attributeName=PPM%3A%20Accountable%20
Executive%20&value=John%20Smith
25
iServer 2021 Administrator Guide – API v5
value yes Query Provide a new value for the attribute – the
value should align with the data type and
validation as configured in the metamodel
Example PUT Request: Identify a relationship by its ID and update the ‘Owner’ attribute with
a value ‘Business Development’:
https://bigbank.orbuscloud.com/api/relationship/4f258f3c-8b4f-
4d72-9a46-
0067e1a11cde/attributevalues?attributeName=Owner&value=Business%20
Development
26
iServer 2021 Administrator Guide – API v5
value yes Query Provide a new value for the property – the
value should align with the data type and
validation as configured in the metamodel
Example PUT Request: Populate the text description of an object to state ‘a business-
critical application’:
https://bigbank.orbuscloud.com/api/item/4f258f3c-8b4f-4d72-9a46-
0067e1a11cde?propertyName=Description&value=A%20business%20critica
l%20application
27
iServer 2021 Administrator Guide – API v5
value yes Provide a new value for the property – the value should
align with the data type and validation as configured in
the metamodel
Example PUT Request: Populate the text description of a relationship to state ‘application
support for critical capability:
https://bigbank.orbuscloud.com/api/relationship/4f258f3c-8b4f-
4d72-9a46-
0067e1a11cde/Description?value=Application%20support%20for%20criti
cal%20capability
Note: The propertyName endpoint only supports the Description system property.
Please use the PUT endpoint supporting body (1.5.2) for additional properties.
28
iServer 2021 Administrator Guide – API v5
Note: Items deleted via the API will not be purged from the repository.
https://bigbank.orbuscloud.com/api/item/94336f37-6c31-4bcb-b7a9-
cdec82545ed8
https://bigbank.orbuscloud.com/api/relationship/efea033f-1ce3-
4428-b04e-2ae371045093
29
iServer 2021 Administrator Guide – API v5
• Query pre-filtered repository content such as lists of applications with a high support
cost
• Drive reports and dashboards on your repository data with and API web data source
Note: Only list and hierarchy views are supported in API v2. Matrix views cannot be
retrieved.
collection yes Path Specify the name of the view collection. Ensure
special characters are encoded (see Request
Encoding)
view yes Path Specify the name of the List or Hierarchy view.
Ensure special characters are encoded (see
Request Encoding)
30
iServer 2021 Administrator Guide – API v5
3. Metamodel API
1.8 Introduction to the Metamodel API
The iServer Metamodel API supports retrieval of available object types, relationship types
and attribute assignment. This API lets you:
Example GET Request: Retrieve the attribute configuration for the ‘Actor’ object type:
https://bigbank.orbuscloud.com/api/metaModel/attributes/Actor/Obje
ct?dataTypes=List
31
iServer 2021 Administrator Guide – API v5
Note: To return a list of all object types in the metamodel, leave the folderTypeName
parameter blank.
Example GET Request: Retrieve a list of object types available in the ‘Training Area’ folder
type:
https://bigbank.orbuscloud.com/api/metaModel/objectType?folderType
Name=Training%20Area
Example POST Request: Create a new object type with the name Actor:
https://bigbank.orbuscloud.com/api/metaModel/objectType?Name=Actor
Example GET Request: Retrieve a list of names of all document types existing in iServer:
32
iServer 2021 Administrator Guide – API v5
https://bigbank.orbuscloud.com/api/metaModel/documenttypelist
33
iServer 2021 Administrator Guide – API v5
Note: Any-to-any relationship types are not supported in API v2 and will not be
returned in the response.
Example GET Request: Retrieve a list of relationship types available between the ‘Actor’ and
‘Location’ Object Types:
https://bigbank.orbuscloud.com/api/metaModel/relationshipTypes?sou
rceTypeName=Actor&sourceGeneralTypeName=Object&targetTypeName=Loca
tion&targetGeneralTypeName=Object
34
iServer 2021 Administrator Guide – API v5
Example POST Request: Create a new relationship type and specify its pair:
https://bigbank.orbuscloud.com/api/metaModel/relationshipTypes?Nam
e=RT1&SourceType=Object&TargetType=Location
https://bigbank.orbuscloud.com/api/metaModel/relationshipTypes?Id=
caca83a8-c372-496d-9000-b2d7e5338117&sourceType=Object&Name=RT2
35
iServer 2021 Administrator Guide – API v5
https://bigbank.orbuscloud.com/api/metaModel/attributeTypes?Name=
Details&DataType=Boolean
36
iServer 2021 Administrator Guide – API v5
https://bigbank.orbuscloud.com/api/metaModel/attributes?Name=
Details&GeneralType=Object
Note: Upon creating an attribute that is not related to the current attribute type,
error is returned.
37
iServer 2021 Administrator Guide – API v5
HAL responses are only supported as JSON. In order for the API to provide a HAL response a
Request header of value application/hal+json must be specified.
400 Bad Request URL does not match the API in the system, or
the operation failed for unknown reasons – invalid
headers
403 Forbidden The requested operation is not permitted for the user –
this error can be caused by access control failures, or
business rule, or data policy constraints
404 Not Found The requested resource does not exist – this can be
caused by access control constraints, or if the resource
does not exist.
406 Not The endpoint does not support the response format
Acceptable specified in the request Accept header
38
iServer 2021 Administrator Guide – API v5
The following table lists all encoding required for special characters in certain API requests
Character Encoded
Space _x0020_
39
iServer 2021 Administrator Guide – API v5
If you have a support account but have lost the password, you can reset it here:
http://support.orbussoftware.com/access/help
Any queries or support issues with the iServer e-Learning, please contact Good e-Learning
at: [email protected]
For any other queries, please contact your dedicated Orbus Account Manager.
• Videos—training and guidance on a variety of topics. You can view the instructional
videos here: https://www.orbussoftware.com/resources/videos/
• White Papers—a large number of useful articles on a variety of topics related to
Enterprise Architecture and Business Process Analysis:
https://www.orbussoftware.com/resources/
40