forked from pagopa/io-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_parameters.yaml
66 lines (66 loc) · 1.96 KB
/
api_parameters.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
swagger: "2.0"
info:
title: "IO API parameters"
version: "0.1"
paths:
"/dummy":
get:
responses:
"200":
description: "ok"
definitions:
GetMessagesParameters:
type: object
title: GetMessagesParameters
description: Describes the GetMessages api query parameters
properties:
pageSize:
$ref: "#/definitions/NonNegativeIntegerFromString"
enrichResultData:
$ref: "#/definitions/BooleanFromString"
getArchivedMessages:
$ref: "#/definitions/BooleanFromString"
maximumId:
$ref: "#/definitions/Ulid"
minimumId:
$ref: "#/definitions/Ulid"
GetMessageParameters:
type: object
title: GetMessageParameters
description: Describes the GetMessage api parameters
properties:
id:
$ref: "#/definitions/Ulid"
public_message:
$ref: "#/definitions/BooleanFromString"
required:
- id
GetPublishedCategoriesParameters:
type: object
title: GetPublishedCategoriesParameters
description: Describes the GetMessages api query parameters
properties:
count_new_discounts:
$ref: "#/definitions/BooleanFromString"
NonNegativeIntegerFromString:
type: string
description: Represents a non negative integer parsed from a string
format: NonNegativeIntegerFromString
x-import: '@pagopa/ts-commons/lib/numbers'
example: 10
BooleanFromString:
type: string
description: Represents a boolean parsed from a string
format: BooleanFromString
# TODO: Import from ts-commons when it will be updated during the
# update of backend to fp-ts 2.x
x-import: '../../src/types/booleans'
example: true
NonEmptyString:
type: string
description: Represents a non empty string
format: NonEmptyString
x-import: '@pagopa/ts-commons/lib/strings'
example: "xxxxxxxx"
Ulid:
$ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v28.6.0/openapi/definitions.yaml#/Ulid"