-
Notifications
You must be signed in to change notification settings - Fork 0
/
yaml_event_post_example.txt
41 lines (41 loc) · 1007 Bytes
/
yaml_event_post_example.txt
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
post:
tags:
- event
summary: "Create an Event"
description: Create a new Event
consumes:
- application/x-www-form-urlencoded
produces:
- application/json
parameters:
- name: name
in: formData
type: string
- name: description
in: formData
type: string
- name: img
in: formData
type: string
- name: contact_reference
in: formData
type: integer
- name: location
in: formData
type: string
- name: city
in: formData
type: string
- name: max_participants
in: formData
type: integer
- name: date
in: formData
type: string
responses:
'200':
description: "Event succesfully created"
schema:
$ref: '#/definitions/Event'
'400':
description: "Unexpected error"