|
219 | 219 | "schema": { |
220 | 220 | "type": "string" |
221 | 221 | } |
| 222 | + }, |
| 223 | + { |
| 224 | + "in": "body", |
| 225 | + "name": "approvalStatus", |
| 226 | + "description": "The approval status to update the event request to. Allowed approval statuses are: 'pending', 'approved', 'rejected'.", |
| 227 | + "required": true, |
| 228 | + "schema": { |
| 229 | + "type": "string", |
| 230 | + "enum": [ |
| 231 | + "pending", |
| 232 | + "approved", |
| 233 | + "rejected" |
| 234 | + ], |
| 235 | + "example": "approved" |
| 236 | + } |
222 | 237 | } |
223 | 238 | ], |
224 | 239 | "responses": { |
|
238 | 253 | "example": "Event request updated successfully" |
239 | 254 | }, |
240 | 255 | "data": { |
241 | | - "$ref": "#/components/schemas/EventRequest" |
| 256 | + "$ref": "#/components/schemas/PrivateEventRequest" |
242 | 257 | } |
243 | 258 | } |
244 | 259 | } |
|
297 | 312 | "data": { |
298 | 313 | "type": "array", |
299 | 314 | "items": { |
300 | | - "$ref": "#/components/schemas/EventRequest" |
| 315 | + "$ref": "#/components/schemas/PublicEventRequest" |
301 | 316 | } |
302 | 317 | } |
303 | 318 | } |
|
1590 | 1605 | } |
1591 | 1606 | } |
1592 | 1607 | }, |
1593 | | - "EventRequest": { |
| 1608 | + "PublicEventRequest": { |
| 1609 | + "type": "object", |
| 1610 | + "properties": { |
| 1611 | + "netid": { |
| 1612 | + "type": "string", |
| 1613 | + "description": "The netid of the user submitting the event request.", |
| 1614 | + "example": "jdoe123" |
| 1615 | + }, |
| 1616 | + "name": { |
| 1617 | + "type": "string", |
| 1618 | + "description": "The name of the event.", |
| 1619 | + "example": "Event Name" |
| 1620 | + }, |
| 1621 | + "eventType": { |
| 1622 | + "type": "string", |
| 1623 | + "description": "The type of event.", |
| 1624 | + "example": "temporary" |
| 1625 | + }, |
| 1626 | + "startDate": { |
| 1627 | + "type": "string", |
| 1628 | + "description": "The start date of the event.", |
| 1629 | + "example": "2025-01-01 12:00:00" |
| 1630 | + }, |
| 1631 | + "endDate": { |
| 1632 | + "type": "string", |
| 1633 | + "description": "The end date of the event.", |
| 1634 | + "example": "2025-01-02 12:00:00" |
| 1635 | + }, |
| 1636 | + "organizationName": { |
| 1637 | + "type": "string", |
| 1638 | + "description": "The name of the organization hosting the event.", |
| 1639 | + "example": "Organization Name" |
| 1640 | + }, |
| 1641 | + "location": { |
| 1642 | + "type": "string", |
| 1643 | + "description": "The location of the event.", |
| 1644 | + "example": "Location Name" |
| 1645 | + }, |
| 1646 | + "about": { |
| 1647 | + "type": "string", |
| 1648 | + "description": "The about section of the event.", |
| 1649 | + "example": "About the event." |
| 1650 | + } |
| 1651 | + } |
| 1652 | + }, |
| 1653 | + "PrivateEventRequest": { |
1594 | 1654 | "type": "object", |
1595 | 1655 | "properties": { |
| 1656 | + "id": { |
| 1657 | + "type": "integer", |
| 1658 | + "description": "The id of the event request.", |
| 1659 | + "example": 1 |
| 1660 | + }, |
1596 | 1661 | "netid": { |
1597 | 1662 | "type": "string", |
1598 | 1663 | "description": "The netid of the user submitting the event request.", |
|
1632 | 1697 | "type": "string", |
1633 | 1698 | "description": "The about section of the event.", |
1634 | 1699 | "example": "About the event." |
| 1700 | + }, |
| 1701 | + "approvalStatus": { |
| 1702 | + "type": "string", |
| 1703 | + "description": "The approval status of the event request.", |
| 1704 | + "example": "pending" |
| 1705 | + }, |
| 1706 | + "createdAt": { |
| 1707 | + "type": "string", |
| 1708 | + "description": "The date and time the event request was created.", |
| 1709 | + "example": "2025-01-01 12:00:00" |
| 1710 | + }, |
| 1711 | + "updatedAt": { |
| 1712 | + "type": "string", |
| 1713 | + "description": "The date and time the event request was last updated.", |
| 1714 | + "example": "2025-01-01 12:00:00" |
1635 | 1715 | } |
1636 | 1716 | } |
1637 | 1717 | } |
|
0 commit comments