-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger.yaml
More file actions
68 lines (68 loc) · 1.51 KB
/
swagger.yaml
File metadata and controls
68 lines (68 loc) · 1.51 KB
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
67
68
basePath: /
definitions:
handler.CreateUserRequest:
properties:
nickname:
type: string
password:
type: string
required:
- nickname
- password
type: object
host: localhost:8080
info:
contact: {}
description: Hackathon
title: Thumb processor worker
version: 0.1.0
paths:
/login:
get:
consumes:
- application/json
description: Authenticates a user using Basic Authentication and returns user
information.
parameters:
- description: Basic Authentication credentials (username:password)
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: Successful login
schema: {}
"401":
description: Unauthorized
schema: {}
summary: User Login
tags:
- Auth
/user:
post:
consumes:
- application/json
description: Creates a new user with the provided nickname and password.
parameters:
- description: User creation request body
in: body
name: request
required: true
schema:
$ref: '#/definitions/handler.CreateUserRequest'
produces:
- application/json
responses:
"201":
description: User created
schema: {}
"400":
description: Bad request
schema: {}
summary: Create a new user
tags:
- users
swagger: "2.0"