-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimages.yaml
58 lines (58 loc) · 1.17 KB
/
images.yaml
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
openapi: "3.0.0"
info:
version: 1.0.0
title: Hourmasters Service
license:
name: MIT
servers:
- url: http://laravel.test/api/v1
- url: https://stage.hourmasters.com/api/v1
- url: https://www.hourmasters.com/api/v1
paths:
/images:
post:
summary: 新增圖片
operationId: createImage
tags:
- images
parameters:
-
requestBody:
content:
multipart/form-data:
schema:
$ref: "#/components/schemas/Image"
responses:
'200':
content:
application/json:
schema:
$ref: "#/components/schemas/ImageResponse"
components:
schemas:
Image:
required:
- type
- image
properties:
type:
type: string
image:
type: string
format: binary
ImageResponse:
properties:
id:
type: integer
user_id:
type: integer
type:
type: string
path:
type: string
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time