Skip to content

Commit ab3befc

Browse files
kanika2024enbraun
authored andcommitted
Api Doc Changes
1 parent 58edc37 commit ab3befc

15 files changed

+366
-111
lines changed

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/includes/_booking.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ Name | Description
8686
"resource_id": 1,
8787
"project_id" : 9,
8888
"start_time" : "2017-06-01T09:00",
89-
"end_time": "2017-06-11T17:00",
89+
"end_time": "2017-06-11T17:00",
90+
"udf_progress": 70,
9091
"effort": 100,
9192
"unit": 1
9293
}'
@@ -104,7 +105,7 @@ Name | Description
104105
**start_time** <br> <span class="required">`required`</span> | Represents start date and time for booking object. This field accepts value in ISO 8601 format for date-time i.e. yyyy-mm-ddThh:mm:ss. The value must be snapped in 15 minutes interval, which effectively means that minutes values should be one of(00/15/30/45) and seconds value should always be 0. (if given).
105106
**end_time** <br> <span class="required">`required`</span> | Represents end date and time for booking object. This field accepts value in ISO 8601 format for date-time i.e. yyyy-mm-ddThh:mm:ss. The value must be snapped in 15 minutes interval, which effectively means that minutes values should be one of(00/15/30/45) and seconds value should always be 0. (if given). `end_time` must always be ahead of `start_time` by at least 15 minutes as a booking of less than 15 minutes is not allowed.
106107
**role_id**<br><span class="mandatoryFlag">&#9873;</span> <span class="removableFlag mln-2">&#9873;</span> | ID of role object which needs to be performed for this booking. This could be ID of a role which targeted resource performs (i.e "Performing Role") or any other role (i.e. "Non-Performing-Role").
107-
**task_id**<br><span class="removableFlag mln-2">&#9873;</span> | ID of task object which needs to be done in this booking. This could only be ID of a task which is listed in targeted project.
108+
**task_id**<br><span class="mandatoryFlag">&#9873;</span> <span class="removableFlag mln-2">&#9873;</span> | ID of task object which needs to be done in this booking. This could only be ID of a task which is listed in targeted project.
108109
**effort** <br>`optional` | This defines how much effort is needed to complete the task. Effort value is a floating point number which could not be less than 0 and greater than 99999999.99. If effort value is not provided system will take default value 0.
109110
**unit**<br>`optional` | Integer number (1-5) representing unit in which effort is being defined. Unit value could be one of the following :<br><br><li>**1** for `Capacity %` : This is default unit for booking. This represents `effort` in percentage of capacity of intended resource for defined time range. </li> <li> **2** for `Total Booking Hours` : This defines `effort` value in fixed hours which doesn't change upon changes in booking.</li> <li> ~~**3** for `Hours Per day` : This could be used where a certain no of hours per day need to be spend for a booking. For example 4 hours per day (working day).~~</li> <li> **4** for `Full Time Equivalent` : Full time equivalent is calculated using FTE calendar defined in <a href="https://app.eresourcescheduler.cloud/#!/admin/calendars/settings" target="_blank" class="api-ref">Administrator calendar settings</a>. Capacity from FTE calendar for defined time in booking, is considered as 1 FTE.</li> <li> ~~**5** for `Time Per Day` : It is useful where `effort` needs to put in on a particular time of every working day i.e. 4:15 PM to 5:30 PM daily. Time portion of `start_time` argument is considered as per day start time, and Time portion of `end_time` argument is considered per day end time for this booking.~~ </li> <br>_**Note**: <span class="warning">Booking units **Hours per day** and **Time per day** are no longer supported. </span>_
110111
**progress** <br>`optional` | This defines percentage completion of the booking. Progress is a integer number which could not be less than 0 and greater than 100. If progress is not provided, system will take default value 0.
@@ -114,7 +115,7 @@ Name | Description
114115
**tags**<br><span class="removableFlag mln-2">&#9873;</span> | An optional array of strings which could be attached to this booking object as labels. This can be useful for the purpose of identification or other information.
115116
**timezone**<br>`optional` | One timezone can be defined for a booking.<br><br>_**Note**: <span class="warning">This field is only available when scheduling plus module is on</span>._
116117
**disable_parallel**<br><span class="mandatoryFlag">&#9873;</span> <span class="removableFlag mln-2">&#9873;</span> | Defines if the resource or project or both can or cannot have multiple bookings at a time. Disable Parallel could be one of the following:<br><br><li>**1** for `On selected resource` : This represents there will be no bookings parallel to this booking with the same resource. </li> <li> **2** for `On selected project` : This represents there will be no bookings parallel to this booking with the same project.</li> <li> **3** for `On selected resource or project` : This represents there will be no bookings parallel to this booking with the same resource or project.</li>
117-
**udf_\***<br><span class="mandatoryFlag">&#9873;</span> <span class="removableFlag mln-2">&#9873;</span> | A user with Administrator rights can add custom fields. These fields can be used to capture additional information in Bookings. Different types of bookings may have a different set of user-defined fields. The value for user defined field can be passed as shown in example request. In given example `udf_progress`</span> is a user defined field. <a href="#user-defined-fields" class="api-ref">Learn more</a><br><br>_**Note**: User with Administrator rights can make fields marked with <span class="mandatoryFlag iconInline">&#9873;</span> mandatory and remove fields marked with <span class="removableFlag iconInline">&#9873;</span>, from <a href ="#booking-profile" class="api-ref">booking profile</a> using eRS Cloud Application. If mandatory fields are not passed with a valid value or removed fields are passed while creating booking, the operation will fail with response code **400**_.
118+
**udf_\***<br><span class="mandatoryFlag">&#9873;</span> <span class="removableFlag mln-2">&#9873;</span> | A user with Administrator rights can add custom fields. These fields can be used to capture additional information in Bookings. The value for user defined field can be passed as shown in example request. In given example `udf_progress`</span> is a user defined field. <a href="#user-defined-fields" class="api-ref">Learn more</a><br><br>_**Note**: User with Administrator rights can make fields marked with <span class="mandatoryFlag iconInline">&#9873;</span> mandatory and remove fields marked with <span class="removableFlag iconInline">&#9873;</span>, from <a href ="#booking-profile" class="api-ref">booking profile</a> using eRS Cloud Application. If mandatory fields are not passed with a valid value or removed fields are passed while creating booking, the operation will fail with response code **400**_.
118119

119120
### Returns
120121

@@ -376,6 +377,7 @@ Below is a list of available fields, which allow filtering bookings:
376377
**modified_by**|<li>**eq** (_default_)</li><li>neq</li><li>any</li><li>none</li>| `"modified_by:eq": 1`<br>`"modified_by:neq": 1`<br>`"modified_by:any": [1, 2]`<br>`"modified_by:none": [1, 2]`
377378
**created_on**|<li>**eq** (_default_)</li><li>lt</li><li>gt</li><li>bt</li><li>ex</li>| `"created_on:eq": ["2021-07-08T00:00:00"]`<br>`"created_on:lt": ["2021-07-08T00:00:00"]`<br>`"created_on:gt": ["2021-07-08T59:59:59"]` <br> `"created_on:bt": ["2021-07-08T00:00:00", "2021-07-10T23:59:59"]`<br>`"created_on:bt": ["2021-07-08T00:00:00", ""]` <br>`"created_on:bt": ["", "2021-07-10T23:59:59"]` <br>`"created_on:ex": ["2021-07-08T00:00:00", "2021-07-10T23:59:59"]` <br>`"created_on:ex": ["2021-07-08T00:00:00", ""]` <br>`"created_on:ex": ["", "2021-07-10T23:59:59"]]`
378379
**modified_on**|<li>**eq** (_default_)</li><li>lt</li><li>gt</li><li>bt</li><li>ex</li>| `"modified_on:eq": ["2021-07-08T00:00:00"]`<br>`"modified_on:lt": ["2021-07-08T00:00:00"]`<br>`"modified_on:gt": ["2021-07-08T59:59:59"]`<br>`"modified_on:bt": ["2021-07-08T00:00:00", "2021-07-10T23:59:59"]`<br>`"modified_on:bt": ["2021-07-08T00:00:00", ""]` <br>`"modified_on:bt": ["", "2021-07-10T23:59:59"]` <br>`"modified_on:ex": ["2021-07-08T00:00:00", "2021-07-10T23:59:59"]` <br>`"modified_on:ex": ["2021-07-08T00:00:00", ""]` <br>`"modified_on:ex": ["", "2021-07-10T23:59:59"]]`
380+
|**billing_status**| N/A |`"billing_status": 2`<br>`"billing_status": 4`<br><br>_**Note**: Integer number (2/4) representing billing status of the booking. Billing status value could be one of the following :<br><br><li>**2** for `Billable` : This defines billing status as `billable` for this booking. </li> <li> **4** for `Non Billable` : This defines billing status as `non billable` for this booking.</li>_
379381

380382
_Additionally, bookings can also be filtered using <a href="#search-resources" class="api-ref">resource fields</a>, <a href="#search-projects" class="api-ref">project fields</a> and <a href="#filters-for-user-defined-fields" class="api-ref">custom fields</a> of bookings. An example request for fetching only booking having `resource_id` as 2, `project_id` as 9 and `role_id` as 1 is shown._
381383

source/includes/_bookingprofile.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,32 @@ curl -v \
1717
> Example Response
1818
1919
```json
20+
{
21+
"id": 43,
22+
"code": "rate_from",
23+
"display_name": "Billing Rate",
24+
"field_type": "RTFRM",
25+
"minnum": 0,
26+
"is_system_defined": true,
27+
"is_required": false
28+
},
29+
{
30+
"id": 42,
31+
"code": "billing_status",
32+
"display_name": "Billing Status",
33+
"field_type": "BLSTS",
34+
"minnum": 0,
35+
"is_system_defined": true,
36+
"is_required": false
37+
},
38+
{
39+
"id": 46,
40+
"code": "disable_parallel",
41+
"display_name": "Disable Parallel",
42+
"field_type": "DDSS",
43+
"is_system_defined": true,
44+
"is_required": false
45+
},
2046
{
2147
"id": 29,
2248
"code": "effort",
@@ -53,6 +79,16 @@ curl -v \
5379
{...}
5480
]
5581
},
82+
{
83+
"id": 44,
84+
"code": "progress",
85+
"display_name": "Progress",
86+
"field_type": "INT",
87+
"minnum": 0,
88+
"maxnum": 100,
89+
"is_system_defined": true,
90+
"is_required": false
91+
},
5692
{
5793
"id": 3,
5894
"code": "project_id",
@@ -61,6 +97,14 @@ curl -v \
6197
"is_required": true,
6298
"is_system_defined": true
6399
},
100+
{
101+
"id": 75,
102+
"code": "requirement_id",
103+
"display_name": "Requirement",
104+
"field_type": "REQSS",
105+
"is_system_defined": true,
106+
"is_required": false
107+
},
64108
{
65109
"id": 2,
66110
"code": "resource_id",
@@ -95,6 +139,23 @@ curl -v \
95139
"is_required": false,
96140
"is_system_defined": true
97141
},
142+
{
143+
"id": 27,
144+
"code": "timezone",
145+
"display_name": "Time Zone",
146+
"field_type": "DDSS",
147+
"is_system_defined": true,
148+
"is_required": false,
149+
"options": [
150+
{
151+
"id": 136,
152+
"name": "Africa/Abidjan",
153+
"description": "Africa/Abidjan"
154+
},
155+
{...},
156+
{...}
157+
]
158+
},
98159
{
99160
"id": 5,
100161
"code": "unit",

source/includes/_calendars.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Calendar is used to define working-timing of resources. An Administrator user ca
88
99
```json
1010
{
11-
"id": 2,
11+
"id": 1,
1212
"name": "New York Calendar",
1313
"description": null,
1414
"is_default": false,
@@ -60,7 +60,7 @@ Calendar is used to define working-timing of resources. An Administrator user ca
6060
},
6161
"modified_by": {
6262
"id": 118,
63-
"name": "John doe"
63+
"name": "John Doe"
6464
}
6565
}
6666
```
@@ -122,7 +122,7 @@ curl -v \
122122
{
123123
"total_count": 4,
124124
"data": [{
125-
"id": 2,
125+
"id": 1,
126126
"name": "New York Calendar",
127127
"description": null,
128128
"is_default": false,
@@ -155,7 +155,7 @@ curl -v \
155155
},
156156
"modified_by": {
157157
"id": 118,
158-
"name": "John doe"
158+
"name": "John Doe"
159159
}
160160
},
161161
{ ... },
@@ -247,7 +247,7 @@ curl -v \
247247
},
248248
"modified_by": {
249249
"id": 118,
250-
"name": "John doe"
250+
"name": "John Doe"
251251
}
252252
}
253253
```

0 commit comments

Comments
 (0)