Input URI
|
{base url} + DESIGN/RC/KDS-24-14-21-2021/REBT |
|---|
Active Methods
|
POST, GET, PUT, DELETE |
|---|
JSON Schema
Details
"type": "object",
"required": [
"Assign"
],
"additionalProperties": false,
"properties": {
"Assign": {
"type": "object",
"description": "Keyed object (dictionary). Each property name is a section ID string (e.g., \"4\") of a general section. Writing a section deletes the member-level rebar (RBTE) of the elements that use it",
"additionalProperties": false,
"minProperties": 1,
"patternProperties": {
"^[0-9]+$": {
"title": "Rebar Input for General Section",
"type": "object",
"additionalProperties": false,
"properties": {
"ORIGIN_TYPE": {
"type": "string",
"default": "CENTROID",
"description": "Origin the dialog shows the coordinates in. Y and Z are always centroid-relative regardless of this value. Omitted on PUT keeps the stored value, on POST the default",
"enum": [
"CENTROID",
"LEFT BOTTOM"
]
},
"SAME_IJ_MAIN": {
"type": "boolean",
"default": true,
"description": "Apply same rebar data to both I and J-end (Main Rebar tab). When true the J-end main bars are copied from the I end on save, so MAIN_BAR_J is discarded"
},
"MAIN_BAR_I": {
"type": "array",
"description": "I-end main bars (Main Rebar tab, I). Omitting the array leaves the stored bars unchanged; when present, entries are merged by NUM. At least one bar must remain. Collection items are paired with the stored items by request position and missing properties are filled in from them, so read the record with GET, edit it and send every property of every item back. A bar cannot be removed with PUT: to remove bars, DELETE the record and POST the bars to keep",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"NUM": {
"type": "integer",
"description": "Bar number in this collection. Matches a stored bar to update it (bars are never removed by PUT); on POST a number that is not stored appends. Every save renumbers the collection to 1..N, so re-read the record before reusing it",
"minimum": 1
},
"NAME": {
"type": "string",
"description": "Bar size (Dia). Required when the bar is appended. Rebar designation from the model's concrete rebar size list (not a fixed enum: one list per model, chosen by the concrete rebar material code). An empty or unknown name is rejected"
},
"Y": {
"type": "number",
"description": "Bar centre, section local y, from the section design centroid (current length unit). Always centroid-relative, whatever ORIGIN_TYPE is. Required when the bar is appended"
},
"Z": {
"type": "number",
"description": "Bar centre, section local z, from the section design centroid (current length unit). Always centroid-relative, whatever ORIGIN_TYPE is. Required when the bar is appended"
}
}
}
},
"MAIN_BAR_J": {
"type": "array",
"description": "J-end main bars (Main Rebar tab, J). Used only when SAME_IJ_MAIN is false; then at least one bar must remain. Same item rule as MAIN_BAR_I: send every property of every item. A bar cannot be removed with PUT: to remove bars, DELETE the record and POST the bars to keep",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"NUM": {
"type": "integer",
"description": "Bar number in this collection. Matches a stored bar to update it (bars are never removed by PUT); on POST a number that is not stored appends. Every save renumbers the collection to 1..N, so re-read the record before reusing it",
"minimum": 1
},
"NAME": {
"type": "string",
"description": "Bar size (Dia). Required when the bar is appended. Rebar designation from the model's concrete rebar size list (not a fixed enum: one list per model, chosen by the concrete rebar material code). An empty or unknown name is rejected"
},
"Y": {
"type": "number",
"description": "Bar centre, section local y, from the section design centroid (current length unit). Always centroid-relative, whatever ORIGIN_TYPE is. Required when the bar is appended"
},
"Z": {
"type": "number",
"description": "Bar centre, section local z, from the section design centroid (current length unit). Always centroid-relative, whatever ORIGIN_TYPE is. Required when the bar is appended"
}
}
}
},
"SAME_IJ_SHEAR": {
"type": "boolean",
"default": true,
"description": "Apply same rebar data to both I and J-end (Shear Rebar tab). When true SHEAR_BAR_J is copied from SHEAR_BAR_I on save"
},
"SHEAR_BAR_I": {
"type": "object",
"additionalProperties": false,
"description": "I-end shear (stirrup) bar (Shear Rebar tab, I). Omitted leaves the stored value unchanged",
"properties": {
"NAME": {
"type": "string",
"description": "Hoop bar size. The empty string means no hoop bar (the state of a new record), so a GET result can be sent back unchanged. Rebar designation from the model's concrete rebar size list (not a fixed enum: one list per model, chosen by the concrete rebar material code). An empty or unknown name is rejected"
},
"LEG_Y": {
"type": "integer",
"description": "Number of legs in section local y",
"minimum": 0
},
"LEG_Z": {
"type": "integer",
"description": "Number of legs in section local z",
"minimum": 0
},
"DIST": {
"type": "number",
"description": "Longitudinal hoop spacing in section local x (current length unit)",
"minimum": 0
}
}
},
"SHEAR_BAR_J": {
"type": "object",
"additionalProperties": false,
"description": "J-end shear (stirrup) bar (Shear Rebar tab, J). Omitted leaves the stored value unchanged. Overwritten from SHEAR_BAR_I when SAME_IJ_SHEAR is true",
"properties": {
"NAME": {
"type": "string",
"description": "Hoop bar size. The empty string means no hoop bar (the state of a new record), so a GET result can be sent back unchanged. Rebar designation from the model's concrete rebar size list (not a fixed enum: one list per model, chosen by the concrete rebar material code). An empty or unknown name is rejected"
},
"LEG_Y": {
"type": "integer",
"description": "Number of legs in section local y",
"minimum": 0
},
"LEG_Z": {
"type": "integer",
"description": "Number of legs in section local z",
"minimum": 0
},
"DIST": {
"type": "number",
"description": "Longitudinal hoop spacing in section local x (current length unit)",
"minimum": 0
}
}
}
}
}
}
}
}
}
Request Examples
Example
"Assign": {
"4": {
"ORIGIN_TYPE": "CENTROID",
"SAME_IJ_MAIN": true,
"MAIN_BAR_I": [
{
"NUM": 1,
"NAME": "D25",
"Y": 220,
"Z": 220
},
{
"NUM": 2,
"NAME": "D25",
"Y": -220,
"Z": 220
},
{
"NUM": 3,
"NAME": "D25",
"Y": -220,
"Z": -220
},
{
"NUM": 4,
"NAME": "D25",
"Y": 220,
"Z": -220
}
],
"SAME_IJ_SHEAR": true,
"SHEAR_BAR_I": {
"NAME": "D13",
"LEG_Y": 2,
"LEG_Z": 2,
"DIST": 150
}
}
}
}
Response Examples
Example
"REBT": {
"4": {
"ORIGIN_TYPE": "CENTROID",
"SAME_IJ_MAIN": true,
"MAIN_BAR_I": [
{
"NUM": 1,
"NAME": "D25",
"Y": 220,
"Z": 220
},
{
"NUM": 2,
"NAME": "D25",
"Y": -220,
"Z": 220
},
{
"NUM": 3,
"NAME": "D25",
"Y": -220,
"Z": -220
},
{
"NUM": 4,
"NAME": "D25",
"Y": 220,
"Z": -220
}
],
"MAIN_BAR_J": [
{
"NUM": 1,
"NAME": "D25",
"Y": 220,
"Z": 220
},
{
"NUM": 2,
"NAME": "D25",
"Y": -220,
"Z": 220
},
{
"NUM": 3,
"NAME": "D25",
"Y": -220,
"Z": -220
},
{
"NUM": 4,
"NAME": "D25",
"Y": 220,
"Z": -220
}
],
"SAME_IJ_SHEAR": true,
"SHEAR_BAR_I": {
"NAME": "D13",
"LEG_Y": 2,
"LEG_Z": 2,
"DIST": 150
},
"SHEAR_BAR_J": {
"NAME": "D13",
"LEG_Y": 2,
"LEG_Z": 2,
"DIST": 150
}
}
}
}
Specifications
Keyed Object Entry
| No. | Description | Key | Value Type | Default | Required | |||
|---|---|---|---|---|---|---|---|---|
|
Root Object |
||||||||
|
1 |
Keyed object (dictionary). Each property name is a section ID string (e.g., "4") of a general section. Writing a section deletes the member-level rebar (RBTE) of the elements that use it |
"Assign" |
object |
- |
Required |
|||
Item (Value Object Schema)
| No. | Description | Key | Value Type | Default | Required | |||
|---|---|---|---|---|---|---|---|---|
|
General |
||||||||
|
1 |
Origin Type • Centroid: "CENTROID" • Left-Bottom: "LEFT BOTTOM" |
"ORIGIN_TYPE" |
string |
CENTROID |
Optional |
|||
|
2 |
Apply same rebar data to both I and J-end (Main Rebar) |
"SAME_IJ_MAIN" |
boolean |
true |
Optional |
|||
|
3 |
Main Rebar (I) |
"MAIN_BAR_I" |
array [object] |
- |
Optional |
|||
|
3.1 |
No. • Minimum: 1 |
"NUM" |
integer |
- |
Optional |
|||
|
3.2 |
Rebar |
"NAME" |
string |
- |
Optional |
|||
|
3.3 |
y |
"Y" |
number |
- |
Optional |
|||
|
3.4 |
z |
"Z" |
number |
- |
Optional |
|||
|
4 |
Main Rebar (J) |
"MAIN_BAR_J" |
array [object] |
- |
Optional |
|||
|
4.1 |
No. • Minimum: 1 |
"NUM" |
integer |
- |
Optional |
|||
|
4.2 |
Rebar |
"NAME" |
string |
- |
Optional |
|||
|
4.3 |
y |
"Y" |
number |
- |
Optional |
|||
|
4.4 |
z |
"Z" |
number |
- |
Optional |
|||
|
5 |
Apply same rebar data to both I and J-end (Shear Rebar) |
"SAME_IJ_SHEAR" |
boolean |
true |
Optional |
|||
|
6 |
Shear Rebar (I) |
"SHEAR_BAR_I" |
object |
- |
Optional |
|||
|
6.1 |
Rebar |
"NAME" |
string |
- |
Optional |
|||
|
6.2 |
Number on Y-Dir • Minimum: 0 |
"LEG_Y" |
integer |
- |
Optional |
|||
|
6.3 |
Number on Z-Dir • Minimum: 0 |
"LEG_Z" |
integer |
- |
Optional |
|||
|
6.4 |
Space on X-Dir • Minimum: 0 |
"DIST" |
number |
- |
Optional |
|||
|
7 |
Shear Rebar (J) |
"SHEAR_BAR_J" |
object |
- |
Optional |
|||
|
7.1 |
Rebar |
"NAME" |
string |
- |
Optional |
|||
|
7.2 |
Number on Y-Dir • Minimum: 0 |
"LEG_Y" |
integer |
- |
Optional |
|||
|
7.3 |
Number on Z-Dir • Minimum: 0 |
"LEG_Z" |
integer |
- |
Optional |
|||
|
7.4 |
Space on X-Dir • Minimum: 0 |
"DIST" |
number |
- |
Optional |
|||