-
Notifications
You must be signed in to change notification settings - Fork 0
/
open-api-spec.yml
44 lines (42 loc) · 1.11 KB
/
open-api-spec.yml
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
openapi: 3.0.0
info:
title: Sample API
description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.
version: 0.1.9
servers:
- url: http://localhost:8080
description: local
paths:
/api/user/create:
post:
summary: Create a new user
parameters:
- name: body
in: body
required: true
schema:
type: object
properties:
username:
type: string
example: [email protected]
password:
type: string
example: password1234
tcno:
type: string
example: 12512561125
responses:
'200':
description: 'create a new user'
content:
application/json:
schema:
type: object
properties:
username:
type: string
description: Username
tcno:
type: string
description: ID