-
Notifications
You must be signed in to change notification settings - Fork 5
/
genshin-impact-game-data.yaml
73 lines (73 loc) · 1.77 KB
/
genshin-impact-game-data.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
openapi: 3.0.3
info:
title: api.genshin.dev
version: 1.0.0
description: An API for Genshin Impact game data.
servers:
- url: https://api.genshin.dev
description: Base URL for all endpoints
paths:
/:
get:
summary: Get all resources
description: Get all resources
operationId: getResources
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
tags:
- Genshin Impact
/{resource}:
get:
summary: Get all items under a given resource
description: Get all items under a given resource
operationId: getResourceItems
parameters:
- in: path
name: resource
schema:
type: string
required: true
description: The type of resource to get
responses:
"200":
description: OK
content:
application/json:
schema:
type: array
items:
type: object
tags:
- Genshin Impact
/{resource}/{item}:
get:
summary: Get details of a resource
description: Get details of a resource
operationId: getResourceDetails
parameters:
- in: path
name: resource
schema:
type: string
required: true
description: The type of the resource
- in: path
name: item
schema:
type: string
required: true
description: The name of the item under the resource
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
tags:
- Genshin Impact