Number Range Resource¶
Get All Number Ranges¶
HTTP Request
GET /api/numberRanges
📋 Description: Retrieves a list of available number ranges, providing essential data for managing numerical identifiers within the application.
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1[
2 {
3 "id": 0,
4 "createdBy": "string",
5 "createdAt": "2019-08-24T14:15:22Z",
6 "entityType": "string",
7 "prefix": "string",
8 "rangeSeperator": "string",
9 "rangeFrom": "string",
10 "rangeTo": "string",
11 "lastGenerated": "string",
12 "isAvailable": true
13 }
14]
Response Schema
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
false |
none |
[Data transfer object representing a defined range of numerical values, utilized for validating input parameters and ensuring data integrity within business processes.] |
|
» id |
integer(int64) |
false |
none |
Unique identifier for the resource |
» createdBy |
string |
false |
none |
Username of who created this resource |
» createdAt |
string(date-time) |
false |
none |
Timestamp when this resource was created |
» entityType |
string |
false |
none |
Type of the entity |
» prefix |
string |
false |
none |
Specifies the prefix used to categorize or identify a range of numerical values within the NumberRangeDTO schema. |
» rangeSeperator |
string |
false |
none |
Specifies the character used to separate values within a defined numerical range, facilitating clear communication of range parameters in business applications. |
» rangeFrom |
string |
false |
none |
Specifies the starting value of a numerical range, facilitating precise data filtering and analysis within the application. |
» rangeTo |
string |
false |
none |
Specifies the upper limit of the numerical range, facilitating precise data filtering and analysis within the system. |
» lastGenerated |
string |
false |
none |
Timestamp indicating the last time a number range was generated, providing insight into the frequency of updates within the system. |
» isAvailable |
boolean |
false |
none |
Whether the resource is available |
Create Number Range¶
HTTP Request
POST /api/numberRanges
📋 Description: Creates a new number range entry in the system, enabling efficient management and allocation of numerical identifiers for various business processes.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
body |
body |
true |
Request body containing the numerical range specifications, including start and end values, for effective data segmentation and analysis. |
Body Parameters
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "entityType": "string",
6 "prefix": "string",
7 "rangeSeperator": "string",
8 "rangeFrom": "string",
9 "rangeTo": "string",
10 "lastGenerated": "string",
11 "isAvailable": true
12}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
201 |
Created |
integer |
Example Responses
10
Update Number Range¶
HTTP Request
POST /api/numberRanges/{id}
📋 Description: Creates or updates a number range identified by the specified ID, allowing for efficient management of numerical data within the application.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
body |
body |
true |
Request body containing the updated number range details, including the range values and associated metadata for effective data management. |
Body Parameters
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "entityType": "string",
6 "prefix": "string",
7 "rangeSeperator": "string",
8 "rangeFrom": "string",
9 "rangeTo": "string",
10 "lastGenerated": "string",
11 "isAvailable": true
12}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
None |
Find All Entity Types¶
HTTP Request
GET /api/numberRanges/entityTypes
📋 Description: Retrieves a list of available entity types for number ranges, enabling users to effectively manage and categorize their data within the application.
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1[
2 "ASSET"
3]