Bug 35628: Add status to ticket definition
[koha.git] / api / v1 / swagger / definitions / ticket.yaml
1 ---
2 type: object
3 properties:
4   ticket_id:
5     type: integer
6     description: Internal ticket identifier
7     readOnly: true
8   source:
9     type: string
10     enum:
11       - catalog
12   reported_date:
13     type:
14       - string
15       - "null"
16     format: date-time
17     description: Date the ticket was reported
18     readOnly: true
19   biblio:
20     type:
21       - object
22       - "null"
23     description: The object representing the biblio the ticket is related to
24     readOnly: true
25   biblio_id:
26     type: integer
27     description: Internal identifier for the biblio the ticket is related to
28   title:
29     type: string
30     description: Ticket title
31   body:
32     type: string
33     description: Ticket details
34   status:
35     type:
36       - string
37       - "null"
38     description: Current status of the ticket
39     readOnly: true
40   reporter:
41     type:
42       - object
43       - "null"
44     description: The object representing the patron who reported the ticket
45     readOnly: true
46   reporter_id:
47     type: integer
48     description: Internal identifier for the patron who reported the ticket
49   resolver:
50     type:
51       - object
52       - "null"
53     description: The object representing the user who resolved the ticket
54     readOnly: true
55   resolver_id:
56     type:
57       - integer
58       - "null"
59     description: Internal identifier for the user who resolved the ticket
60   resolved_date:
61     type:
62       - string
63       - "null"
64     format: date-time
65     description: Date the ticket was resolved_date
66   updates_count:
67     type:
68       - integer
69       - "null"
70     description: Number of updates
71 additionalProperties: false
72 required:
73   - source
74   - title
75   - body