PUT api/v1/tests/values

Test values

Request Information

URI Parameters

None.

Body Parameters

request

TestValuesV1Request
NameDescriptionTypeAdditional information
Int16

Integer (16 bits)

integer (16 bits)

Example value: 16

Int32

Integer (32 bits)

integer (32 bits)

Example value: 32

Int64

Integer (64 bits)

integer (64 bits)

Example value: 64

UnsignedInt16

Unsigned integer (16 bits)

unsigned integer (16 bits)

Example value: 16

UnsignedInt32

Unsigned integer (32 bits)

unsigned integer (32 bits)

Example value: 32

UnsignedInt64

Unsigned integer (64 bits)

unsigned integer (64 bits)

Example value: 64

Byte

Byte

byte

Example value: 100

SignedByte

Signed byte

signed byte

Example value: 100

Char

Char

character

Example value: B

Uri

Uri

URI

Example value: https://api.informapp.nl/api/v1/tests/values

Max length: 120

Single

Single

decimal number

Example value: 100.11

Double

Double

decimal number

Example value: 200.22

Decimal

Decimal

decimal number

Example value: 100.123

String

String

string

Example value: example string

Max length: 20

Uuid

Universally unique identifier (UUID)

universally unique identifier

Example value: 9b1ce20f-afa3-4aed-b82c-e69024f89f42

TimeSpan

TimeSpan

time interval

Example value: 1.02:03:04.1234567

DateTime

DateTime

date

Example value: 12/31/2018 23:59:59

DateTimeOffset

DateTimeOffset

date

Example value: 12/31/2018 23:59:59 +02:00

Boolean

Boolean

boolean

Example value: True

Enum

Enum

ValuesKind

Example value: Zero

Array

Array

Collection of integer (32 bits)

Example value: 1, 2, 3

Max items: 3

Bytes

Bytes

Collection of byte

Example value: 1, 2, 3

Max items: 3

Dictionary

Dictionary

Dictionary of integer (32 bits) [key] and integer (32 bits) [value]

Max items: 3

Request Formats

application/json

Sample:
{
  "Int16": 16,
  "Int32": 32,
  "Int64": 64,
  "UnsignedInt16": 16,
  "UnsignedInt32": 32,
  "UnsignedInt64": 64,
  "Byte": 100,
  "SignedByte": 100,
  "Char": "B",
  "Uri": "https://api.informapp.nl:443/api/v1/tests/values",
  "Single": 100.11,
  "Double": 200.22,
  "Decimal": 100.123,
  "String": "example string",
  "Uuid": "9b1ce20f-afa3-4aed-b82c-e69024f89f42",
  "TimeSpan": "1.02:03:04.1234567",
  "DateTime": "2018-12-31T23:59:59.999",
  "DateTimeOffset": "2018-12-31T21:59:59.999+00:00",
  "Boolean": true,
  "Enum": "Zero",
  "Array": [
    1,
    2,
    3
  ],
  "Bytes": "AQID",
  "Dictionary": {
    "1": 10,
    "2": 20,
    "3": 30
  }
}

Response Information

Resource Description

Test values, useful to test whether an API client can correctly send and receive the various data types

TestValuesV1Response
NameDescriptionTypeAdditional information
Int16

Integer (16 bits)

integer (16 bits)

Example value: 16

Int32

Integer (32 bits)

integer (32 bits)

Example value: 32

Int64

Integer (64 bits)

integer (64 bits)

Example value: 64

UnsignedInt16

Unsigned integer (16 bits)

unsigned integer (16 bits)

Example value: 16

UnsignedInt32

Unsigned integer (32 bits)

unsigned integer (32 bits)

Example value: 32

UnsignedInt64

Unsigned integer (64 bits)

unsigned integer (64 bits)

Example value: 64

Byte

Byte

byte

Example value: 100

SignedByte

Signed byte

signed byte

Example value: 100

Char

Char

character

Example value: B

Uri

Uri

URI

Example value: https://api.informapp.nl/api/v1/tests/values

Single

Single

decimal number

Example value: 100.11

Double

Double

decimal number

Example value: 200.22

Decimal

Decimal

decimal number

Example value: 100.123

String

String

string

Example value: example string

Max length: 20

Uuid

Universally unique identifier (UUID)

universally unique identifier

Example value: 9b1ce20f-afa3-4aed-b82c-e69024f89f42

TimeSpan

TimeSpan

time interval

Example value: 1.02:03:04.1234567

DateTime

DateTime

date

Example value: 12/31/2018 23:59:59

DateTimeOffset

DateTimeOffset

date

Example value: 12/31/2018 23:59:59 +02:00

Boolean

Boolean

boolean

Example value: True

Enum

Enum

ValuesKind

Example value: Zero

Array

Array

Collection of integer (32 bits)

Example value: 1, 2, 3

Bytes

Bytes

Collection of byte

Example value: 1, 2, 3

Dictionary

Dictionary

Dictionary of integer (32 bits) [key] and integer (32 bits) [value]

None.

Response Formats

application/json

Sample:
{
  "Int16": 16,
  "Int32": 32,
  "Int64": 64,
  "UnsignedInt16": 16,
  "UnsignedInt32": 32,
  "UnsignedInt64": 64,
  "Byte": 100,
  "SignedByte": 100,
  "Char": "B",
  "Uri": "https://api.informapp.nl:443/api/v1/tests/values",
  "Single": 100.11,
  "Double": 200.22,
  "Decimal": 100.123,
  "String": "example string",
  "Uuid": "9b1ce20f-afa3-4aed-b82c-e69024f89f42",
  "TimeSpan": "1.02:03:04.1234567",
  "DateTime": "2018-12-31T23:59:59.999",
  "DateTimeOffset": "2018-12-31T21:59:59.999+00:00",
  "Boolean": true,
  "Enum": "Zero",
  "Array": [
    1,
    2,
    3
  ],
  "Bytes": "AQID",
  "Dictionary": {
    "1": 10,
    "2": 20,
    "3": 30
  }
}