Enum
Find enum utils¶
Attempt to find enum util
Request¶
Request body¶
This endpoint does not have a request body
curl --location 'https://example.juno.one/v1/enums' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1NjkwNzczfQ.OoK6poNwkZ_7UR3MbE7zz85prWFsp30z07MocVNlJ1ui5SzbvQi4f4UgvwMAG6FfHi2HJMJ7Rtla1hyxRVxUUg' \
--header 'X-tenantID: example' \
--header 'Zone: GMT'
import requests
url = "https://example.juno.one/v1/enums"
payload = {}
headers = {
'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1NjkwNzczfQ.OoK6poNwkZ_7UR3MbE7zz85prWFsp30z07MocVNlJ1ui5SzbvQi4f4UgvwMAG6FfHi2HJMJ7Rtla1hyxRVxUUg',
'X-tenantID': 'example',
'Zone': 'GMT'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
val client = OkHttpClient()
val request = Request.Builder()
.url("https://example.juno.one/v1/enums")
.addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1NjkwNzczfQ.OoK6poNwkZ_7UR3MbE7zz85prWFsp30z07MocVNlJ1ui5SzbvQi4f4UgvwMAG6FfHi2HJMJ7Rtla1hyxRVxUUg")
.addHeader("X-tenantID", "example")
.addHeader("Zone", "GMT")
.build()
val response = client.newCall(request).execute()
Response¶
Successful response of get enums has the status 200
with following response body:
Get enum utils types¶
Attempt to get enum utils types
Request¶
Parameters¶
Parameter | Path/Query | Type | Required | Notes |
---|---|---|---|---|
type | path | string | yes | defines the type of enum |
Request body¶
This endpoint does not have a request body
curl --location 'https://example.juno.one/v1/enums/CUSTOM' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1NjkwNzczfQ.OoK6poNwkZ_7UR3MbE7zz85prWFsp30z07MocVNlJ1ui5SzbvQi4f4UgvwMAG6FfHi2HJMJ7Rtla1hyxRVxUUg' \
--header 'X-tenantID: example' \
--header 'Zone: GMT'
import requests
url = "https://example.juno.one/v1/enums/CUSTOM"
payload = {}
headers = {
'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1NjkwNzczfQ.OoK6poNwkZ_7UR3MbE7zz85prWFsp30z07MocVNlJ1ui5SzbvQi4f4UgvwMAG6FfHi2HJMJ7Rtla1hyxRVxUUg',
'X-tenantID': 'example',
'Zone': 'GMT'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
val client = OkHttpClient()
val request = Request.Builder()
.url("https://example.juno.one/v1/enums/CUSTOM")
.addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJ0ZXN0IiwiZXhwIjoxNjg1NjkwNzczfQ.OoK6poNwkZ_7UR3MbE7zz85prWFsp30z07MocVNlJ1ui5SzbvQi4f4UgvwMAG6FfHi2HJMJ7Rtla1hyxRVxUUg")
.addHeader("X-tenantID", "example")
.addHeader("Zone", "GMT")
.build()
val response = client.newCall(request).execute()
Response¶
Successful response of get enum utils types has the status 200
with following response body:
404
Not found