-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathopenapi.yaml
85 lines (72 loc) · 1.75 KB
/
openapi.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
74
75
76
77
78
79
80
81
82
83
84
85
#
# (c) 2018 OpenTHC, Inc.
# This file is part of OpenTHC API released under MIT License
# SPDX-License-Identifier: MIT
#
# OpenTHC API
#
openapi: 3.0.2
info:
title: OpenTHC API
description: OpenTHC Data Model and JSON-API reference
version: "420.20.050"
contact:
name: OpenTHC, Inc.
url: https://openthc.com/
email: code@openthc.com
license:
name: MIT
url: https://mit-license.org/
termsOfService: https://openthc.com/about/tos
externalDocs:
description: "Find out more about OpenTHC"
url: "https://openthc.com"
#
# Servers
servers:
- url: https://YOUR_HOST/YOUR/PATH
description: You can install to sub-host or sub-path
- url: https://cre.demo.openthc.com
description: Example Implementation
tags:
- name: Authentication
description: Authentication and session management
- name: System
description: "Core System Data: Company, License, Contact"
- name: Config
description: "Configuration options for each Company/License"
- name: Crop
description: "Crop, Plant, Growth and Collection details"
- name: Inventory
description: Inventory (Product, Variety, Package) details
- name: Lab
description: Details about the Quality Assurance data, Laboratory results
- name: B2B Transaction
description: B2B Transactions
- name: B2C Transaction
description: B2C Transactions
#
# Componenets
components:
requestBodies:
$ref: 'components/request.yaml'
responses:
$ref: 'components/response.yaml'
schemas:
$ref: 'components/schema.yaml'
#
# Paths
paths:
$ref: './paths/_.yaml'
#
#models:
# $ref: './models.yaml'
# parameters:
# examples:
# requestBodies:
# $ref: 'components/request.yaml'
# headers:
# securitySchemes:
# links:
# callbacks:
# $ref: './components.yaml'