Commit ·
6c50d1f
0
Parent(s):
feat: initial upload for AutoRestTest Track A datasets
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +21 -0
- .gitignore +62 -0
- Dockerfile +11 -0
- LICENSE +21 -0
- README.md +393 -0
- __init__.py +0 -0
- arat.py +745 -0
- aratrl-openapi/features.yaml +408 -0
- aratrl-openapi/genome.yaml +2535 -0
- aratrl-openapi/languagetool.yaml +282 -0
- aratrl-openapi/market.yaml +2276 -0
- aratrl-openapi/market2.yaml +693 -0
- aratrl-openapi/ncs.yaml +266 -0
- aratrl-openapi/person.yaml +452 -0
- aratrl-openapi/project.yaml +2333 -0
- aratrl-openapi/restcountries.yaml +377 -0
- aratrl-openapi/scs.yaml +437 -0
- aratrl-openapi/user.yaml +965 -0
- aratrl-service/jdk11/market/.gitignore +17 -0
- aratrl-service/jdk11/market/.idea/codeStyles/Project.xml +31 -0
- aratrl-service/jdk11/market/.idea/codeStyles/codeStyleConfig.xml +5 -0
- aratrl-service/jdk11/market/.mvn/wrapper/MavenWrapperDownloader.java +117 -0
- aratrl-service/jdk11/market/.mvn/wrapper/maven-wrapper.jar +3 -0
- aratrl-service/jdk11/market/.mvn/wrapper/maven-wrapper.properties +2 -0
- aratrl-service/jdk11/market/LICENSE +21 -0
- aratrl-service/jdk11/market/README.adoc +80 -0
- aratrl-service/jdk11/market/README_RU.md +316 -0
- aratrl-service/jdk11/market/database-model.mwb +0 -0
- aratrl-service/jdk11/market/market-core/pom.xml +99 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/DataConfig.java +65 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/FixturesFactory.java +116 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/SecurityConfigBase.java +63 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/dao/CartDAO.java +9 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/dao/ContactsDAO.java +11 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/dao/DistilleryDAO.java +15 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/dao/OrderDAO.java +22 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/dao/OrderedProductDAO.java +9 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/dao/ProductDAO.java +21 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/dao/RegionDAO.java +13 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/dao/UserAccountDAO.java +10 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Bill.java +166 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Cart.java +184 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/CartItem.java +82 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/CartItemId.java +54 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Contacts.java +156 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Distillery.java +132 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Order.java +222 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/OrderedProduct.java +108 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/OrderedProductId.java +51 -0
- aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Product.java +241 -0
.gitattributes
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.txt filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.exe filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.jar filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.sql filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.eot filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.ttf filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.woff filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.dict filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.map filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*solved.json filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ico filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.eps filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.xlsx filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.exec filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.idea/
|
| 2 |
+
.vscode/
|
| 3 |
+
.github/
|
| 4 |
+
.gradle/
|
| 5 |
+
|
| 6 |
+
# OS artifacts
|
| 7 |
+
.DS_Store
|
| 8 |
+
**/.DS_Store
|
| 9 |
+
|
| 10 |
+
# Python
|
| 11 |
+
venv/
|
| 12 |
+
.venv/
|
| 13 |
+
**/.venv/
|
| 14 |
+
__pycache__/
|
| 15 |
+
**/__pycache__/
|
| 16 |
+
*.py[cod]
|
| 17 |
+
*.pyo
|
| 18 |
+
.hypothesis/
|
| 19 |
+
|
| 20 |
+
# Environment
|
| 21 |
+
.env
|
| 22 |
+
|
| 23 |
+
# Data and cache directories
|
| 24 |
+
data/
|
| 25 |
+
src/data/
|
| 26 |
+
**/data/
|
| 27 |
+
src/cache/
|
| 28 |
+
**/cache/
|
| 29 |
+
**/testing_output/
|
| 30 |
+
**/glove.6B.50d.w2v.txt
|
| 31 |
+
|
| 32 |
+
# Logs and reports
|
| 33 |
+
logs/
|
| 34 |
+
kittylogs/
|
| 35 |
+
RestlerLogs/
|
| 36 |
+
services/service_logs/
|
| 37 |
+
*.log
|
| 38 |
+
log_*
|
| 39 |
+
*LOG_PATH*
|
| 40 |
+
org.jacoco.*
|
| 41 |
+
jacoco_*
|
| 42 |
+
workloadResultsFile.xlsx
|
| 43 |
+
faultloadResultsFile.xlsx
|
| 44 |
+
|
| 45 |
+
# Build and tooling outputs
|
| 46 |
+
target/
|
| 47 |
+
output/
|
| 48 |
+
out/
|
| 49 |
+
restler_bin/
|
| 50 |
+
restler/
|
| 51 |
+
rest-gitlab/
|
| 52 |
+
Fuzz/
|
| 53 |
+
Compile/
|
| 54 |
+
services/jdk8/erc20-rest-service/bin/
|
| 55 |
+
|
| 56 |
+
# Project-specific artifacts
|
| 57 |
+
test.json
|
| 58 |
+
cp.txt
|
| 59 |
+
*.pkl
|
| 60 |
+
evomaster-benchmark-cs-rest-artificial-news.iml
|
| 61 |
+
evomaster.jar
|
| 62 |
+
test.py
|
Dockerfile
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
COPY . /app
|
| 6 |
+
|
| 7 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
+
|
| 9 |
+
ENV PYTHONPATH=/app/src
|
| 10 |
+
|
| 11 |
+
CMD ["python3", "-m", "autoresttest.autoresttest"]
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2024 selab-gatech
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AutoRestTest
|
| 2 |
+
|
| 3 |
+
### Introduction
|
| 4 |
+
***AutoRestTest*** is a complete testing software for automated API testing that combines the utility of graph
|
| 5 |
+
theory, Large Language Models (LLMs), and multi-agent reinforcement learning (MARL) to parse the OpenAPI Specification
|
| 6 |
+
and create enhanced comprehensive test cases. AutoRestTest specifically supports **OpenAPI Specification 3.0**.
|
| 7 |
+
|
| 8 |
+
Watch this [demonstration video](https://www.youtube.com/watch?v=VVus2W8rap8) of AutoRestTest to learn how it solves complex challenges in automated REST API testing, as well as its configuration, execution steps, and output.
|
| 9 |
+
|
| 10 |
+
> [!NOTE]
|
| 11 |
+
> Following the release of the demonstration video, the code base has been refactored.
|
| 12 |
+
> Refer to this `README.md` for the most current setup and execution details.
|
| 13 |
+
|
| 14 |
+
<p align="center">
|
| 15 |
+
<a href="https://www.youtube.com/watch?v=VVus2W8rap8">
|
| 16 |
+
<img src="https://img.youtube.com/vi/VVus2W8rap8/0.jpg" alt="Watch the video">
|
| 17 |
+
</a>
|
| 18 |
+
</p>
|
| 19 |
+
|
| 20 |
+
The program uses LLMs for natural-language processing during the creation of the reinforcement
|
| 21 |
+
learning tables and graph edges. AutoRestTest supports any LLM from an OpenAI-API compatible provider, including OpenAI, OpenRouter, Azure OpenAI, and local models (LocalAI, LM Studio, vLLM, Ollama, etc.).
|
| 22 |
+
|
| 23 |
+
> [!Important]
|
| 24 |
+
> An API key from your chosen LLM provider is required. The cost per execution depends on your provider and model choice.
|
| 25 |
+
> For reference, when testing an average API with ~15 operations using GPT-4o-mini, the cost was approximately $0.1.
|
| 26 |
+
|
| 27 |
+
## Terminal User Interface (TUI)
|
| 28 |
+
|
| 29 |
+
AutoRestTest features a modern, interactive terminal user interface built with [Rich](https://github.com/Textualize/rich) that provides:
|
| 30 |
+
|
| 31 |
+
### Interactive Configuration Wizard
|
| 32 |
+
|
| 33 |
+
On startup, AutoRestTest launches an interactive configuration wizard that allows you to:
|
| 34 |
+
- **Select API specifications** from discovered files or enter custom paths
|
| 35 |
+
- **Choose LLM providers** (OpenAI, OpenRouter, Local) with pre-configured model options
|
| 36 |
+
- **Configure test duration** with convenient presets (5, 10, 20, 30, 60 minutes)
|
| 37 |
+
- **Adjust Q-learning parameters** (learning rate, discount factor, exploration)
|
| 38 |
+
- **Toggle caching options** for faster repeated runs
|
| 39 |
+
- **Override API URLs** for local testing
|
| 40 |
+
|
| 41 |
+
The wizard uses sensible defaults from `configurations.toml`, so you can simply press Enter to accept defaults or customize any setting.
|
| 42 |
+
|
| 43 |
+
### Live Execution Dashboard
|
| 44 |
+
|
| 45 |
+
During request generation, a real-time dashboard displays:
|
| 46 |
+
|
| 47 |
+
```
|
| 48 |
+
╔══════════════════════════════════════════════════════════════════════════════╗
|
| 49 |
+
║ [STATUS] Request Generation ║
|
| 50 |
+
╠══════════════════════════════════════════════════════════════════════════════╣
|
| 51 |
+
║ ┌──────────────────────────────────────────────────────────────────────┐ ║
|
| 52 |
+
║ │ Time Elapsed: 00:15:32 Time Remaining: 00:04:28 │ ║
|
| 53 |
+
║ │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.8% │ ║
|
| 54 |
+
║ └──────────────────────────────────────────────────────────────────────┘ ║
|
| 55 |
+
║ ║
|
| 56 |
+
║ Successfully Processed (2xx) Operations: 1,482 ║
|
| 57 |
+
║ Operation Coverage: 85.2% ║
|
| 58 |
+
║ Unique Server Errors (5xx): 7 ║
|
| 59 |
+
║ Total Requests Sent: 3,847 ║
|
| 60 |
+
║ ║
|
| 61 |
+
║ Status Code Distribution ║
|
| 62 |
+
║ ┌──────────────────────────────────────────────────────────────────────┐ ║
|
| 63 |
+
║ │ 200: ████████████████████████████████████████████░░░░░░░░ 1,482 │ ║
|
| 64 |
+
║ │ 404: ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 150 │ ║
|
| 65 |
+
║ │ 500: █░░░░░░░░���░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7 │ ║
|
| 66 |
+
║ └──────────────────────────────────────────────────────────────────────┘ ║
|
| 67 |
+
║ ║
|
| 68 |
+
║ Current Operation: GET /api/users/{id} ║
|
| 69 |
+
║ ║
|
| 70 |
+
║ [COST] Total LLM usage: $0.11 USD ║
|
| 71 |
+
╚══════════════════════════════════════════════════════════════════════════════╝
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
Features include:
|
| 75 |
+
- **Real-time progress tracking** with elapsed and remaining time
|
| 76 |
+
- **Color-coded status codes** (green for 2xx, orange for 4xx, red for 5xx)
|
| 77 |
+
- **Visual progress bars** for status code distribution
|
| 78 |
+
- **Live cost estimation** based on token usage
|
| 79 |
+
- **Current operation indicator** showing what's being tested
|
| 80 |
+
- **Mutation counter** tracking the number of fuzzing mutations applied
|
| 81 |
+
|
| 82 |
+
### Q-Table Initialization Progress
|
| 83 |
+
|
| 84 |
+
During the Q-table initialization phase, the Value Agent and Header Agent (if enabled) perform LLM calls to generate test values for each API operation. A live progress display shows:
|
| 85 |
+
|
| 86 |
+
```
|
| 87 |
+
╭──── ⚙ Value Agent Q-Table Generation ────╮
|
| 88 |
+
│ │
|
| 89 |
+
│ ━━━━━━━━━━━━━━━━━━━━━━━─────── 67.5% │
|
| 90 |
+
│ │
|
| 91 |
+
│ Operations: 27/40 │ Elapsed: 03:45 │
|
| 92 |
+
│ │
|
| 93 |
+
│ ▶ POST /api/users │
|
| 94 |
+
│ │
|
| 95 |
+
╰───────────────────────────────────────────╯
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
This progress display appears for both Value Agent and Header Agent initialization, showing:
|
| 99 |
+
- Visual progress bar with percentage complete
|
| 100 |
+
- Operation count (completed/total)
|
| 101 |
+
- Elapsed time
|
| 102 |
+
- Current operation being processed
|
| 103 |
+
|
| 104 |
+
### TUI Command Line Options
|
| 105 |
+
|
| 106 |
+
| Option | Description |
|
| 107 |
+
|--------|-------------|
|
| 108 |
+
| `--skip-wizard` | Skip configuration wizard, use `configurations.toml` directly |
|
| 109 |
+
| `--quick` | Quick setup wizard (essential settings only) |
|
| 110 |
+
| `-s, --spec PATH` | Override specification path |
|
| 111 |
+
| `-t, --time SECONDS` | Override test duration |
|
| 112 |
+
| `--width N` | Set TUI display width (default: 100) |
|
| 113 |
+
|
| 114 |
+
**Examples:**
|
| 115 |
+
|
| 116 |
+
```bash
|
| 117 |
+
# Full interactive mode (default)
|
| 118 |
+
poetry run autoresttest
|
| 119 |
+
|
| 120 |
+
# Quick setup - only essential settings
|
| 121 |
+
poetry run autoresttest --quick
|
| 122 |
+
|
| 123 |
+
# Skip wizard entirely, use config file
|
| 124 |
+
poetry run autoresttest --skip-wizard
|
| 125 |
+
|
| 126 |
+
# Override spec and duration via CLI
|
| 127 |
+
poetry run autoresttest -s specs/original/oas/spotify.yaml -t 600
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
## Installation
|
| 131 |
+
|
| 132 |
+
We recommend using Poetry with `pyproject.toml` for dependency management and scripts. A `poetry.lock` file pins exact versions.
|
| 133 |
+
|
| 134 |
+
Steps:
|
| 135 |
+
1. Clone the repository.
|
| 136 |
+
2. Ensure Python 3.10.x is available (project targets `>=3.10,<3.11`).
|
| 137 |
+
3. Install dependencies with Poetry (uses `poetry.lock` if present):
|
| 138 |
+
- `poetry install`
|
| 139 |
+
4. Create a `.env` file in the project root and add:
|
| 140 |
+
- `API_KEY='<YOUR_API_KEY>'`
|
| 141 |
+
|
| 142 |
+
Alternatives (provided but not recommended):
|
| 143 |
+
- `pip install -r requirements.txt`
|
| 144 |
+
- `conda env create -f autoresttest.yaml`
|
| 145 |
+
|
| 146 |
+
Optionally, if the user wants to test specific APIs, they can install their OpenAPI Specification files within a folder
|
| 147 |
+
in the root directory. For convenience, we have provided a large array of OpenAPI Specifications for popular and
|
| 148 |
+
widely-used APIs. These Specifications can be seen in the `aratrl-openapi` and `specs` directories.
|
| 149 |
+
|
| 150 |
+
### Running Local Services
|
| 151 |
+
|
| 152 |
+
AutoRestTest includes support for running local REST API services for testing. Some services require building before use:
|
| 153 |
+
|
| 154 |
+
#### JDK 8_1 Services (features-service, ncs, scs)
|
| 155 |
+
|
| 156 |
+
These services must be built before first use:
|
| 157 |
+
|
| 158 |
+
```bash
|
| 159 |
+
# Make the build script executable
|
| 160 |
+
chmod +x services/build_jdk8_1_services.sh
|
| 161 |
+
|
| 162 |
+
# Build all JDK 8_1 services
|
| 163 |
+
bash services/build_jdk8_1_services.sh
|
| 164 |
+
```
|
| 165 |
+
|
| 166 |
+
After building, start a service:
|
| 167 |
+
```bash
|
| 168 |
+
cd services
|
| 169 |
+
python3 run_service_mac.py features-service no_token
|
| 170 |
+
```
|
| 171 |
+
|
| 172 |
+
For detailed instructions, see `FEATURES_SERVICE_SETUP.md`.
|
| 173 |
+
|
| 174 |
+
#### Other Supported Services
|
| 175 |
+
|
| 176 |
+
Other services like genome-nexus, language-tool, youtube, etc. can be run without building:
|
| 177 |
+
```bash
|
| 178 |
+
cd services
|
| 179 |
+
python3 run_service_mac.py <service-name> <token>
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
See `services/README.md` for the full list of supported services.
|
| 183 |
+
|
| 184 |
+
At this point, the installation step is complete and the software can be executed. However, it is important that the
|
| 185 |
+
following configuration steps are completed for purposeful execution.
|
| 186 |
+
|
| 187 |
+
## Configuration
|
| 188 |
+
|
| 189 |
+
There is a wide array of configuration options available within the codebase. All configuration options are easily accessible via a single TOML file at the project root: `configurations.toml`.
|
| 190 |
+
|
| 191 |
+
Below are the relevant settings and where to find them in `configurations.toml`.
|
| 192 |
+
|
| 193 |
+
#### 1. Specifying the API Specification
|
| 194 |
+
|
| 195 |
+
If you intend to use your own OpenAPI Specification file as described in the Installation section, set the relative path (from the project root) to that file in `configurations.toml` under `[spec].location`.
|
| 196 |
+
|
| 197 |
+
Only `.yaml` and `.json` files are supported (OpenAPI 3.0). Example: `aratrl-openapi/market2.yaml`.
|
| 198 |
+
|
| 199 |
+
Specification parsing is handled by [Prance](https://github.com/jfinkhaeuser/prance). If your spec has circular/self-referencing `$ref` chains, you can tune the resolver behavior with:
|
| 200 |
+
- `[spec].recursion_limit` (default: `1`) — the maximum number of times a circular reference may appear in the resolution stack before a placeholder schema is substituted; a value of 1 means a self-referencing element is resolved once before being replaced.
|
| 201 |
+
- `[spec].strict_validation` (default: `true`) — when `true`, the OpenAPI spec is strictly validated and parsing stops on errors; when `false`, invalid sections are skipped where possible so execution can continue.
|
| 202 |
+
|
| 203 |
+
#### 2. Configuring Reinforcement Learning Parameters
|
| 204 |
+
|
| 205 |
+
Configure Q-learning parameters in `configurations.toml`:
|
| 206 |
+
- `[q_learning].learning_rate` (default: `0.1`)
|
| 207 |
+
- `[q_learning].discount_factor` (default: `0.9`)
|
| 208 |
+
- `[q_learning].max_exploration` (epsilon; default: `1`, decays over time to `0.1`)
|
| 209 |
+
|
| 210 |
+
Instead of limiting episodes, the program limits RL iterations using a time budget. Set the duration (in seconds) under:
|
| 211 |
+
- `[request_generation].time_duration` (default: `1200`)
|
| 212 |
+
|
| 213 |
+
> [!NOTE]
|
| 214 |
+
> This time budget applies only to the MARL (Q-learning) phase. The initial value table generation phase, which runs before Q-learning begins, is not time-limited and will process all operations in the specification.
|
| 215 |
+
|
| 216 |
+
#### Parameter Combination Sampling
|
| 217 |
+
|
| 218 |
+
For APIs with many parameters, generating all possible combinations would cause memory exhaustion. AutoRestTest uses depth-weighted stratified sampling to bound combinations while prioritizing smaller (more diagnostic) combinations. Configure under `[agent]`:
|
| 219 |
+
|
| 220 |
+
| Option | Default | Description |
|
| 221 |
+
|--------|---------|-------------|
|
| 222 |
+
| `max_combinations` | `12` | Maximum optional parameters per combination. Required parameters are always included. |
|
| 223 |
+
| `max_total_combinations` | `3000` | Hard cap on combinations per operation. Smaller combinations are kept when truncating. |
|
| 224 |
+
| `base_samples_per_size` | `200` | Sample count at size=1; decays for larger sizes (e.g., size=5 gets ~60 samples). |
|
| 225 |
+
| `combination_seed` | `42` | Seed for reproducible random sampling. Change for different samples. |
|
| 226 |
+
|
| 227 |
+
Example distribution for an operation with 30 parameters:
|
| 228 |
+
- Size 1-2: All combinations enumerated (30 + 435 = 465)
|
| 229 |
+
- Size 3-12: Random samples (~700 total)
|
| 230 |
+
- Total: ~1,200 unique combinations (well under 3K cap)
|
| 231 |
+
|
| 232 |
+
> [!TIP]
|
| 233 |
+
> The above steps alter the variables across all agents used within the software. If the user desires to change
|
| 234 |
+
> the individual agent parameters, they can navigate to the `src/autoresttest/agents` files and change the parameters.
|
| 235 |
+
|
| 236 |
+
#### 3. Parallel Value Table Generation
|
| 237 |
+
|
| 238 |
+
The Value Agent's Q-table initialization can be parallelized using a thread pool, which significantly speeds up startup for APIs with many operations. Configure this under `[agent.value]`:
|
| 239 |
+
- `[agent.value].parallelize` (default: `true`) — when `true`, operations are processed concurrently using a thread pool; when `false`, the original sequential depth-first traversal is used.
|
| 240 |
+
- `[agent.value].max_workers` (default: `4`) — number of worker threads for parallel generation (ignored if `parallelize` is `false`). Set to match your CPU core count for optimal performance.
|
| 241 |
+
|
| 242 |
+
> [!NOTE]
|
| 243 |
+
> Rate-limited responses (HTTP 429) are automatically retried with exponential backoff.
|
| 244 |
+
|
| 245 |
+
#### 4. Configuring the LLM
|
| 246 |
+
|
| 247 |
+
AutoRestTest supports any LLM from an OpenAI-API compatible provider. Configure the model and provider in `configurations.toml`:
|
| 248 |
+
|
| 249 |
+
| Option | Default | Description |
|
| 250 |
+
|--------|---------|-------------|
|
| 251 |
+
| `[llm].engine` | `gpt-4o-mini` | Model identifier. Format depends on provider (e.g., `gpt-4o-mini`, `google/gemini-2.0-flash-001`, `anthropic/claude-3-haiku`). |
|
| 252 |
+
| `[llm].api_base` | `https://api.openai.com/v1` | API endpoint URL. Change for alternative providers. |
|
| 253 |
+
| `[llm].creative_temperature` | `1` | Temperature for creative parameter generation. |
|
| 254 |
+
| `[llm].strict_temperature` | `1` | Temperature for repair or deterministic flows. |
|
| 255 |
+
| `[llm].max_tokens` | `30000` | Maximum tokens for LLM response. Set to `-1` to omit and use provider default. |
|
| 256 |
+
|
| 257 |
+
**Example configurations:**
|
| 258 |
+
|
| 259 |
+
```toml
|
| 260 |
+
# OpenAI (default)
|
| 261 |
+
[llm]
|
| 262 |
+
engine = "gpt-4o-mini"
|
| 263 |
+
api_base = "https://api.openai.com/v1"
|
| 264 |
+
|
| 265 |
+
# OpenRouter (access to many models)
|
| 266 |
+
[llm]
|
| 267 |
+
engine = "google/gemini-2.0-flash-001"
|
| 268 |
+
api_base = "https://openrouter.ai/api/v1"
|
| 269 |
+
|
| 270 |
+
# Local model (LM Studio, Ollama, etc.)
|
| 271 |
+
[llm]
|
| 272 |
+
engine = "local-model"
|
| 273 |
+
api_base = "http://localhost:1234/v1"
|
| 274 |
+
```
|
| 275 |
+
|
| 276 |
+
> [!WARNING]
|
| 277 |
+
> The model must support **JSON mode**. Most recent models from major providers support this feature.
|
| 278 |
+
> The console output will list token usage for analyzing costs, if supplied by the provider.
|
| 279 |
+
|
| 280 |
+
#### 5. Use of Cached Graphs and Reinforcement Learning Tables
|
| 281 |
+
|
| 282 |
+
The software can cache the graph and Q-tables to reduce cost and speed up repeated runs. Configure this behavior under:
|
| 283 |
+
- `[cache].use_cached_graph` (default: `true`)
|
| 284 |
+
- `[cache].use_cached_table` (default: `true`)
|
| 285 |
+
|
| 286 |
+
> [!IMPORTANT]
|
| 287 |
+
> The cache parameter structure changed on Dec. 10, 2025. Recreate caches (clear `cache/` contents) so they remain compatible with newer runs.
|
| 288 |
+
|
| 289 |
+
> [!NOTE]
|
| 290 |
+
> When enabled, these options store and read cached data under the `cache/` directory at the project root (for example, `cache/graphs/` and `cache/q_tables/`).
|
| 291 |
+
> If disk usage becomes a concern, you can delete the cached project information in `cache/` after use; the data will be regenerated on the next run when needed.
|
| 292 |
+
|
| 293 |
+
#### 6. Optional Header Agent
|
| 294 |
+
|
| 295 |
+
AutoRestTest contains an optional Header agent responsible for testing the API with different authentication headers. Due to difficulties
|
| 296 |
+
of different authentication flows, the Header agent is only able to use Basic Authentication. By default, the agent is disabled.
|
| 297 |
+
|
| 298 |
+
Toggle via `configurations.toml`:
|
| 299 |
+
- `[agents.header].enabled` (default: `false`)
|
| 300 |
+
|
| 301 |
+
> [!CAUTION]
|
| 302 |
+
> The Header agent Q-table should be rerun when executing services with local databases that refresh, as the user
|
| 303 |
+
> credentials may become invalid.
|
| 304 |
+
|
| 305 |
+
#### 7. Custom Static Headers
|
| 306 |
+
|
| 307 |
+
For APIs that require custom headers (such as API keys or Bearer tokens), you can configure static headers in the `[custom_headers]` section. These headers are included with every request.
|
| 308 |
+
|
| 309 |
+
```toml
|
| 310 |
+
[custom_headers]
|
| 311 |
+
X-API-Key = "your-static-key"
|
| 312 |
+
Authorization = "Bearer ${ACCESS_TOKEN}"
|
| 313 |
+
```
|
| 314 |
+
|
| 315 |
+
Environment variable interpolation is supported using the `${VAR_NAME}` syntax. Store sensitive values in your `.env` file:
|
| 316 |
+
```
|
| 317 |
+
ACCESS_TOKEN=your_bearer_token
|
| 318 |
+
```
|
| 319 |
+
|
| 320 |
+
> [!CAUTION]
|
| 321 |
+
> If you enable the Header Agent (`[agents.header].enabled = true`) alongside custom headers, be aware that the Header Agent may override your `Authorization` header during testing. The Header Agent uses Basic Authentication tokens and has higher priority than custom static headers. For Bearer token or API key authentication, keep the Header Agent disabled.
|
| 322 |
+
|
| 323 |
+
#### 8. Custom API URL Override
|
| 324 |
+
|
| 325 |
+
By default, AutoRestTest extracts the API base URL from the `servers` field in your OpenAPI specification. If you need to target a different host (e.g., a local development server or staging environment), you can override this behavior in the `[api]` section:
|
| 326 |
+
|
| 327 |
+
```toml
|
| 328 |
+
[api]
|
| 329 |
+
override_url = true
|
| 330 |
+
host = "localhost"
|
| 331 |
+
port = 8080
|
| 332 |
+
```
|
| 333 |
+
|
| 334 |
+
When `override_url` is set to `true`, the tool constructs the API URL as `http://{host}:{port}/` instead of using the specification's server URL.
|
| 335 |
+
|
| 336 |
+
| Option | Default | Description |
|
| 337 |
+
|--------|---------|-------------|
|
| 338 |
+
| `override_url` | `false` | When `false`, uses the URL from the OpenAPI spec. When `true`, uses the custom host and port. |
|
| 339 |
+
| `host` | `localhost` | The hostname for the custom API URL. |
|
| 340 |
+
| `port` | `8080` | The port number for the custom API URL. |
|
| 341 |
+
|
| 342 |
+
> [!TIP]
|
| 343 |
+
> This is useful when testing local services that run on a different port than specified in the OpenAPI spec, or when the spec contains a production URL but you want to test against a local or staging environment.
|
| 344 |
+
|
| 345 |
+
## Execution
|
| 346 |
+
|
| 347 |
+
Run the script using Poetry, after following the installation instructions:
|
| 348 |
+
```
|
| 349 |
+
poetry run autoresttest
|
| 350 |
+
```
|
| 351 |
+
|
| 352 |
+
To indicate the specification for execution, set `[spec].location` in `configurations.toml`. This path must be relative to the project root.
|
| 353 |
+
|
| 354 |
+
### Docker Execution
|
| 355 |
+
|
| 356 |
+
For ease of use, the software can be executed using Docker. The user can apply the following commands from the
|
| 357 |
+
root directory sequentially to execute AutoRestTest using the pre-built Docker image:
|
| 358 |
+
|
| 359 |
+
```
|
| 360 |
+
docker build -t autoresttest .
|
| 361 |
+
docker run -it autoresttest
|
| 362 |
+
```
|
| 363 |
+
|
| 364 |
+
Ensure that `configurations.toml` is configured correctly before executing the software.
|
| 365 |
+
|
| 366 |
+
## Results
|
| 367 |
+
|
| 368 |
+
Throughout AutoRestTest's execution, the TUI provides real-time visual feedback including:
|
| 369 |
+
- **Phase indicators** showing current execution stage (Graph Construction, Q-Table Initialization, Request Generation)
|
| 370 |
+
- **Live dashboard** during request generation with time tracking, status code distribution, and cost estimation
|
| 371 |
+
- **Final report** with summary statistics, success rates, and token usage
|
| 372 |
+
- **Smart status code grouping** - automatically groups by category (2xx, 4xx, 5xx) when there are many different codes
|
| 373 |
+
- **Color-coded time indicators** - remaining time changes color based on percentage remaining (red < 5%, yellow < 20%)
|
| 374 |
+
|
| 375 |
+
#### Report Generation and Data Files
|
| 376 |
+
|
| 377 |
+
AutoRestTest will generate a series of files in the `data` directory within the root folder for easy access to execution results.
|
| 378 |
+
The following are the files generated:
|
| 379 |
+
- `report.json`: Contains the compiled report of the API testing process, including key summary statistics and information.
|
| 380 |
+
- `operation_status_codes.json`: Contains the distribution of status codes for each operation.
|
| 381 |
+
- `q_tables.json`: Contains the completed Q-tables for each agent.
|
| 382 |
+
- `server_errors.json`: Contains the unique server errors encountered during the testing process. Only JSON-seriable errors are stored.
|
| 383 |
+
- `successful_parameters.json`: Contains the successful parameters for each operation.
|
| 384 |
+
- `successful_responses.json`: Contains the successful responses for each operation.
|
| 385 |
+
- `successful_bodies.json`: Contains the successful object request bodies for each operation.
|
| 386 |
+
- `successful_primitives.json`: Contains the successful primitive request bodies for each operation.
|
| 387 |
+
|
| 388 |
+
These files contain the necessary information for analysis into the success of AutoRestTest.
|
| 389 |
+
|
| 390 |
+
> [!NOTE]
|
| 391 |
+
> The output files can grow in size according to the number of operations and the duration of execution.
|
| 392 |
+
> For example, the file containing successful responses can grow to be several **gigabytes** when executing for a long duration.
|
| 393 |
+
> It is recommended to clear the `data` directory when the files are no longer needed.
|
__init__.py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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import re
|
| 2 |
+
import os
|
| 3 |
+
import sys
|
| 4 |
+
import copy
|
| 5 |
+
import json
|
| 6 |
+
import time
|
| 7 |
+
import math
|
| 8 |
+
import rstr
|
| 9 |
+
import base64
|
| 10 |
+
import random
|
| 11 |
+
import string
|
| 12 |
+
import prance
|
| 13 |
+
import difflib
|
| 14 |
+
import requests
|
| 15 |
+
import datetime
|
| 16 |
+
import functools
|
| 17 |
+
from collections import defaultdict
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def generate_object(object_definition, operation):
|
| 21 |
+
random_object = {}
|
| 22 |
+
properties = list(object_definition.items())
|
| 23 |
+
num_fields = random.randint(0, len(properties))
|
| 24 |
+
selected_properties = random.sample(properties, num_fields)
|
| 25 |
+
for prop_element in selected_properties:
|
| 26 |
+
prop, prop_def = prop_element
|
| 27 |
+
random_object[prop] = get_next_parameter_value(operation, prop_def)
|
| 28 |
+
return random_object
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def generate_random_string_from_pattern(pattern, min_length=0, max_length=None):
|
| 32 |
+
try:
|
| 33 |
+
generated_str = rstr.xeger(pattern)
|
| 34 |
+
if max_length:
|
| 35 |
+
generated_str = generated_str[min_length:max_length-1]
|
| 36 |
+
return generated_str
|
| 37 |
+
except Exception:
|
| 38 |
+
pass
|
| 39 |
+
return None
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def get_value(param_type, operation=None, parameter=None, object_definition=None, param_format=None, array_item_type=None, response_values=None):
|
| 43 |
+
|
| 44 |
+
if random.random() < 0.1:
|
| 45 |
+
param_type = random.choice(['string', 'integer', 'number', 'boolean'])
|
| 46 |
+
min = 0
|
| 47 |
+
max = None
|
| 48 |
+
pattern = None
|
| 49 |
+
if parameter:
|
| 50 |
+
if "minLength" in parameter:
|
| 51 |
+
min = parameter["minLength"]
|
| 52 |
+
if "maxLength" in parameter:
|
| 53 |
+
max = parameter["maxLength"]
|
| 54 |
+
if "pattern" in parameter:
|
| 55 |
+
pattern = parameter["pattern"]
|
| 56 |
+
if param_type == 'string':
|
| 57 |
+
if param_format is None:
|
| 58 |
+
param_format = random.choice(['date', 'date-time', 'password', 'byte', 'binary'])
|
| 59 |
+
value = None
|
| 60 |
+
|
| 61 |
+
if pattern and random.random() < 0.9:
|
| 62 |
+
value = generate_random_string_from_pattern(pattern, min, max)
|
| 63 |
+
if value:
|
| 64 |
+
return value
|
| 65 |
+
else:
|
| 66 |
+
if param_format == 'date':
|
| 67 |
+
random_date = datetime.date.fromtimestamp(random.randint(0, int(datetime.datetime.now().timestamp())))
|
| 68 |
+
return random_date.strftime('%Y-%m-%d')
|
| 69 |
+
elif param_format == 'date-time':
|
| 70 |
+
random_datetime = datetime.datetime.fromtimestamp(
|
| 71 |
+
random.randint(0, int(datetime.datetime.now().timestamp())))
|
| 72 |
+
return random_datetime.strftime('%Y-%m-%dT%H:%M:%SZ')
|
| 73 |
+
elif param_format == 'password':
|
| 74 |
+
random_password_length = random.randint(5, 10)
|
| 75 |
+
characters = string.ascii_letters + string.digits + string.punctuation
|
| 76 |
+
return ''.join(random.choice(characters) for _ in range(random_password_length))
|
| 77 |
+
elif param_format == 'byte':
|
| 78 |
+
random_byte_length = random.randint(1, 10)
|
| 79 |
+
return base64.b64encode(os.urandom(random_byte_length)).decode('utf-8')
|
| 80 |
+
elif param_format == 'binary':
|
| 81 |
+
random_binary_length = random.randint(1, 10)
|
| 82 |
+
return ''.join(random.choice(['0', '1']) for _ in range(random_binary_length))
|
| 83 |
+
elif param_type == 'integer':
|
| 84 |
+
return random.randint(-10000, 10000)
|
| 85 |
+
elif param_type == 'number':
|
| 86 |
+
return random.uniform(-10000, 10000)
|
| 87 |
+
elif param_type == 'boolean':
|
| 88 |
+
return random.choice([True, False])
|
| 89 |
+
elif param_type == 'object':
|
| 90 |
+
if object_definition:
|
| 91 |
+
nested_object = {}
|
| 92 |
+
num_properties_to_select = random.randint(1, len(object_definition))
|
| 93 |
+
selected_properties = random.sample(list(object_definition.items()), num_properties_to_select)
|
| 94 |
+
|
| 95 |
+
for prop, prop_def in selected_properties:
|
| 96 |
+
nested_prop_type = prop_def.get('type', None)
|
| 97 |
+
nested_object[prop] = get_value(nested_prop_type, operation=operation, parameter=prop_def,
|
| 98 |
+
object_definition=prop_def.get('properties', None),
|
| 99 |
+
response_values=response_values)
|
| 100 |
+
|
| 101 |
+
return nested_object
|
| 102 |
+
else:
|
| 103 |
+
return {}
|
| 104 |
+
elif param_type == 'array':
|
| 105 |
+
array_length = 1
|
| 106 |
+
if array_item_type == 'object' and object_definition:
|
| 107 |
+
return [generate_object(object_definition, operation=operation)]
|
| 108 |
+
else:
|
| 109 |
+
return [get_value(array_item_type, operation=operation) for _ in range(array_length)]
|
| 110 |
+
else:
|
| 111 |
+
return None
|
| 112 |
+
|
| 113 |
+
@functools.lru_cache(maxsize=1024)
|
| 114 |
+
def get_random_values_from_description(description):
|
| 115 |
+
all_values = list(set(re.findall(r"[\w,]+", description) + re.findall(r"'([^']+)'", description) + re.findall(r"`([^`]+)`", description)+ re.findall(r'"([^"]+)"', description)))
|
| 116 |
+
|
| 117 |
+
if all_values:
|
| 118 |
+
return random.choice(all_values)
|
| 119 |
+
else:
|
| 120 |
+
return [None]
|
| 121 |
+
|
| 122 |
+
def is_value_of_type(value, param_type):
|
| 123 |
+
if param_type == 'integer' and isinstance(value, int):
|
| 124 |
+
return True
|
| 125 |
+
elif param_type == 'number' and isinstance(value, float):
|
| 126 |
+
return True
|
| 127 |
+
elif param_type == 'string' and isinstance(value, str):
|
| 128 |
+
return True
|
| 129 |
+
elif param_type == 'boolean' and isinstance(value, bool):
|
| 130 |
+
return True
|
| 131 |
+
elif param_type == "array" and isinstance(value, list):
|
| 132 |
+
return True
|
| 133 |
+
elif param_type == "object" and isinstance(value, dict):
|
| 134 |
+
return True
|
| 135 |
+
else:
|
| 136 |
+
return False
|
| 137 |
+
|
| 138 |
+
def extract_response_values(response, op):
|
| 139 |
+
try:
|
| 140 |
+
if isinstance(response, list):
|
| 141 |
+
val = random.choice(response)
|
| 142 |
+
extract_response_values(val, op)
|
| 143 |
+
elif isinstance(response, dict):
|
| 144 |
+
key, value = random.choice(list(response.items()))
|
| 145 |
+
if key in response_values:
|
| 146 |
+
if value not in response_values[key]:
|
| 147 |
+
response_values[key].append(value)
|
| 148 |
+
if isinstance(value, dict) or isinstance(value, list):
|
| 149 |
+
extract_response_values(value, op)
|
| 150 |
+
else:
|
| 151 |
+
if key not in response_values:
|
| 152 |
+
response_values[key] = []
|
| 153 |
+
if value not in response_values[key]:
|
| 154 |
+
if key not in producer:
|
| 155 |
+
producer[key] = []
|
| 156 |
+
if op["operation_id"] not in producer[key]:
|
| 157 |
+
if op["method"] == "get" and len(producer[key]) > 0:
|
| 158 |
+
pass
|
| 159 |
+
else:
|
| 160 |
+
producer[key].append(op["operation_id"])
|
| 161 |
+
response_values[key].append(value)
|
| 162 |
+
except Exception as e:
|
| 163 |
+
pass
|
| 164 |
+
|
| 165 |
+
def generate_parameter_values(operations):
|
| 166 |
+
generated_values = {}
|
| 167 |
+
|
| 168 |
+
for operation in operations:
|
| 169 |
+
operation_id = operation['operation_id']
|
| 170 |
+
generated_values[operation_id] = []
|
| 171 |
+
|
| 172 |
+
for parameter in operation['parameters']:
|
| 173 |
+
param_name = parameter['name']
|
| 174 |
+
|
| 175 |
+
value = get_next_parameter_value(operation, parameter)
|
| 176 |
+
|
| 177 |
+
if value is not None:
|
| 178 |
+
generated_values[operation_id].append({param_name: value})
|
| 179 |
+
|
| 180 |
+
return generated_values
|
| 181 |
+
|
| 182 |
+
def execute_operations(base_url, selected_operation, selected_parameters):
|
| 183 |
+
method, path = selected_operation['method'], selected_operation['path']
|
| 184 |
+
query_params, body_params = {}, {}
|
| 185 |
+
media_types = selected_operation.get('consumes', [
|
| 186 |
+
'application/json', 'application/x-www-form-urlencoded'
|
| 187 |
+
])
|
| 188 |
+
|
| 189 |
+
def send_request(content_type):
|
| 190 |
+
headers = {"Content-Type": content_type}
|
| 191 |
+
|
| 192 |
+
try:
|
| 193 |
+
if content_type == 'application/x-www-form-urlencoded':
|
| 194 |
+
try:
|
| 195 |
+
if method == 'get':
|
| 196 |
+
return requests.get(url, params=query_params, headers=headers, data=body_params)
|
| 197 |
+
elif method == 'post':
|
| 198 |
+
return requests.post(url, params=query_params, headers=headers, data=body_params)
|
| 199 |
+
elif method == 'put':
|
| 200 |
+
return requests.put(url, params=query_params, headers=headers, data=body_params)
|
| 201 |
+
elif method == 'delete':
|
| 202 |
+
return requests.delete(url, params=query_params, headers=headers, data=body_params)
|
| 203 |
+
elif method == 'patch':
|
| 204 |
+
return requests.patch(url, params=query_params, headers=headers, data=body_params)
|
| 205 |
+
elif method == 'head':
|
| 206 |
+
return requests.head(url, headers=headers, params=query_params)
|
| 207 |
+
except Exception:
|
| 208 |
+
if method == 'get':
|
| 209 |
+
return requests.get(url, params=query_params, headers=headers, json=body_params)
|
| 210 |
+
elif method == 'post':
|
| 211 |
+
return requests.post(url, params=query_params, headers=headers, json=body_params)
|
| 212 |
+
elif method == 'put':
|
| 213 |
+
return requests.put(url, params=query_params, headers=headers, json=body_params)
|
| 214 |
+
elif method == 'delete':
|
| 215 |
+
return requests.delete(url, params=query_params, headers=headers, json=body_params)
|
| 216 |
+
elif method == 'patch':
|
| 217 |
+
return requests.patch(url, params=query_params, headers=headers, json=body_params)
|
| 218 |
+
elif method == 'head':
|
| 219 |
+
return requests.head(url, headers=headers, params=query_params)
|
| 220 |
+
else:
|
| 221 |
+
if method == 'get':
|
| 222 |
+
return requests.get(url, params=query_params, headers=headers, json=body_params)
|
| 223 |
+
elif method == 'post':
|
| 224 |
+
return requests.post(url, params=query_params, headers=headers, json=body_params)
|
| 225 |
+
elif method == 'put':
|
| 226 |
+
return requests.put(url, params=query_params, headers=headers, json=body_params)
|
| 227 |
+
elif method == 'delete':
|
| 228 |
+
return requests.delete(url, params=query_params, headers=headers, json=body_params)
|
| 229 |
+
elif method == 'patch':
|
| 230 |
+
return requests.patch(url, params=query_params, headers=headers, json=body_params)
|
| 231 |
+
elif method == 'head':
|
| 232 |
+
return requests.head(url, headers=headers, params=query_params)
|
| 233 |
+
except requests.exceptions.RequestException as e:
|
| 234 |
+
print(f"Request error: {e}")
|
| 235 |
+
return None
|
| 236 |
+
|
| 237 |
+
for param_value_dict in selected_parameters:
|
| 238 |
+
for param_name, param_value in param_value_dict.items():
|
| 239 |
+
param = next((p for p in selected_operation['parameters'] if p['name'] == param_name), None)
|
| 240 |
+
if param is None: continue
|
| 241 |
+
if "schema" in param:
|
| 242 |
+
param_location, param_type = param['in'], param["schema"].get('type')
|
| 243 |
+
else:
|
| 244 |
+
param_location, param_type = param['in'], param.get('type')
|
| 245 |
+
if param_location == 'path':
|
| 246 |
+
path = path.replace(f'{{{param_name}}}', str(param_value))
|
| 247 |
+
elif param_location == 'query':
|
| 248 |
+
query_params[param_name] = param_value
|
| 249 |
+
elif isinstance(param_value, list):
|
| 250 |
+
body_params = param_value
|
| 251 |
+
elif isinstance(param_value, dict):
|
| 252 |
+
for tt in param_value:
|
| 253 |
+
body_params[tt] = param_value[tt]
|
| 254 |
+
else:
|
| 255 |
+
if isinstance(body_params, dict):
|
| 256 |
+
body_params[param_name] = param_value if param_type != 'array' else (param_value if isinstance(param_value, list) else [param_value])
|
| 257 |
+
url = base_url + path
|
| 258 |
+
if selected_operation['operation_id'] in cached_media_type:
|
| 259 |
+
response = send_request(cached_media_type[selected_operation['operation_id']])
|
| 260 |
+
else:
|
| 261 |
+
for media_type in media_types:
|
| 262 |
+
response = send_request(media_type)
|
| 263 |
+
if response and 200 <= response.status_code < 300:
|
| 264 |
+
cached_media_type[selected_operation['operation_id']] = media_type
|
| 265 |
+
break
|
| 266 |
+
|
| 267 |
+
return response, path, query_params, body_params
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
def get_mutated_value(param_type):
|
| 271 |
+
# Get a list of all possible types
|
| 272 |
+
all_types = ['string', 'integer', 'number', 'boolean', 'object', 'array']
|
| 273 |
+
|
| 274 |
+
# Remove the original param_type from the list
|
| 275 |
+
all_types.remove(param_type)
|
| 276 |
+
|
| 277 |
+
# Randomly choose a new type different from the original param_type
|
| 278 |
+
mutated_type = random.choice(all_types)
|
| 279 |
+
|
| 280 |
+
# Generate a value with the new mutated type
|
| 281 |
+
return get_value(mutated_type)
|
| 282 |
+
|
| 283 |
+
def perform_parameter_mutation(selected_parameters, selected_operation):
|
| 284 |
+
mutated_parameters = []
|
| 285 |
+
|
| 286 |
+
# Mutate media type
|
| 287 |
+
if random.uniform(0, 1) < MUTATION_RATE:
|
| 288 |
+
media_types = selected_operation.get('consumes', [
|
| 289 |
+
'application/json', 'application/xml', 'application/x-www-form-urlencoded',
|
| 290 |
+
'multipart/form-data', 'text/plain; charset=utf-8', 'text/html',
|
| 291 |
+
'application/pdf', 'image/png'
|
| 292 |
+
])
|
| 293 |
+
new_media_type = random.choice(media_types)
|
| 294 |
+
selected_operation['consumes'] = [new_media_type]
|
| 295 |
+
elif selected_operation['operation_id'] in cached_media_type:
|
| 296 |
+
selected_operation['consumes'] = cached_media_type[selected_operation['operation_id']]
|
| 297 |
+
|
| 298 |
+
def mutate_http_method(method):
|
| 299 |
+
all_methods = ['get', 'post', 'put', 'delete', 'patch']
|
| 300 |
+
allowed_methods = [m for m in all_methods if m != method]
|
| 301 |
+
return random.choice(allowed_methods)
|
| 302 |
+
|
| 303 |
+
method = selected_operation['method']
|
| 304 |
+
|
| 305 |
+
if random.uniform(0, 1) < MUTATION_RATE:
|
| 306 |
+
selected_operation['method'] = mutate_http_method(method)
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
for param_value_dict in selected_parameters:
|
| 310 |
+
for param_name, param_value in param_value_dict.items():
|
| 311 |
+
param = None
|
| 312 |
+
|
| 313 |
+
# Find the parameter
|
| 314 |
+
for parameter in selected_operation['parameters']:
|
| 315 |
+
if parameter['name'] == param_name:
|
| 316 |
+
param = parameter
|
| 317 |
+
break
|
| 318 |
+
|
| 319 |
+
# Mutate "parameter type" randomly
|
| 320 |
+
if random.uniform(0, 1) < MUTATION_RATE:
|
| 321 |
+
if "schema" in param:
|
| 322 |
+
mutated_value = get_mutated_value(param["schema"]['type'])
|
| 323 |
+
else:
|
| 324 |
+
mutated_value = get_mutated_value(param['type'])
|
| 325 |
+
if mutated_value is not None:
|
| 326 |
+
mutated_parameters.append({param_name: mutated_value})
|
| 327 |
+
else:
|
| 328 |
+
mutated_parameters.append(param_value_dict)
|
| 329 |
+
else:
|
| 330 |
+
mutated_parameters.append(param_value_dict)
|
| 331 |
+
|
| 332 |
+
return mutated_parameters, selected_operation
|
| 333 |
+
|
| 334 |
+
def analyze_information(spec):
|
| 335 |
+
operations = []
|
| 336 |
+
parameters_frequency = defaultdict(int)
|
| 337 |
+
|
| 338 |
+
for path, path_data in spec['paths'].items():
|
| 339 |
+
for method, operation_data in path_data.items():
|
| 340 |
+
if method in ['get', 'post', 'put', 'delete', 'patch']:
|
| 341 |
+
operation_id = operation_data['operationId']
|
| 342 |
+
operations.append({
|
| 343 |
+
'operation_id': operation_id,
|
| 344 |
+
'method': method,
|
| 345 |
+
'path': path,
|
| 346 |
+
'parameters': operation_data.get('parameters', []),
|
| 347 |
+
'responses': operation_data.get('responses', {})
|
| 348 |
+
})
|
| 349 |
+
|
| 350 |
+
for parameter in operation_data.get('parameters', []):
|
| 351 |
+
param_name = parameter['name']
|
| 352 |
+
parameters_frequency[param_name] += 1
|
| 353 |
+
|
| 354 |
+
for response_code, response_data in operation_data.get('responses', {}).items():
|
| 355 |
+
schema = response_data.get('schema', {}).get('properties', {})
|
| 356 |
+
for response_property in schema.keys():
|
| 357 |
+
if response_property in parameters_frequency:
|
| 358 |
+
parameters_frequency[response_property] += 1
|
| 359 |
+
|
| 360 |
+
return operations, parameters_frequency
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
def initialize_q_learning(operations, parameters_frequency):
|
| 364 |
+
alpha = 0.1 # Learning rate
|
| 365 |
+
gamma = 0.99 # Discount factor
|
| 366 |
+
# Exploration rate
|
| 367 |
+
|
| 368 |
+
# Initialize Q-value using parameter frequency
|
| 369 |
+
q_table = {}
|
| 370 |
+
for operation in operations:
|
| 371 |
+
operation_id = operation['operation_id']
|
| 372 |
+
q_table[operation_id] = {}
|
| 373 |
+
q_value[operation_id] = {}
|
| 374 |
+
q_value[operation_id]["response"] = 0
|
| 375 |
+
q_value[operation_id]["request"] = 0
|
| 376 |
+
q_value[operation_id]["random"] = 0
|
| 377 |
+
q_value[operation_id]["specification"] = 0
|
| 378 |
+
q_value[operation_id]["default"] = 0
|
| 379 |
+
for parameter in operation['parameters']:
|
| 380 |
+
param_name = parameter['name']
|
| 381 |
+
q_table[operation_id][param_name] = parameters_frequency[param_name]
|
| 382 |
+
|
| 383 |
+
return alpha, gamma, q_table
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
import json
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
def report_http_500_errors():
|
| 390 |
+
# Prepare the report content
|
| 391 |
+
report_content = "Total number of Found 500 Errors: " + str(total_n[0]) + "\n"
|
| 392 |
+
report_content += "This report all errors that has different set of parameters, so we recommend to further explore them.\n"
|
| 393 |
+
report_content += "HTTP 500 Error Report:\n"
|
| 394 |
+
json_report = json.dumps(http_500_details, indent=4)
|
| 395 |
+
report_content += json_report
|
| 396 |
+
|
| 397 |
+
# Specify the filename
|
| 398 |
+
filename = 'http_500_error_report.txt'
|
| 399 |
+
|
| 400 |
+
# Open the file in write mode and write the report content
|
| 401 |
+
with open(filename, 'w') as file:
|
| 402 |
+
file.write(report_content)
|
| 403 |
+
|
| 404 |
+
print(f"Report saved to {filename}")
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
def update_q_table(q_table, alpha, gamma, selected_operation, selected_parameters, response, path, query_params, body_params):
|
| 408 |
+
operation_id = selected_operation['operation_id']
|
| 409 |
+
if response is None:
|
| 410 |
+
reward = -10
|
| 411 |
+
q_value[operation_id][ss[0]] = q_value[operation_id][ss[0]] - 1
|
| 412 |
+
if response.status_code == 401:
|
| 413 |
+
reward = -1
|
| 414 |
+
elif 200 <= response.status_code < 300:
|
| 415 |
+
q_value[operation_id][ss[0]] = q_value[operation_id][ss[0]] + 1
|
| 416 |
+
reward = -1
|
| 417 |
+
elif 400 <= response.status_code:
|
| 418 |
+
q_value[operation_id][ss[0]] = q_value[operation_id][ss[0]] - 1
|
| 419 |
+
reward = 1
|
| 420 |
+
else:
|
| 421 |
+
q_value[operation_id][ss[0]] = q_value[operation_id][ss[0]] - 1
|
| 422 |
+
reward = -5
|
| 423 |
+
|
| 424 |
+
if response.status_code == 500:
|
| 425 |
+
if operation_id not in http_500_details:
|
| 426 |
+
http_500_details[operation_id] = {}
|
| 427 |
+
if selected_operation['path'] not in http_500_details[operation_id]:
|
| 428 |
+
http_500_details[operation_id][selected_operation['path']] = {}
|
| 429 |
+
keys_list = list(selected_parameters.keys())
|
| 430 |
+
sorted_keys_list = sorted(keys_list.keys())
|
| 431 |
+
concatenated_keys = '_'.join(sorted_keys_list)
|
| 432 |
+
if concatenated_keys not in http_500_details[operation_id][selected_operation['path']]:
|
| 433 |
+
http_500_details[operation_id][selected_operation['path']][concatenated_keys] = []
|
| 434 |
+
error_details = {
|
| 435 |
+
"path": path,
|
| 436 |
+
"query_parameters": query_params,
|
| 437 |
+
"body_parameters": body_params,
|
| 438 |
+
"response": response
|
| 439 |
+
}
|
| 440 |
+
http_500_details[operation_id].append(error_details)
|
| 441 |
+
total_n[0] = total_n[0] + 1
|
| 442 |
+
|
| 443 |
+
for param_value_dict in selected_parameters:
|
| 444 |
+
for param_name, param_value in param_value_dict.items():
|
| 445 |
+
if reward == -1:
|
| 446 |
+
if param_name not in previous_request:
|
| 447 |
+
previous_request[param_name] = []
|
| 448 |
+
if selected_operation['method'] == "post" or selected_operation['method'] == "get":
|
| 449 |
+
if param_value not in previous_request[param_name]:
|
| 450 |
+
previous_request[param_name].append(param_value)
|
| 451 |
+
if param_name not in producer:
|
| 452 |
+
producer[param_name] = []
|
| 453 |
+
if operation_id not in producer[param_name]:
|
| 454 |
+
if (selected_operation['method'] == "get" and len(producer[param_name]) > 0):
|
| 455 |
+
pass
|
| 456 |
+
else:
|
| 457 |
+
producer[param_name].append(operation_id)
|
| 458 |
+
if param_name not in consumer:
|
| 459 |
+
consumer[param_name] = []
|
| 460 |
+
if operation_id not in consumer[param_name]:
|
| 461 |
+
consumer[param_name].append(operation_id)
|
| 462 |
+
|
| 463 |
+
else:
|
| 464 |
+
if operation_id not in consumer:
|
| 465 |
+
consumer[operation_id] = []
|
| 466 |
+
if param_name not in consumer[operation_id]:
|
| 467 |
+
consumer[operation_id].append(param_name)
|
| 468 |
+
for k in range(len(previous_request[param_name])):
|
| 469 |
+
if previous_request[param_name][k] == param_value:
|
| 470 |
+
del(previous_request[param_name][k])
|
| 471 |
+
break
|
| 472 |
+
|
| 473 |
+
old_q_value = q_table[operation_id][param_name]
|
| 474 |
+
max_q_value_next_state = max(q_table[operation_id].values())
|
| 475 |
+
new_q_value = old_q_value + alpha * (reward + gamma * max_q_value_next_state - old_q_value)
|
| 476 |
+
q_table[operation_id][param_name] = new_q_value
|
| 477 |
+
|
| 478 |
+
def adapt_testing_strategy(iteration, max_iterations_without_improvement):
|
| 479 |
+
if iteration % max_iterations_without_improvement == 0:
|
| 480 |
+
EPSILON[0] = min(1, EPSILON[0] * 1.1)
|
| 481 |
+
|
| 482 |
+
def select_operations_and_parameters(operations, parameter_values, q_table):
|
| 483 |
+
method_priority = {'post': 5}
|
| 484 |
+
|
| 485 |
+
sorted_operations = sorted(operations, key=lambda op: (
|
| 486 |
+
(sum(q_table[op['operation_id']].values()) / len(q_table[op['operation_id']])) if len(
|
| 487 |
+
q_table[op['operation_id']]) > 0 else 0,
|
| 488 |
+
method_priority.get(op['method'], 0)), reverse=True)
|
| 489 |
+
|
| 490 |
+
if random.uniform(0, 1) < EPSILON[0]:
|
| 491 |
+
# Exploration: Choose a random operation
|
| 492 |
+
selected_operation = random.choice(sorted_operations)
|
| 493 |
+
else:
|
| 494 |
+
# Exploitation: Choose the operation with the best Q-value
|
| 495 |
+
selected_operation = sorted_operations[0]
|
| 496 |
+
|
| 497 |
+
operation_id = selected_operation['operation_id']
|
| 498 |
+
all_parameters = parameter_values[operation_id]
|
| 499 |
+
required_parameters = [param for param in all_parameters if any(param_name in param for param_name in [param_data['name'] for param_data in selected_operation['parameters'] if param_data.get('required', False)])]
|
| 500 |
+
optional_parameters = [param for param in all_parameters if param not in required_parameters]
|
| 501 |
+
|
| 502 |
+
if random.uniform(0, 1) < EPSILON[0]:
|
| 503 |
+
num_random_parameters = random.randint(0, len(optional_parameters))
|
| 504 |
+
selected_parameters = required_parameters + random.sample(optional_parameters, num_random_parameters)
|
| 505 |
+
else:
|
| 506 |
+
selected_parameters = required_parameters
|
| 507 |
+
sorted_optional_parameters = sorted(
|
| 508 |
+
optional_parameters,
|
| 509 |
+
key=lambda param: max(q_table[operation_id][param_name] for param_name in param),
|
| 510 |
+
reverse=True
|
| 511 |
+
)
|
| 512 |
+
|
| 513 |
+
num_optional_parameters = random.randint(0, len(sorted_optional_parameters))
|
| 514 |
+
selected_parameters += sorted_optional_parameters[:num_optional_parameters]
|
| 515 |
+
|
| 516 |
+
return selected_operation, selected_parameters
|
| 517 |
+
|
| 518 |
+
def get_next_parameter_value(operation, parameter):
|
| 519 |
+
if "name" not in parameter:
|
| 520 |
+
param_name="MKobject"
|
| 521 |
+
else:
|
| 522 |
+
param_name = parameter['name']
|
| 523 |
+
|
| 524 |
+
param_format = None
|
| 525 |
+
object_schema = None
|
| 526 |
+
array_item_type = None
|
| 527 |
+
if "schema" in parameter:
|
| 528 |
+
param_type = parameter["schema"]['type']
|
| 529 |
+
if "format" in parameter["schema"]:
|
| 530 |
+
param_format = parameter["schema"]['format']
|
| 531 |
+
if "properties" in parameter["schema"]:
|
| 532 |
+
object_schema = parameter["schema"]["properties"]
|
| 533 |
+
if param_type == 'array' and "items" in parameter["schema"]:
|
| 534 |
+
array_item_type = parameter["schema"]["items"]["type"]
|
| 535 |
+
if "properties" in parameter["schema"]["items"]:
|
| 536 |
+
object_schema = parameter["schema"]["items"]["properties"]
|
| 537 |
+
else:
|
| 538 |
+
param_type = parameter['type']
|
| 539 |
+
if param_type == 'array' and "items" in parameter:
|
| 540 |
+
array_item_type = parameter["items"]["type"]
|
| 541 |
+
if "properties" in parameter["items"]:
|
| 542 |
+
object_schema = parameter["items"]["properties"]
|
| 543 |
+
if "format" in parameter:
|
| 544 |
+
param_format = parameter['format']
|
| 545 |
+
|
| 546 |
+
def random_value_from_dict(data_dict):
|
| 547 |
+
if data_dict:
|
| 548 |
+
key, value = random.choice(list(data_dict.items()))
|
| 549 |
+
if value:
|
| 550 |
+
return random.choice(value)
|
| 551 |
+
|
| 552 |
+
return None
|
| 553 |
+
|
| 554 |
+
def default_values(p):
|
| 555 |
+
default_values = {
|
| 556 |
+
'string': 'string',
|
| 557 |
+
'integer': 1,
|
| 558 |
+
'number': 1.1,
|
| 559 |
+
'boolean': True,
|
| 560 |
+
'array': [],
|
| 561 |
+
'object': {}
|
| 562 |
+
}
|
| 563 |
+
default_values_formats = {
|
| 564 |
+
'string': {
|
| 565 |
+
'date-time': '1970-01-01T00:00:00Z'
|
| 566 |
+
}
|
| 567 |
+
}
|
| 568 |
+
|
| 569 |
+
if param_type in default_values:
|
| 570 |
+
if param_format and param_type in default_values_formats and param_format in default_values_formats[
|
| 571 |
+
param_type]:
|
| 572 |
+
return default_values_formats[param_type][param_format]
|
| 573 |
+
else:
|
| 574 |
+
return default_values[param_type]
|
| 575 |
+
|
| 576 |
+
return None
|
| 577 |
+
|
| 578 |
+
def response(p):
|
| 579 |
+
max_similarity = -1
|
| 580 |
+
most_similar_key = None
|
| 581 |
+
|
| 582 |
+
for key in response_values:
|
| 583 |
+
similarity = difflib.SequenceMatcher(None, param_name, key).ratio()
|
| 584 |
+
if similarity > max_similarity:
|
| 585 |
+
max_similarity = similarity
|
| 586 |
+
most_similar_key = key
|
| 587 |
+
|
| 588 |
+
if most_similar_key is not None and response_values[most_similar_key]:
|
| 589 |
+
return random.choice(response_values[most_similar_key])
|
| 590 |
+
else:
|
| 591 |
+
return None
|
| 592 |
+
|
| 593 |
+
def request(p):
|
| 594 |
+
max_similarity = -1
|
| 595 |
+
most_similar_key = None
|
| 596 |
+
|
| 597 |
+
for key in previous_request:
|
| 598 |
+
similarity = difflib.SequenceMatcher(None, param_name, key).ratio()
|
| 599 |
+
if similarity > max_similarity:
|
| 600 |
+
max_similarity = similarity
|
| 601 |
+
most_similar_key = key
|
| 602 |
+
if most_similar_key is not None and previous_request[most_similar_key]:
|
| 603 |
+
return random.choice(previous_request[most_similar_key])
|
| 604 |
+
else:
|
| 605 |
+
return None
|
| 606 |
+
|
| 607 |
+
def spec(p):
|
| 608 |
+
value_candidates = []
|
| 609 |
+
if 'enum' in p:
|
| 610 |
+
value_candidates.extend(p['enum'])
|
| 611 |
+
if 'example' in p:
|
| 612 |
+
value_candidates.append(p['example'])
|
| 613 |
+
if 'description' in p:
|
| 614 |
+
value_candidates.append(get_random_values_from_description(p['description']))
|
| 615 |
+
|
| 616 |
+
if value_candidates:
|
| 617 |
+
return random.choice(value_candidates)
|
| 618 |
+
else:
|
| 619 |
+
return None
|
| 620 |
+
|
| 621 |
+
sources = [
|
| 622 |
+
('specification', spec),
|
| 623 |
+
('request', lambda p: random_value_from_dict(previous_request) if random.random() < 0.1 else request(p)),
|
| 624 |
+
('response', lambda p: random_value_from_dict(response_values) if random.random() < 0.1 else response(p)),
|
| 625 |
+
('random', lambda p: get_value(param_type, param_format=param_format, object_definition=object_schema,
|
| 626 |
+
array_item_type=array_item_type, operation=operation)),
|
| 627 |
+
('default', default_values)
|
| 628 |
+
]
|
| 629 |
+
|
| 630 |
+
def q_value_based_choice(p):
|
| 631 |
+
|
| 632 |
+
source_weights = {
|
| 633 |
+
'specification': q_value[operation['operation_id']].get('specification'),
|
| 634 |
+
'request': q_value[operation['operation_id']].get('request'),
|
| 635 |
+
'response': q_value[operation['operation_id']].get('response'),
|
| 636 |
+
'random': q_value[operation['operation_id']].get('random'),
|
| 637 |
+
'default': q_value[operation['operation_id']].get('default')
|
| 638 |
+
}
|
| 639 |
+
|
| 640 |
+
selected_source = max(source_weights, key=source_weights.get)
|
| 641 |
+
|
| 642 |
+
source_func = {
|
| 643 |
+
'specification': spec,
|
| 644 |
+
'request': lambda p: random_value_from_dict(previous_request) if random.random() < 0.1 else request(p),
|
| 645 |
+
'response': lambda p: random_value_from_dict(response_values) if random.random() < 0.1 else response(p),
|
| 646 |
+
'random': lambda p: get_value(param_type, param_format=param_format, object_definition=object_schema,
|
| 647 |
+
array_item_type=array_item_type, operation=operation),
|
| 648 |
+
'default': default_values
|
| 649 |
+
}
|
| 650 |
+
ss[0] = selected_source
|
| 651 |
+
return source_func[selected_source](p)
|
| 652 |
+
|
| 653 |
+
if random.uniform(0, 1) < EPSILON[0]:
|
| 654 |
+
random.shuffle(sources) # Randomi`ze the order of the sources
|
| 655 |
+
value = None
|
| 656 |
+
if random.uniform(0, 1) < EPSILON[0]:
|
| 657 |
+
# Exploration: Choose a random source
|
| 658 |
+
random_source = random.choice(sources)
|
| 659 |
+
value = random_source[1](parameter)
|
| 660 |
+
else:
|
| 661 |
+
# Exploitation: Use the sources in the shuffled order
|
| 662 |
+
for source_name, source_func in sources:
|
| 663 |
+
value = source_func(parameter)
|
| 664 |
+
if array_item_type and value and not isinstance(value, list):
|
| 665 |
+
value = [value]
|
| 666 |
+
if value is not None and is_value_of_type(value, param_type):
|
| 667 |
+
break
|
| 668 |
+
else:
|
| 669 |
+
# Exploitation: Choose the source based on Q-value
|
| 670 |
+
value = q_value_based_choice(parameter)
|
| 671 |
+
# If no value is found from the sources above, return the default value
|
| 672 |
+
return value if value is not None and is_value_of_type(value, param_type) else get_value(param_type, param_format=param_format, object_definition=object_schema, array_item_type=array_item_type, operation=operation)
|
| 673 |
+
|
| 674 |
+
|
| 675 |
+
def main():
|
| 676 |
+
# Read Specification
|
| 677 |
+
openapi_spec_file = sys.argv[1]
|
| 678 |
+
openapi_spec = prance.ResolvingParser(openapi_spec_file).specification
|
| 679 |
+
operations, parameters_frequency = analyze_information(openapi_spec)
|
| 680 |
+
alpha, gamma, q_table = initialize_q_learning(operations, parameters_frequency)
|
| 681 |
+
|
| 682 |
+
start_time = time.time()
|
| 683 |
+
time_limit = sys.argv[3]
|
| 684 |
+
iteration = 0
|
| 685 |
+
max_iterations_without_improvement = 10
|
| 686 |
+
|
| 687 |
+
while True:
|
| 688 |
+
elapsed_time = time.time() - start_time
|
| 689 |
+
if elapsed_time >= time_limit:
|
| 690 |
+
break
|
| 691 |
+
parameter_values = generate_parameter_values(operations)
|
| 692 |
+
selected_operation, selected_parameters = select_operations_and_parameters(operations, parameter_values,
|
| 693 |
+
q_table)
|
| 694 |
+
|
| 695 |
+
# Run all producer operations if the selected_operation is a consumer operation
|
| 696 |
+
if selected_operation['operation_id'] in consumer:
|
| 697 |
+
for pname in consumer[selected_operation['operation_id']]:
|
| 698 |
+
if pname in producer:
|
| 699 |
+
for producer_operation_id in producer[pname]:
|
| 700 |
+
producer_operation = next(op for op in operations if op['operation_id'] == producer_operation_id)
|
| 701 |
+
producer_parameters = generate_parameter_values([producer_operation])[
|
| 702 |
+
producer_operation_id]
|
| 703 |
+
|
| 704 |
+
response, path, query_params, body_params = execute_operations(base_url, producer_operation, producer_parameters)
|
| 705 |
+
if (selected_operation['method'] in ["post", "get"]) and 200 <= response.status_code < 300:
|
| 706 |
+
try:
|
| 707 |
+
extract_response_values(response.json(), producer_operation)
|
| 708 |
+
except Exception:
|
| 709 |
+
pass
|
| 710 |
+
|
| 711 |
+
response, path, query_params, body_params = execute_operations(base_url, selected_operation, selected_parameters)
|
| 712 |
+
if (selected_operation['method'] in ["post", "get"]) and 200 <= response.status_code < 300:
|
| 713 |
+
try:
|
| 714 |
+
extract_response_values(response.json(), selected_operation)
|
| 715 |
+
except Exception:
|
| 716 |
+
pass
|
| 717 |
+
update_q_table(q_table, alpha, gamma, selected_operation, selected_parameters, response, path, query_params, body_params)
|
| 718 |
+
|
| 719 |
+
copied_operation = copy.deepcopy(selected_operation)
|
| 720 |
+
copied_parameters = copy.deepcopy(selected_parameters)
|
| 721 |
+
mutated_params, mutated_ops= perform_parameter_mutation(copied_parameters, copied_operation)
|
| 722 |
+
execute_operations(base_url, mutated_ops, mutated_params)
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
adapt_testing_strategy(iteration, max_iterations_without_improvement)
|
| 726 |
+
iteration += 1
|
| 727 |
+
|
| 728 |
+
if __name__ == "__main__":
|
| 729 |
+
base_url = sys.argv[2]
|
| 730 |
+
EPSILON = [0.1]
|
| 731 |
+
ss = [None]
|
| 732 |
+
total_n = [0]
|
| 733 |
+
key_matched = {}
|
| 734 |
+
post_produced = {}
|
| 735 |
+
previous_request = {}
|
| 736 |
+
response_values = {}
|
| 737 |
+
cached_media_type = {}
|
| 738 |
+
q_table_param_values = {}
|
| 739 |
+
http_500_details = {}
|
| 740 |
+
producer = {}
|
| 741 |
+
consumer = {}
|
| 742 |
+
q_value = {}
|
| 743 |
+
MUTATION_RATE = 0.1
|
| 744 |
+
main()
|
| 745 |
+
report_http_500_errors()
|
aratrl-openapi/features.yaml
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.1
|
| 2 |
+
info:
|
| 3 |
+
title: Features service
|
| 4 |
+
version: "1.0"
|
| 5 |
+
servers:
|
| 6 |
+
- url: http://localhost:30100
|
| 7 |
+
paths:
|
| 8 |
+
/products/{productName}/features:
|
| 9 |
+
get:
|
| 10 |
+
operationId: getFeaturesForProduct
|
| 11 |
+
parameters:
|
| 12 |
+
- name: productName
|
| 13 |
+
in: path
|
| 14 |
+
required: true
|
| 15 |
+
schema:
|
| 16 |
+
type: string
|
| 17 |
+
responses:
|
| 18 |
+
"200":
|
| 19 |
+
description: successful operation
|
| 20 |
+
content:
|
| 21 |
+
application/json:
|
| 22 |
+
schema:
|
| 23 |
+
uniqueItems: true
|
| 24 |
+
type: array
|
| 25 |
+
items:
|
| 26 |
+
$ref: '#/components/schemas/Feature'
|
| 27 |
+
/products/{productName}/features/{featureName}:
|
| 28 |
+
put:
|
| 29 |
+
operationId: updateFeatureOfProduct
|
| 30 |
+
parameters:
|
| 31 |
+
- name: productName
|
| 32 |
+
in: path
|
| 33 |
+
required: true
|
| 34 |
+
schema:
|
| 35 |
+
type: string
|
| 36 |
+
- name: featureName
|
| 37 |
+
in: path
|
| 38 |
+
required: true
|
| 39 |
+
schema:
|
| 40 |
+
type: string
|
| 41 |
+
requestBody:
|
| 42 |
+
content:
|
| 43 |
+
application/x-www-form-urlencoded:
|
| 44 |
+
schema:
|
| 45 |
+
type: object
|
| 46 |
+
properties:
|
| 47 |
+
description:
|
| 48 |
+
type: string
|
| 49 |
+
responses:
|
| 50 |
+
"200":
|
| 51 |
+
description: successful operation
|
| 52 |
+
content:
|
| 53 |
+
application/json:
|
| 54 |
+
schema:
|
| 55 |
+
$ref: '#/components/schemas/Feature'
|
| 56 |
+
post:
|
| 57 |
+
operationId: addFeatureToProduct
|
| 58 |
+
parameters:
|
| 59 |
+
- name: productName
|
| 60 |
+
in: path
|
| 61 |
+
required: true
|
| 62 |
+
schema:
|
| 63 |
+
type: string
|
| 64 |
+
- name: featureName
|
| 65 |
+
in: path
|
| 66 |
+
required: true
|
| 67 |
+
schema:
|
| 68 |
+
type: string
|
| 69 |
+
requestBody:
|
| 70 |
+
content:
|
| 71 |
+
application/x-www-form-urlencoded:
|
| 72 |
+
schema:
|
| 73 |
+
type: object
|
| 74 |
+
properties:
|
| 75 |
+
description:
|
| 76 |
+
type: string
|
| 77 |
+
responses:
|
| 78 |
+
default:
|
| 79 |
+
description: successful operation
|
| 80 |
+
content: {}
|
| 81 |
+
delete:
|
| 82 |
+
operationId: deleteFeatureOfProduct
|
| 83 |
+
parameters:
|
| 84 |
+
- name: productName
|
| 85 |
+
in: path
|
| 86 |
+
required: true
|
| 87 |
+
schema:
|
| 88 |
+
type: string
|
| 89 |
+
- name: featureName
|
| 90 |
+
in: path
|
| 91 |
+
required: true
|
| 92 |
+
schema:
|
| 93 |
+
type: string
|
| 94 |
+
responses:
|
| 95 |
+
default:
|
| 96 |
+
description: successful operation
|
| 97 |
+
content: {}
|
| 98 |
+
/products:
|
| 99 |
+
get:
|
| 100 |
+
operationId: getAllProducts
|
| 101 |
+
responses:
|
| 102 |
+
"200":
|
| 103 |
+
description: successful operation
|
| 104 |
+
content:
|
| 105 |
+
application/json:
|
| 106 |
+
schema:
|
| 107 |
+
type: array
|
| 108 |
+
items:
|
| 109 |
+
type: string
|
| 110 |
+
/products/{productName}:
|
| 111 |
+
get:
|
| 112 |
+
operationId: getProductByName
|
| 113 |
+
parameters:
|
| 114 |
+
- name: productName
|
| 115 |
+
in: path
|
| 116 |
+
required: true
|
| 117 |
+
schema:
|
| 118 |
+
type: string
|
| 119 |
+
responses:
|
| 120 |
+
"200":
|
| 121 |
+
description: successful operation
|
| 122 |
+
content:
|
| 123 |
+
application/json:
|
| 124 |
+
schema:
|
| 125 |
+
$ref: '#/components/schemas/Product'
|
| 126 |
+
post:
|
| 127 |
+
operationId: addProduct
|
| 128 |
+
parameters:
|
| 129 |
+
- name: productName
|
| 130 |
+
in: path
|
| 131 |
+
required: true
|
| 132 |
+
schema:
|
| 133 |
+
type: string
|
| 134 |
+
responses:
|
| 135 |
+
default:
|
| 136 |
+
description: successful operation
|
| 137 |
+
content: {}
|
| 138 |
+
delete:
|
| 139 |
+
operationId: deleteProductByName
|
| 140 |
+
parameters:
|
| 141 |
+
- name: productName
|
| 142 |
+
in: path
|
| 143 |
+
required: true
|
| 144 |
+
schema:
|
| 145 |
+
type: string
|
| 146 |
+
responses:
|
| 147 |
+
default:
|
| 148 |
+
description: successful operation
|
| 149 |
+
content: {}
|
| 150 |
+
/products/{productName}/configurations/{configurationName}:
|
| 151 |
+
get:
|
| 152 |
+
operationId: getConfigurationWithNameForProduct
|
| 153 |
+
parameters:
|
| 154 |
+
- name: productName
|
| 155 |
+
in: path
|
| 156 |
+
required: true
|
| 157 |
+
schema:
|
| 158 |
+
type: string
|
| 159 |
+
- name: configurationName
|
| 160 |
+
in: path
|
| 161 |
+
required: true
|
| 162 |
+
schema:
|
| 163 |
+
type: string
|
| 164 |
+
responses:
|
| 165 |
+
"200":
|
| 166 |
+
description: successful operation
|
| 167 |
+
content:
|
| 168 |
+
application/json:
|
| 169 |
+
schema:
|
| 170 |
+
$ref: '#/components/schemas/ProductConfiguration'
|
| 171 |
+
post:
|
| 172 |
+
operationId: addConfiguration
|
| 173 |
+
parameters:
|
| 174 |
+
- name: productName
|
| 175 |
+
in: path
|
| 176 |
+
required: true
|
| 177 |
+
schema:
|
| 178 |
+
type: string
|
| 179 |
+
- name: configurationName
|
| 180 |
+
in: path
|
| 181 |
+
required: true
|
| 182 |
+
schema:
|
| 183 |
+
type: string
|
| 184 |
+
responses:
|
| 185 |
+
default:
|
| 186 |
+
description: successful operation
|
| 187 |
+
content: {}
|
| 188 |
+
delete:
|
| 189 |
+
operationId: deleteConfiguration
|
| 190 |
+
parameters:
|
| 191 |
+
- name: productName
|
| 192 |
+
in: path
|
| 193 |
+
required: true
|
| 194 |
+
schema:
|
| 195 |
+
type: string
|
| 196 |
+
- name: configurationName
|
| 197 |
+
in: path
|
| 198 |
+
required: true
|
| 199 |
+
schema:
|
| 200 |
+
type: string
|
| 201 |
+
responses:
|
| 202 |
+
default:
|
| 203 |
+
description: successful operation
|
| 204 |
+
content: {}
|
| 205 |
+
/products/{productName}/configurations:
|
| 206 |
+
get:
|
| 207 |
+
operationId: getConfigurationsForProduct
|
| 208 |
+
parameters:
|
| 209 |
+
- name: productName
|
| 210 |
+
in: path
|
| 211 |
+
required: true
|
| 212 |
+
schema:
|
| 213 |
+
type: string
|
| 214 |
+
responses:
|
| 215 |
+
"200":
|
| 216 |
+
description: successful operation
|
| 217 |
+
content:
|
| 218 |
+
application/json:
|
| 219 |
+
schema:
|
| 220 |
+
type: array
|
| 221 |
+
items:
|
| 222 |
+
type: string
|
| 223 |
+
/products/{productName}/configurations/{configurationName}/features/{featureName}:
|
| 224 |
+
post:
|
| 225 |
+
operationId: addFeatureToConfiguration
|
| 226 |
+
parameters:
|
| 227 |
+
- name: productName
|
| 228 |
+
in: path
|
| 229 |
+
required: true
|
| 230 |
+
schema:
|
| 231 |
+
type: string
|
| 232 |
+
- name: configurationName
|
| 233 |
+
in: path
|
| 234 |
+
required: true
|
| 235 |
+
schema:
|
| 236 |
+
type: string
|
| 237 |
+
- name: featureName
|
| 238 |
+
in: path
|
| 239 |
+
required: true
|
| 240 |
+
schema:
|
| 241 |
+
type: string
|
| 242 |
+
responses:
|
| 243 |
+
default:
|
| 244 |
+
description: successful operation
|
| 245 |
+
content: {}
|
| 246 |
+
delete:
|
| 247 |
+
operationId: deleteFeature
|
| 248 |
+
parameters:
|
| 249 |
+
- name: productName
|
| 250 |
+
in: path
|
| 251 |
+
required: true
|
| 252 |
+
schema:
|
| 253 |
+
type: string
|
| 254 |
+
- name: configurationName
|
| 255 |
+
in: path
|
| 256 |
+
required: true
|
| 257 |
+
schema:
|
| 258 |
+
type: string
|
| 259 |
+
- name: featureName
|
| 260 |
+
in: path
|
| 261 |
+
required: true
|
| 262 |
+
schema:
|
| 263 |
+
type: string
|
| 264 |
+
responses:
|
| 265 |
+
default:
|
| 266 |
+
description: successful operation
|
| 267 |
+
content: {}
|
| 268 |
+
/products/{productName}/configurations/{configurationName}/features:
|
| 269 |
+
get:
|
| 270 |
+
operationId: getConfigurationActivedFeatures
|
| 271 |
+
parameters:
|
| 272 |
+
- name: productName
|
| 273 |
+
in: path
|
| 274 |
+
required: true
|
| 275 |
+
schema:
|
| 276 |
+
type: string
|
| 277 |
+
- name: configurationName
|
| 278 |
+
in: path
|
| 279 |
+
required: true
|
| 280 |
+
schema:
|
| 281 |
+
type: string
|
| 282 |
+
responses:
|
| 283 |
+
"200":
|
| 284 |
+
description: successful operation
|
| 285 |
+
content:
|
| 286 |
+
application/json:
|
| 287 |
+
schema:
|
| 288 |
+
type: array
|
| 289 |
+
items:
|
| 290 |
+
type: string
|
| 291 |
+
/products/{productName}/constraints/{constraintId}:
|
| 292 |
+
delete:
|
| 293 |
+
operationId: deleteConstraint
|
| 294 |
+
parameters:
|
| 295 |
+
- name: productName
|
| 296 |
+
in: path
|
| 297 |
+
required: true
|
| 298 |
+
schema:
|
| 299 |
+
type: string
|
| 300 |
+
- name: constraintId
|
| 301 |
+
in: path
|
| 302 |
+
required: true
|
| 303 |
+
schema:
|
| 304 |
+
type: integer
|
| 305 |
+
format: int64
|
| 306 |
+
responses:
|
| 307 |
+
default:
|
| 308 |
+
description: successful operation
|
| 309 |
+
content: {}
|
| 310 |
+
/products/{productName}/constraints/requires:
|
| 311 |
+
post:
|
| 312 |
+
operationId: addRequiresConstraintToProduct
|
| 313 |
+
parameters:
|
| 314 |
+
- name: productName
|
| 315 |
+
in: path
|
| 316 |
+
required: true
|
| 317 |
+
schema:
|
| 318 |
+
type: string
|
| 319 |
+
requestBody:
|
| 320 |
+
content:
|
| 321 |
+
application/x-www-form-urlencoded:
|
| 322 |
+
schema:
|
| 323 |
+
type: object
|
| 324 |
+
properties:
|
| 325 |
+
sourceFeature:
|
| 326 |
+
type: string
|
| 327 |
+
requiredFeature:
|
| 328 |
+
type: string
|
| 329 |
+
responses:
|
| 330 |
+
default:
|
| 331 |
+
description: successful operation
|
| 332 |
+
content: {}
|
| 333 |
+
/products/{productName}/constraints/excludes:
|
| 334 |
+
post:
|
| 335 |
+
operationId: addExcludesConstraintToProduct
|
| 336 |
+
parameters:
|
| 337 |
+
- name: productName
|
| 338 |
+
in: path
|
| 339 |
+
required: true
|
| 340 |
+
schema:
|
| 341 |
+
type: string
|
| 342 |
+
requestBody:
|
| 343 |
+
content:
|
| 344 |
+
application/x-www-form-urlencoded:
|
| 345 |
+
schema:
|
| 346 |
+
type: object
|
| 347 |
+
properties:
|
| 348 |
+
sourceFeature:
|
| 349 |
+
type: string
|
| 350 |
+
excludedFeature:
|
| 351 |
+
type: string
|
| 352 |
+
responses:
|
| 353 |
+
default:
|
| 354 |
+
description: successful operation
|
| 355 |
+
content: {}
|
| 356 |
+
components:
|
| 357 |
+
schemas:
|
| 358 |
+
Feature:
|
| 359 |
+
type: object
|
| 360 |
+
properties:
|
| 361 |
+
id:
|
| 362 |
+
type: integer
|
| 363 |
+
format: int64
|
| 364 |
+
name:
|
| 365 |
+
type: string
|
| 366 |
+
description:
|
| 367 |
+
type: string
|
| 368 |
+
FeatureConstraint:
|
| 369 |
+
type: object
|
| 370 |
+
properties:
|
| 371 |
+
id:
|
| 372 |
+
type: integer
|
| 373 |
+
format: int64
|
| 374 |
+
type:
|
| 375 |
+
type: string
|
| 376 |
+
Product:
|
| 377 |
+
type: object
|
| 378 |
+
properties:
|
| 379 |
+
id:
|
| 380 |
+
type: integer
|
| 381 |
+
format: int64
|
| 382 |
+
name:
|
| 383 |
+
type: string
|
| 384 |
+
features:
|
| 385 |
+
uniqueItems: true
|
| 386 |
+
type: array
|
| 387 |
+
readOnly: true
|
| 388 |
+
items:
|
| 389 |
+
$ref: '#/components/schemas/Feature'
|
| 390 |
+
constraints:
|
| 391 |
+
uniqueItems: true
|
| 392 |
+
type: array
|
| 393 |
+
readOnly: true
|
| 394 |
+
items:
|
| 395 |
+
$ref: '#/components/schemas/FeatureConstraint'
|
| 396 |
+
ProductConfiguration:
|
| 397 |
+
type: object
|
| 398 |
+
properties:
|
| 399 |
+
name:
|
| 400 |
+
type: string
|
| 401 |
+
valid:
|
| 402 |
+
type: boolean
|
| 403 |
+
activedFeatures:
|
| 404 |
+
uniqueItems: true
|
| 405 |
+
type: array
|
| 406 |
+
items:
|
| 407 |
+
$ref: '#/components/schemas/Feature'
|
| 408 |
+
x-original-swagger-version: "2.0"
|
aratrl-openapi/genome.yaml
ADDED
|
@@ -0,0 +1,2535 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.1
|
| 2 |
+
info:
|
| 3 |
+
title: Genome Nexus API
|
| 4 |
+
description: |-
|
| 5 |
+
This page shows how to use HTTP requests to access the Genome Nexus API. There are more high level clients available in Python, R, JavaScript, TypeScript and various other languages as well as a command line client to annotate MAF and VCF. See https://docs.genomenexus.org/api.
|
| 6 |
+
|
| 7 |
+
Aside from programmatic clients there are web based tools to annotate variants, see https://docs.genomenexus.org/tools.
|
| 8 |
+
|
| 9 |
+
We currently only provide long-term support for the '/annotation' endpoint. The other endpoints might change.
|
| 10 |
+
license:
|
| 11 |
+
name: MIT License
|
| 12 |
+
url: https://github.com/genome-nexus/genome-nexus/blob/master/LICENSE
|
| 13 |
+
version: "2.0"
|
| 14 |
+
servers:
|
| 15 |
+
- url: http://localhost:30110
|
| 16 |
+
- url: https://localhost:30110/
|
| 17 |
+
tags:
|
| 18 |
+
- name: info-controller
|
| 19 |
+
description: Info Controller
|
| 20 |
+
- name: pdb-controller
|
| 21 |
+
description: PDB Controller
|
| 22 |
+
- name: annotation-controller
|
| 23 |
+
description: Annotation Controller
|
| 24 |
+
- name: ptm-controller
|
| 25 |
+
description: PTM Controller
|
| 26 |
+
- name: pfam-controller
|
| 27 |
+
description: PFAM Controller
|
| 28 |
+
- name: ensembl-controller
|
| 29 |
+
description: Ensembl Controller
|
| 30 |
+
paths:
|
| 31 |
+
/annotation:
|
| 32 |
+
post:
|
| 33 |
+
tags:
|
| 34 |
+
- annotation-controller
|
| 35 |
+
summary: Retrieves VEP annotation for the provided list of variants
|
| 36 |
+
operationId: fetchVariantAnnotationPOST
|
| 37 |
+
parameters:
|
| 38 |
+
- name: isoformOverrideSource
|
| 39 |
+
in: query
|
| 40 |
+
description: Isoform override source. For example uniprot
|
| 41 |
+
schema:
|
| 42 |
+
type: string
|
| 43 |
+
- name: token
|
| 44 |
+
in: query
|
| 45 |
+
description: "Map of tokens. For example {\"source1\":\"put-your-token1-here\"\
|
| 46 |
+
,\"source2\":\"put-your-token2-here\"}"
|
| 47 |
+
schema:
|
| 48 |
+
type: string
|
| 49 |
+
- name: fields
|
| 50 |
+
in: query
|
| 51 |
+
description: "Comma separated list of fields to include (case-sensitive!).\
|
| 52 |
+
\ For example: hotspots"
|
| 53 |
+
style: form
|
| 54 |
+
explode: true
|
| 55 |
+
schema:
|
| 56 |
+
type: array
|
| 57 |
+
items:
|
| 58 |
+
type: string
|
| 59 |
+
default: hotspots
|
| 60 |
+
requestBody:
|
| 61 |
+
description: "List of variants. For example [\"X:g.66937331T>A\",\"17:g.41242962_41242963insGA\"\
|
| 62 |
+
] (GRCh37) or [\"1:g.182712A>C\", \"2:g.265023C>T\", \"3:g.319781del\",\
|
| 63 |
+
\ \"19:g.110753dup\", \"1:g.1385015_1387562del\"] (GRCh38)"
|
| 64 |
+
content:
|
| 65 |
+
application/json:
|
| 66 |
+
schema:
|
| 67 |
+
type: array
|
| 68 |
+
items:
|
| 69 |
+
type: string
|
| 70 |
+
required: true
|
| 71 |
+
responses:
|
| 72 |
+
"200":
|
| 73 |
+
description: OK
|
| 74 |
+
content:
|
| 75 |
+
application/json:
|
| 76 |
+
schema:
|
| 77 |
+
type: array
|
| 78 |
+
items:
|
| 79 |
+
$ref: '#/components/schemas/VariantAnnotation'
|
| 80 |
+
x-codegen-request-body-name: variants
|
| 81 |
+
/annotation/dbsnp/:
|
| 82 |
+
post:
|
| 83 |
+
tags:
|
| 84 |
+
- annotation-controller
|
| 85 |
+
summary: Retrieves VEP annotation for the provided list of dbSNP ids
|
| 86 |
+
operationId: fetchVariantAnnotationByIdPOST
|
| 87 |
+
parameters:
|
| 88 |
+
- name: isoformOverrideSource
|
| 89 |
+
in: query
|
| 90 |
+
description: Isoform override source. For example uniprot
|
| 91 |
+
schema:
|
| 92 |
+
type: string
|
| 93 |
+
- name: token
|
| 94 |
+
in: query
|
| 95 |
+
description: "Map of tokens. For example {\"source1\":\"put-your-token1-here\"\
|
| 96 |
+
,\"source2\":\"put-your-token2-here\"}"
|
| 97 |
+
schema:
|
| 98 |
+
type: string
|
| 99 |
+
- name: fields
|
| 100 |
+
in: query
|
| 101 |
+
description: "Comma separated list of fields to include (case-sensitive!).\
|
| 102 |
+
\ For example: annotation_summary"
|
| 103 |
+
style: form
|
| 104 |
+
explode: true
|
| 105 |
+
schema:
|
| 106 |
+
type: array
|
| 107 |
+
items:
|
| 108 |
+
type: string
|
| 109 |
+
default: annotation_summary
|
| 110 |
+
requestBody:
|
| 111 |
+
description: "List of variant IDs. For example [\"rs116035550\"]"
|
| 112 |
+
content:
|
| 113 |
+
application/json:
|
| 114 |
+
schema:
|
| 115 |
+
type: array
|
| 116 |
+
items:
|
| 117 |
+
type: string
|
| 118 |
+
required: true
|
| 119 |
+
responses:
|
| 120 |
+
"200":
|
| 121 |
+
description: OK
|
| 122 |
+
content:
|
| 123 |
+
application/json:
|
| 124 |
+
schema:
|
| 125 |
+
type: array
|
| 126 |
+
items:
|
| 127 |
+
$ref: '#/components/schemas/VariantAnnotation'
|
| 128 |
+
x-codegen-request-body-name: variantIds
|
| 129 |
+
/annotation/dbsnp/{variantId}:
|
| 130 |
+
get:
|
| 131 |
+
tags:
|
| 132 |
+
- annotation-controller
|
| 133 |
+
summary: Retrieves VEP annotation for the give dbSNP id
|
| 134 |
+
operationId: fetchVariantAnnotationByIdGET
|
| 135 |
+
parameters:
|
| 136 |
+
- name: variantId
|
| 137 |
+
in: path
|
| 138 |
+
description: dbSNP id. For example rs116035550.
|
| 139 |
+
required: true
|
| 140 |
+
schema:
|
| 141 |
+
type: string
|
| 142 |
+
- name: isoformOverrideSource
|
| 143 |
+
in: query
|
| 144 |
+
description: Isoform override source. For example uniprot
|
| 145 |
+
schema:
|
| 146 |
+
type: string
|
| 147 |
+
- name: token
|
| 148 |
+
in: query
|
| 149 |
+
description: "Map of tokens. For example {\"source1\":\"put-your-token1-here\"\
|
| 150 |
+
,\"source2\":\"put-your-token2-here\"}"
|
| 151 |
+
schema:
|
| 152 |
+
type: string
|
| 153 |
+
- name: fields
|
| 154 |
+
in: query
|
| 155 |
+
description: "Comma separated list of fields to include (case-sensitive!).\
|
| 156 |
+
\ For example: annotation_summary"
|
| 157 |
+
style: form
|
| 158 |
+
explode: true
|
| 159 |
+
schema:
|
| 160 |
+
type: array
|
| 161 |
+
items:
|
| 162 |
+
type: string
|
| 163 |
+
default: annotation_summary
|
| 164 |
+
responses:
|
| 165 |
+
"200":
|
| 166 |
+
description: OK
|
| 167 |
+
content:
|
| 168 |
+
application/json:
|
| 169 |
+
schema:
|
| 170 |
+
$ref: '#/components/schemas/VariantAnnotation'
|
| 171 |
+
/annotation/genomic:
|
| 172 |
+
post:
|
| 173 |
+
tags:
|
| 174 |
+
- annotation-controller
|
| 175 |
+
summary: Retrieves VEP annotation for the provided list of genomic locations
|
| 176 |
+
operationId: fetchVariantAnnotationByGenomicLocationPOST
|
| 177 |
+
parameters:
|
| 178 |
+
- name: isoformOverrideSource
|
| 179 |
+
in: query
|
| 180 |
+
description: Isoform override source. For example uniprot
|
| 181 |
+
schema:
|
| 182 |
+
type: string
|
| 183 |
+
- name: token
|
| 184 |
+
in: query
|
| 185 |
+
description: "Map of tokens. For example {\"source1\":\"put-your-token1-here\"\
|
| 186 |
+
,\"source2\":\"put-your-token2-here\"}"
|
| 187 |
+
schema:
|
| 188 |
+
type: string
|
| 189 |
+
- name: fields
|
| 190 |
+
in: query
|
| 191 |
+
description: "Comma separated list of fields to include (case-sensitive!).\
|
| 192 |
+
\ For example: hotspots"
|
| 193 |
+
style: form
|
| 194 |
+
explode: true
|
| 195 |
+
schema:
|
| 196 |
+
type: array
|
| 197 |
+
items:
|
| 198 |
+
type: string
|
| 199 |
+
default: hotspots
|
| 200 |
+
requestBody:
|
| 201 |
+
description: List of Genomic Locations
|
| 202 |
+
content:
|
| 203 |
+
application/json:
|
| 204 |
+
schema:
|
| 205 |
+
type: array
|
| 206 |
+
items:
|
| 207 |
+
$ref: '#/components/schemas/GenomicLocation'
|
| 208 |
+
required: true
|
| 209 |
+
responses:
|
| 210 |
+
"200":
|
| 211 |
+
description: OK
|
| 212 |
+
content:
|
| 213 |
+
application/json:
|
| 214 |
+
schema:
|
| 215 |
+
type: array
|
| 216 |
+
items:
|
| 217 |
+
$ref: '#/components/schemas/VariantAnnotation'
|
| 218 |
+
x-codegen-request-body-name: genomicLocations
|
| 219 |
+
/annotation/genomic/{genomicLocation}:
|
| 220 |
+
get:
|
| 221 |
+
tags:
|
| 222 |
+
- annotation-controller
|
| 223 |
+
summary: Retrieves VEP annotation for the provided genomic location
|
| 224 |
+
operationId: fetchVariantAnnotationByGenomicLocationGET
|
| 225 |
+
parameters:
|
| 226 |
+
- name: genomicLocation
|
| 227 |
+
in: path
|
| 228 |
+
description: "A genomic location. For example 7,140453136,140453136,A,T"
|
| 229 |
+
required: true
|
| 230 |
+
schema:
|
| 231 |
+
type: string
|
| 232 |
+
- name: isoformOverrideSource
|
| 233 |
+
in: query
|
| 234 |
+
description: Isoform override source. For example uniprot
|
| 235 |
+
schema:
|
| 236 |
+
type: string
|
| 237 |
+
- name: token
|
| 238 |
+
in: query
|
| 239 |
+
description: "Map of tokens. For example {\"source1\":\"put-your-token1-here\"\
|
| 240 |
+
,\"source2\":\"put-your-token2-here\"}"
|
| 241 |
+
schema:
|
| 242 |
+
type: string
|
| 243 |
+
- name: fields
|
| 244 |
+
in: query
|
| 245 |
+
description: "Comma separated list of fields to include (case-sensitive!).\
|
| 246 |
+
\ For example: hotspots"
|
| 247 |
+
style: form
|
| 248 |
+
explode: true
|
| 249 |
+
schema:
|
| 250 |
+
type: array
|
| 251 |
+
items:
|
| 252 |
+
type: string
|
| 253 |
+
default: hotspots
|
| 254 |
+
responses:
|
| 255 |
+
"200":
|
| 256 |
+
description: OK
|
| 257 |
+
content:
|
| 258 |
+
application/json:
|
| 259 |
+
schema:
|
| 260 |
+
$ref: '#/components/schemas/VariantAnnotation'
|
| 261 |
+
/annotation/{variant}:
|
| 262 |
+
get:
|
| 263 |
+
tags:
|
| 264 |
+
- annotation-controller
|
| 265 |
+
summary: Retrieves VEP annotation for the provided variant
|
| 266 |
+
operationId: fetchVariantAnnotationGET
|
| 267 |
+
parameters:
|
| 268 |
+
- name: variant
|
| 269 |
+
in: path
|
| 270 |
+
description: Variant. For example 17:g.41242962_41242963insGA
|
| 271 |
+
required: true
|
| 272 |
+
schema:
|
| 273 |
+
type: string
|
| 274 |
+
- name: isoformOverrideSource
|
| 275 |
+
in: query
|
| 276 |
+
description: Isoform override source. For example uniprot
|
| 277 |
+
schema:
|
| 278 |
+
type: string
|
| 279 |
+
- name: token
|
| 280 |
+
in: query
|
| 281 |
+
description: "Map of tokens. For example {\"source1\":\"put-your-token1-here\"\
|
| 282 |
+
,\"source2\":\"put-your-token2-here\"}"
|
| 283 |
+
schema:
|
| 284 |
+
type: string
|
| 285 |
+
- name: fields
|
| 286 |
+
in: query
|
| 287 |
+
description: "Comma separated list of fields to include (case-sensitive!).\
|
| 288 |
+
\ For example: hotspots"
|
| 289 |
+
style: form
|
| 290 |
+
explode: true
|
| 291 |
+
schema:
|
| 292 |
+
type: array
|
| 293 |
+
items:
|
| 294 |
+
type: string
|
| 295 |
+
default: hotspots
|
| 296 |
+
responses:
|
| 297 |
+
"200":
|
| 298 |
+
description: OK
|
| 299 |
+
content:
|
| 300 |
+
application/json:
|
| 301 |
+
schema:
|
| 302 |
+
$ref: '#/components/schemas/VariantAnnotation'
|
| 303 |
+
/ensembl/canonical-gene/entrez:
|
| 304 |
+
post:
|
| 305 |
+
tags:
|
| 306 |
+
- ensembl-controller
|
| 307 |
+
summary: Retrieves canonical Ensembl Gene ID by Entrez Gene Ids
|
| 308 |
+
operationId: fetchCanonicalEnsemblGeneIdByEntrezGeneIdsPOST
|
| 309 |
+
requestBody:
|
| 310 |
+
description: "List of Entrez Gene Ids. For example [\"23140\",\"26009\",\"\
|
| 311 |
+
100131879\"]"
|
| 312 |
+
content:
|
| 313 |
+
application/json:
|
| 314 |
+
schema:
|
| 315 |
+
type: array
|
| 316 |
+
items:
|
| 317 |
+
type: string
|
| 318 |
+
required: true
|
| 319 |
+
responses:
|
| 320 |
+
"200":
|
| 321 |
+
description: OK
|
| 322 |
+
content:
|
| 323 |
+
application/json:
|
| 324 |
+
schema:
|
| 325 |
+
type: array
|
| 326 |
+
items:
|
| 327 |
+
$ref: '#/components/schemas/EnsemblGene'
|
| 328 |
+
x-codegen-request-body-name: entrezGeneIds
|
| 329 |
+
/ensembl/canonical-gene/entrez/{entrezGeneId}:
|
| 330 |
+
get:
|
| 331 |
+
tags:
|
| 332 |
+
- ensembl-controller
|
| 333 |
+
summary: Retrieves Ensembl canonical gene id by Entrez Gene Id
|
| 334 |
+
operationId: fetchCanonicalEnsemblGeneIdByEntrezGeneIdGET
|
| 335 |
+
parameters:
|
| 336 |
+
- name: entrezGeneId
|
| 337 |
+
in: path
|
| 338 |
+
description: An Entrez Gene Id. For example 23140
|
| 339 |
+
required: true
|
| 340 |
+
schema:
|
| 341 |
+
type: string
|
| 342 |
+
responses:
|
| 343 |
+
"200":
|
| 344 |
+
description: OK
|
| 345 |
+
content:
|
| 346 |
+
application/json:
|
| 347 |
+
schema:
|
| 348 |
+
$ref: '#/components/schemas/EnsemblGene'
|
| 349 |
+
/ensembl/canonical-gene/hgnc:
|
| 350 |
+
post:
|
| 351 |
+
tags:
|
| 352 |
+
- ensembl-controller
|
| 353 |
+
summary: Retrieves canonical Ensembl Gene ID by Hugo Symbols
|
| 354 |
+
operationId: fetchCanonicalEnsemblGeneIdByHugoSymbolsPOST
|
| 355 |
+
requestBody:
|
| 356 |
+
description: "List of Hugo Symbols. For example [\"TP53\",\"PIK3CA\",\"BRCA1\"\
|
| 357 |
+
]"
|
| 358 |
+
content:
|
| 359 |
+
application/json:
|
| 360 |
+
schema:
|
| 361 |
+
type: array
|
| 362 |
+
items:
|
| 363 |
+
type: string
|
| 364 |
+
required: true
|
| 365 |
+
responses:
|
| 366 |
+
"200":
|
| 367 |
+
description: OK
|
| 368 |
+
content:
|
| 369 |
+
application/json:
|
| 370 |
+
schema:
|
| 371 |
+
type: array
|
| 372 |
+
items:
|
| 373 |
+
$ref: '#/components/schemas/EnsemblGene'
|
| 374 |
+
x-codegen-request-body-name: hugoSymbols
|
| 375 |
+
/ensembl/canonical-gene/hgnc/{hugoSymbol}:
|
| 376 |
+
get:
|
| 377 |
+
tags:
|
| 378 |
+
- ensembl-controller
|
| 379 |
+
summary: Retrieves Ensembl canonical gene id by Hugo Symbol
|
| 380 |
+
operationId: fetchCanonicalEnsemblGeneIdByHugoSymbolGET
|
| 381 |
+
parameters:
|
| 382 |
+
- name: hugoSymbol
|
| 383 |
+
in: path
|
| 384 |
+
description: A Hugo Symbol. For example TP53
|
| 385 |
+
required: true
|
| 386 |
+
schema:
|
| 387 |
+
type: string
|
| 388 |
+
responses:
|
| 389 |
+
"200":
|
| 390 |
+
description: OK
|
| 391 |
+
content:
|
| 392 |
+
application/json:
|
| 393 |
+
schema:
|
| 394 |
+
$ref: '#/components/schemas/EnsemblGene'
|
| 395 |
+
/ensembl/canonical-transcript/hgnc:
|
| 396 |
+
post:
|
| 397 |
+
tags:
|
| 398 |
+
- ensembl-controller
|
| 399 |
+
summary: Retrieves Ensembl canonical transcripts by Hugo Symbols
|
| 400 |
+
operationId: fetchCanonicalEnsemblTranscriptsByHugoSymbolsPOST
|
| 401 |
+
parameters:
|
| 402 |
+
- name: isoformOverrideSource
|
| 403 |
+
in: query
|
| 404 |
+
description: Isoform override source. For example uniprot
|
| 405 |
+
schema:
|
| 406 |
+
type: string
|
| 407 |
+
default: uniprot
|
| 408 |
+
requestBody:
|
| 409 |
+
description: "List of Hugo Symbols. For example [\"TP53\",\"PIK3CA\",\"BRCA1\"\
|
| 410 |
+
]"
|
| 411 |
+
content:
|
| 412 |
+
application/json:
|
| 413 |
+
schema:
|
| 414 |
+
type: array
|
| 415 |
+
items:
|
| 416 |
+
type: string
|
| 417 |
+
required: true
|
| 418 |
+
responses:
|
| 419 |
+
"200":
|
| 420 |
+
description: OK
|
| 421 |
+
content:
|
| 422 |
+
application/json:
|
| 423 |
+
schema:
|
| 424 |
+
type: array
|
| 425 |
+
items:
|
| 426 |
+
$ref: '#/components/schemas/EnsemblTranscript'
|
| 427 |
+
x-codegen-request-body-name: hugoSymbols
|
| 428 |
+
/ensembl/canonical-transcript/hgnc/{hugoSymbol}:
|
| 429 |
+
get:
|
| 430 |
+
tags:
|
| 431 |
+
- ensembl-controller
|
| 432 |
+
summary: Retrieves Ensembl canonical transcript by Hugo Symbol
|
| 433 |
+
operationId: fetchCanonicalEnsemblTranscriptByHugoSymbolGET
|
| 434 |
+
parameters:
|
| 435 |
+
- name: hugoSymbol
|
| 436 |
+
in: path
|
| 437 |
+
description: A Hugo Symbol. For example TP53
|
| 438 |
+
required: true
|
| 439 |
+
schema:
|
| 440 |
+
type: string
|
| 441 |
+
- name: isoformOverrideSource
|
| 442 |
+
in: query
|
| 443 |
+
description: Isoform override source. For example uniprot
|
| 444 |
+
schema:
|
| 445 |
+
type: string
|
| 446 |
+
default: uniprot
|
| 447 |
+
responses:
|
| 448 |
+
"200":
|
| 449 |
+
description: OK
|
| 450 |
+
content:
|
| 451 |
+
application/json:
|
| 452 |
+
schema:
|
| 453 |
+
$ref: '#/components/schemas/EnsemblTranscript'
|
| 454 |
+
/ensembl/transcript:
|
| 455 |
+
get:
|
| 456 |
+
tags:
|
| 457 |
+
- ensembl-controller
|
| 458 |
+
summary: "Retrieves Ensembl Transcripts by protein ID, and gene ID. Retrieves\
|
| 459 |
+
\ all transcripts in case no query parameter provided"
|
| 460 |
+
operationId: fetchEnsemblTranscriptsGET
|
| 461 |
+
parameters:
|
| 462 |
+
- name: geneId
|
| 463 |
+
in: query
|
| 464 |
+
description: An Ensembl gene ID. For example ENSG00000136999
|
| 465 |
+
schema:
|
| 466 |
+
type: string
|
| 467 |
+
- name: proteinId
|
| 468 |
+
in: query
|
| 469 |
+
description: An Ensembl protein ID. For example ENSP00000439985
|
| 470 |
+
schema:
|
| 471 |
+
type: string
|
| 472 |
+
- name: hugoSymbol
|
| 473 |
+
in: query
|
| 474 |
+
description: A Hugo Symbol For example ARF5
|
| 475 |
+
schema:
|
| 476 |
+
type: string
|
| 477 |
+
responses:
|
| 478 |
+
"200":
|
| 479 |
+
description: OK
|
| 480 |
+
content:
|
| 481 |
+
application/json:
|
| 482 |
+
schema:
|
| 483 |
+
type: array
|
| 484 |
+
items:
|
| 485 |
+
$ref: '#/components/schemas/EnsemblTranscript'
|
| 486 |
+
post:
|
| 487 |
+
tags:
|
| 488 |
+
- ensembl-controller
|
| 489 |
+
summary: "Retrieves Ensembl Transcripts by Ensembl transcript IDs, hugo Symbols,\
|
| 490 |
+
\ protein IDs, or gene IDs"
|
| 491 |
+
operationId: fetchEnsemblTranscriptsByEnsemblFilterPOST
|
| 492 |
+
requestBody:
|
| 493 |
+
description: "List of Ensembl transcript IDs. For example [\"ENST00000361390\"\
|
| 494 |
+
, \"ENST00000361453\", \"ENST00000361624\"]<br>OR<br>List of Hugo Symbols.\
|
| 495 |
+
\ For example [\"TP53\", \"PIK3CA\", \"BRCA1\"]<br>OR<br>List of Ensembl\
|
| 496 |
+
\ protein IDs. For example [\"ENSP00000439985\", \"ENSP00000478460\", \"\
|
| 497 |
+
ENSP00000346196\"]<br>OR<br>List of Ensembl gene IDs. For example [\"ENSG00000136999\"\
|
| 498 |
+
, \"ENSG00000272398\", \"ENSG00000198695\"]"
|
| 499 |
+
content:
|
| 500 |
+
application/json:
|
| 501 |
+
schema:
|
| 502 |
+
$ref: '#/components/schemas/EnsemblFilter'
|
| 503 |
+
required: true
|
| 504 |
+
responses:
|
| 505 |
+
"200":
|
| 506 |
+
description: OK
|
| 507 |
+
content:
|
| 508 |
+
application/json:
|
| 509 |
+
schema:
|
| 510 |
+
type: array
|
| 511 |
+
items:
|
| 512 |
+
$ref: '#/components/schemas/EnsemblTranscript'
|
| 513 |
+
x-codegen-request-body-name: ensemblFilter
|
| 514 |
+
/ensembl/transcript/{transcriptId}:
|
| 515 |
+
get:
|
| 516 |
+
tags:
|
| 517 |
+
- ensembl-controller
|
| 518 |
+
summary: Retrieves the transcript by an Ensembl transcript ID
|
| 519 |
+
operationId: fetchEnsemblTranscriptByTranscriptIdGET
|
| 520 |
+
parameters:
|
| 521 |
+
- name: transcriptId
|
| 522 |
+
in: path
|
| 523 |
+
description: An Ensembl transcript ID. For example ENST00000361390
|
| 524 |
+
required: true
|
| 525 |
+
schema:
|
| 526 |
+
type: string
|
| 527 |
+
responses:
|
| 528 |
+
"200":
|
| 529 |
+
description: OK
|
| 530 |
+
content:
|
| 531 |
+
application/json:
|
| 532 |
+
schema:
|
| 533 |
+
$ref: '#/components/schemas/EnsemblTranscript'
|
| 534 |
+
/ensembl/xrefs:
|
| 535 |
+
get:
|
| 536 |
+
tags:
|
| 537 |
+
- ensembl-controller
|
| 538 |
+
summary: Perform lookups of Ensembl identifiers and retrieve their external
|
| 539 |
+
references in other databases
|
| 540 |
+
operationId: fetchGeneXrefsGET
|
| 541 |
+
parameters:
|
| 542 |
+
- name: accession
|
| 543 |
+
in: query
|
| 544 |
+
description: Ensembl gene accession. For example ENSG00000169083
|
| 545 |
+
required: true
|
| 546 |
+
schema:
|
| 547 |
+
type: string
|
| 548 |
+
responses:
|
| 549 |
+
"200":
|
| 550 |
+
description: OK
|
| 551 |
+
content:
|
| 552 |
+
application/json:
|
| 553 |
+
schema:
|
| 554 |
+
type: array
|
| 555 |
+
items:
|
| 556 |
+
$ref: '#/components/schemas/GeneXref'
|
| 557 |
+
/pdb/header:
|
| 558 |
+
post:
|
| 559 |
+
tags:
|
| 560 |
+
- pdb-controller
|
| 561 |
+
summary: Retrieves PDB header info by a PDB id
|
| 562 |
+
operationId: fetchPdbHeaderPOST
|
| 563 |
+
requestBody:
|
| 564 |
+
description: "List of pdb ids, for example [\"1a37\",\"1a4o\"]"
|
| 565 |
+
content:
|
| 566 |
+
application/json:
|
| 567 |
+
schema:
|
| 568 |
+
type: array
|
| 569 |
+
items:
|
| 570 |
+
type: string
|
| 571 |
+
required: true
|
| 572 |
+
responses:
|
| 573 |
+
"200":
|
| 574 |
+
description: OK
|
| 575 |
+
content:
|
| 576 |
+
application/json:
|
| 577 |
+
schema:
|
| 578 |
+
type: array
|
| 579 |
+
items:
|
| 580 |
+
$ref: '#/components/schemas/PdbHeader'
|
| 581 |
+
x-codegen-request-body-name: pdbIds
|
| 582 |
+
/pdb/header/{pdbId}:
|
| 583 |
+
get:
|
| 584 |
+
tags:
|
| 585 |
+
- pdb-controller
|
| 586 |
+
summary: Retrieves PDB header info by a PDB id
|
| 587 |
+
operationId: fetchPdbHeaderGET
|
| 588 |
+
parameters:
|
| 589 |
+
- name: pdbId
|
| 590 |
+
in: path
|
| 591 |
+
description: "PDB id, for example 1a37"
|
| 592 |
+
required: true
|
| 593 |
+
schema:
|
| 594 |
+
type: string
|
| 595 |
+
responses:
|
| 596 |
+
"200":
|
| 597 |
+
description: OK
|
| 598 |
+
content:
|
| 599 |
+
application/json:
|
| 600 |
+
schema:
|
| 601 |
+
$ref: '#/components/schemas/PdbHeader'
|
| 602 |
+
/pfam/domain:
|
| 603 |
+
post:
|
| 604 |
+
tags:
|
| 605 |
+
- pfam-controller
|
| 606 |
+
summary: Retrieves PFAM domains by PFAM domain accession IDs
|
| 607 |
+
operationId: fetchPfamDomainsByPfamAccessionPOST
|
| 608 |
+
requestBody:
|
| 609 |
+
description: "List of PFAM domain accession IDs. For example [\"PF02827\"\
|
| 610 |
+
,\"PF00093\",\"PF15276\"]"
|
| 611 |
+
content:
|
| 612 |
+
application/json:
|
| 613 |
+
schema:
|
| 614 |
+
type: array
|
| 615 |
+
items:
|
| 616 |
+
type: string
|
| 617 |
+
required: true
|
| 618 |
+
responses:
|
| 619 |
+
"200":
|
| 620 |
+
description: OK
|
| 621 |
+
content:
|
| 622 |
+
application/json:
|
| 623 |
+
schema:
|
| 624 |
+
type: array
|
| 625 |
+
items:
|
| 626 |
+
$ref: '#/components/schemas/PfamDomain'
|
| 627 |
+
x-codegen-request-body-name: pfamAccessions
|
| 628 |
+
/pfam/domain/{pfamAccession}:
|
| 629 |
+
get:
|
| 630 |
+
tags:
|
| 631 |
+
- pfam-controller
|
| 632 |
+
summary: Retrieves a PFAM domain by a PFAM domain ID
|
| 633 |
+
operationId: fetchPfamDomainsByAccessionGET
|
| 634 |
+
parameters:
|
| 635 |
+
- name: pfamAccession
|
| 636 |
+
in: path
|
| 637 |
+
description: A PFAM domain accession ID. For example PF02827
|
| 638 |
+
required: true
|
| 639 |
+
schema:
|
| 640 |
+
type: string
|
| 641 |
+
responses:
|
| 642 |
+
"200":
|
| 643 |
+
description: OK
|
| 644 |
+
content:
|
| 645 |
+
application/json:
|
| 646 |
+
schema:
|
| 647 |
+
$ref: '#/components/schemas/PfamDomain'
|
| 648 |
+
/ptm/experimental:
|
| 649 |
+
get:
|
| 650 |
+
tags:
|
| 651 |
+
- ptm-controller
|
| 652 |
+
summary: Retrieves PTM entries by Ensembl Transcript ID
|
| 653 |
+
operationId: fetchPostTranslationalModificationsGET
|
| 654 |
+
parameters:
|
| 655 |
+
- name: ensemblTranscriptId
|
| 656 |
+
in: query
|
| 657 |
+
description: Ensembl Transcript ID. For example ENST00000646891
|
| 658 |
+
schema:
|
| 659 |
+
type: string
|
| 660 |
+
responses:
|
| 661 |
+
"200":
|
| 662 |
+
description: OK
|
| 663 |
+
content:
|
| 664 |
+
application/json:
|
| 665 |
+
schema:
|
| 666 |
+
type: array
|
| 667 |
+
items:
|
| 668 |
+
$ref: '#/components/schemas/PostTranslationalModification'
|
| 669 |
+
post:
|
| 670 |
+
tags:
|
| 671 |
+
- ptm-controller
|
| 672 |
+
summary: Retrieves PTM entries by Ensembl Transcript IDs
|
| 673 |
+
operationId: fetchPostTranslationalModificationsByPtmFilterPOST
|
| 674 |
+
requestBody:
|
| 675 |
+
description: "List of Ensembl transcript IDs. For example [\"ENST00000420316\"\
|
| 676 |
+
, \"ENST00000646891\", \"ENST00000371953\"]"
|
| 677 |
+
content:
|
| 678 |
+
application/json:
|
| 679 |
+
schema:
|
| 680 |
+
$ref: '#/components/schemas/PtmFilter'
|
| 681 |
+
required: true
|
| 682 |
+
responses:
|
| 683 |
+
"200":
|
| 684 |
+
description: OK
|
| 685 |
+
content:
|
| 686 |
+
application/json:
|
| 687 |
+
schema:
|
| 688 |
+
type: array
|
| 689 |
+
items:
|
| 690 |
+
$ref: '#/components/schemas/PostTranslationalModification'
|
| 691 |
+
x-codegen-request-body-name: ptmFilter
|
| 692 |
+
/version:
|
| 693 |
+
get:
|
| 694 |
+
tags:
|
| 695 |
+
- info-controller
|
| 696 |
+
summary: Retrieve Genome Nexus Version
|
| 697 |
+
operationId: fetchVersionGET
|
| 698 |
+
responses:
|
| 699 |
+
"200":
|
| 700 |
+
description: OK
|
| 701 |
+
content:
|
| 702 |
+
application/json:
|
| 703 |
+
schema:
|
| 704 |
+
$ref: '#/components/schemas/Version'
|
| 705 |
+
components:
|
| 706 |
+
schemas:
|
| 707 |
+
AlleleCount:
|
| 708 |
+
required:
|
| 709 |
+
- ac
|
| 710 |
+
- ac_afr
|
| 711 |
+
- ac_amr
|
| 712 |
+
- ac_asj
|
| 713 |
+
- ac_eas
|
| 714 |
+
- ac_fin
|
| 715 |
+
- ac_nfe
|
| 716 |
+
- ac_oth
|
| 717 |
+
- ac_sas
|
| 718 |
+
type: object
|
| 719 |
+
properties:
|
| 720 |
+
ac:
|
| 721 |
+
type: integer
|
| 722 |
+
format: int32
|
| 723 |
+
ac_afr:
|
| 724 |
+
type: integer
|
| 725 |
+
format: int32
|
| 726 |
+
ac_amr:
|
| 727 |
+
type: integer
|
| 728 |
+
format: int32
|
| 729 |
+
ac_asj:
|
| 730 |
+
type: integer
|
| 731 |
+
format: int32
|
| 732 |
+
ac_eas:
|
| 733 |
+
type: integer
|
| 734 |
+
format: int32
|
| 735 |
+
ac_fin:
|
| 736 |
+
type: integer
|
| 737 |
+
format: int32
|
| 738 |
+
ac_nfe:
|
| 739 |
+
type: integer
|
| 740 |
+
format: int32
|
| 741 |
+
ac_oth:
|
| 742 |
+
type: integer
|
| 743 |
+
format: int32
|
| 744 |
+
ac_sas:
|
| 745 |
+
type: integer
|
| 746 |
+
format: int32
|
| 747 |
+
AlleleFrequency:
|
| 748 |
+
required:
|
| 749 |
+
- af
|
| 750 |
+
- af_afr
|
| 751 |
+
- af_amr
|
| 752 |
+
- af_asj
|
| 753 |
+
- af_eas
|
| 754 |
+
- af_fin
|
| 755 |
+
- af_nfe
|
| 756 |
+
- af_oth
|
| 757 |
+
- af_sas
|
| 758 |
+
type: object
|
| 759 |
+
properties:
|
| 760 |
+
af:
|
| 761 |
+
type: number
|
| 762 |
+
format: double
|
| 763 |
+
af_afr:
|
| 764 |
+
type: number
|
| 765 |
+
format: double
|
| 766 |
+
af_amr:
|
| 767 |
+
type: number
|
| 768 |
+
format: double
|
| 769 |
+
af_asj:
|
| 770 |
+
type: number
|
| 771 |
+
format: double
|
| 772 |
+
af_eas:
|
| 773 |
+
type: number
|
| 774 |
+
format: double
|
| 775 |
+
af_fin:
|
| 776 |
+
type: number
|
| 777 |
+
format: double
|
| 778 |
+
af_nfe:
|
| 779 |
+
type: number
|
| 780 |
+
format: double
|
| 781 |
+
af_oth:
|
| 782 |
+
type: number
|
| 783 |
+
format: double
|
| 784 |
+
af_sas:
|
| 785 |
+
type: number
|
| 786 |
+
format: double
|
| 787 |
+
AlleleNumber:
|
| 788 |
+
required:
|
| 789 |
+
- an
|
| 790 |
+
- an_afr
|
| 791 |
+
- an_amr
|
| 792 |
+
- an_asj
|
| 793 |
+
- an_eas
|
| 794 |
+
- an_fin
|
| 795 |
+
- an_nfe
|
| 796 |
+
- an_oth
|
| 797 |
+
- an_sas
|
| 798 |
+
type: object
|
| 799 |
+
properties:
|
| 800 |
+
an:
|
| 801 |
+
type: integer
|
| 802 |
+
format: int32
|
| 803 |
+
an_afr:
|
| 804 |
+
type: integer
|
| 805 |
+
format: int32
|
| 806 |
+
an_amr:
|
| 807 |
+
type: integer
|
| 808 |
+
format: int32
|
| 809 |
+
an_asj:
|
| 810 |
+
type: integer
|
| 811 |
+
format: int32
|
| 812 |
+
an_eas:
|
| 813 |
+
type: integer
|
| 814 |
+
format: int32
|
| 815 |
+
an_fin:
|
| 816 |
+
type: integer
|
| 817 |
+
format: int32
|
| 818 |
+
an_nfe:
|
| 819 |
+
type: integer
|
| 820 |
+
format: int32
|
| 821 |
+
an_oth:
|
| 822 |
+
type: integer
|
| 823 |
+
format: int32
|
| 824 |
+
an_sas:
|
| 825 |
+
type: integer
|
| 826 |
+
format: int32
|
| 827 |
+
Alleles:
|
| 828 |
+
type: object
|
| 829 |
+
properties:
|
| 830 |
+
allele:
|
| 831 |
+
type: string
|
| 832 |
+
description: allele
|
| 833 |
+
ArticleAbstract:
|
| 834 |
+
type: object
|
| 835 |
+
properties:
|
| 836 |
+
abstract:
|
| 837 |
+
type: string
|
| 838 |
+
link:
|
| 839 |
+
type: string
|
| 840 |
+
Citations:
|
| 841 |
+
type: object
|
| 842 |
+
properties:
|
| 843 |
+
abstracts:
|
| 844 |
+
type: array
|
| 845 |
+
items:
|
| 846 |
+
$ref: '#/components/schemas/ArticleAbstract'
|
| 847 |
+
pmids:
|
| 848 |
+
type: array
|
| 849 |
+
items:
|
| 850 |
+
type: string
|
| 851 |
+
ClinVar:
|
| 852 |
+
type: object
|
| 853 |
+
properties:
|
| 854 |
+
alleleId:
|
| 855 |
+
type: integer
|
| 856 |
+
description: allele_id
|
| 857 |
+
format: int32
|
| 858 |
+
alt:
|
| 859 |
+
type: string
|
| 860 |
+
description: alt
|
| 861 |
+
chrom:
|
| 862 |
+
type: string
|
| 863 |
+
description: chrom
|
| 864 |
+
cytogenic:
|
| 865 |
+
type: string
|
| 866 |
+
description: cytogenic
|
| 867 |
+
gene:
|
| 868 |
+
$ref: '#/components/schemas/Gene'
|
| 869 |
+
hg19:
|
| 870 |
+
$ref: '#/components/schemas/Hg19'
|
| 871 |
+
hg38:
|
| 872 |
+
$ref: '#/components/schemas/Hg38'
|
| 873 |
+
hgvs:
|
| 874 |
+
$ref: '#/components/schemas/Hgvs'
|
| 875 |
+
license:
|
| 876 |
+
type: string
|
| 877 |
+
description: license
|
| 878 |
+
rcv:
|
| 879 |
+
type: array
|
| 880 |
+
items:
|
| 881 |
+
$ref: '#/components/schemas/Rcv'
|
| 882 |
+
variantId:
|
| 883 |
+
type: integer
|
| 884 |
+
description: variant_id
|
| 885 |
+
format: int32
|
| 886 |
+
Clinvar:
|
| 887 |
+
type: object
|
| 888 |
+
properties:
|
| 889 |
+
alternateAllele:
|
| 890 |
+
type: string
|
| 891 |
+
chromosome:
|
| 892 |
+
type: string
|
| 893 |
+
clinicalSignificance:
|
| 894 |
+
type: string
|
| 895 |
+
clinvarId:
|
| 896 |
+
type: integer
|
| 897 |
+
format: int32
|
| 898 |
+
conflictingClinicalSignificance:
|
| 899 |
+
type: string
|
| 900 |
+
endPosition:
|
| 901 |
+
type: integer
|
| 902 |
+
format: int32
|
| 903 |
+
referenceAllele:
|
| 904 |
+
type: string
|
| 905 |
+
startPosition:
|
| 906 |
+
type: integer
|
| 907 |
+
format: int32
|
| 908 |
+
ClinvarAnnotation:
|
| 909 |
+
type: object
|
| 910 |
+
properties:
|
| 911 |
+
annotation:
|
| 912 |
+
$ref: '#/components/schemas/Clinvar'
|
| 913 |
+
ColocatedVariant:
|
| 914 |
+
required:
|
| 915 |
+
- gnomad_afr_allele
|
| 916 |
+
- gnomad_afr_maf
|
| 917 |
+
- gnomad_eas_allele
|
| 918 |
+
- gnomad_eas_maf
|
| 919 |
+
- gnomad_nfe_allele
|
| 920 |
+
- gnomad_nfe_maf
|
| 921 |
+
type: object
|
| 922 |
+
properties:
|
| 923 |
+
dbSnpId:
|
| 924 |
+
type: string
|
| 925 |
+
gnomad_nfe_allele:
|
| 926 |
+
type: string
|
| 927 |
+
description: GnomAD Non-Finnish European Allele
|
| 928 |
+
gnomad_nfe_maf:
|
| 929 |
+
type: string
|
| 930 |
+
description: GnomAD Non-Finnish European MAF
|
| 931 |
+
gnomad_afr_allele:
|
| 932 |
+
type: string
|
| 933 |
+
description: GnomAD African/African American Allele
|
| 934 |
+
gnomad_afr_maf:
|
| 935 |
+
type: string
|
| 936 |
+
description: GnomAD African/African American MAF
|
| 937 |
+
gnomad_eas_allele:
|
| 938 |
+
type: string
|
| 939 |
+
description: GnomAD East Asian Allele
|
| 940 |
+
gnomad_eas_maf:
|
| 941 |
+
type: string
|
| 942 |
+
description: GnomAD East Asian MAF
|
| 943 |
+
Cosmic:
|
| 944 |
+
type: object
|
| 945 |
+
properties:
|
| 946 |
+
alt:
|
| 947 |
+
type: string
|
| 948 |
+
description: alt
|
| 949 |
+
chrom:
|
| 950 |
+
type: string
|
| 951 |
+
description: chrom
|
| 952 |
+
cosmicId:
|
| 953 |
+
type: string
|
| 954 |
+
description: cosmic_id
|
| 955 |
+
hg19:
|
| 956 |
+
$ref: '#/components/schemas/Hg19'
|
| 957 |
+
license:
|
| 958 |
+
type: string
|
| 959 |
+
description: _license
|
| 960 |
+
mutFreq:
|
| 961 |
+
type: number
|
| 962 |
+
description: mut_freq
|
| 963 |
+
format: double
|
| 964 |
+
mutNt:
|
| 965 |
+
type: string
|
| 966 |
+
description: mut_nt
|
| 967 |
+
ref:
|
| 968 |
+
type: string
|
| 969 |
+
description: ref
|
| 970 |
+
tumorSite:
|
| 971 |
+
type: string
|
| 972 |
+
description: tumor_site
|
| 973 |
+
CountByTumorType:
|
| 974 |
+
type: object
|
| 975 |
+
properties:
|
| 976 |
+
tumorType:
|
| 977 |
+
type: string
|
| 978 |
+
description: Tumor Type
|
| 979 |
+
tumorTypeCount:
|
| 980 |
+
type: integer
|
| 981 |
+
description: Sample count for Tumor Type
|
| 982 |
+
format: int32
|
| 983 |
+
variantCount:
|
| 984 |
+
type: integer
|
| 985 |
+
description: Variant count for Tumor Type
|
| 986 |
+
format: int32
|
| 987 |
+
Dbsnp:
|
| 988 |
+
type: object
|
| 989 |
+
properties:
|
| 990 |
+
_class:
|
| 991 |
+
type: string
|
| 992 |
+
description: class
|
| 993 |
+
alleleOrigin:
|
| 994 |
+
type: string
|
| 995 |
+
description: allele_origin
|
| 996 |
+
alleles:
|
| 997 |
+
type: array
|
| 998 |
+
description: alleles
|
| 999 |
+
items:
|
| 1000 |
+
$ref: '#/components/schemas/Alleles'
|
| 1001 |
+
alt:
|
| 1002 |
+
type: string
|
| 1003 |
+
description: alt
|
| 1004 |
+
chrom:
|
| 1005 |
+
type: string
|
| 1006 |
+
description: chrom
|
| 1007 |
+
dbsnpBuild:
|
| 1008 |
+
type: integer
|
| 1009 |
+
description: dbsnp_build
|
| 1010 |
+
format: int32
|
| 1011 |
+
flags:
|
| 1012 |
+
type: array
|
| 1013 |
+
description: flags
|
| 1014 |
+
items:
|
| 1015 |
+
type: string
|
| 1016 |
+
hg19:
|
| 1017 |
+
$ref: '#/components/schemas/Hg19'
|
| 1018 |
+
license:
|
| 1019 |
+
type: string
|
| 1020 |
+
description: _license
|
| 1021 |
+
ref:
|
| 1022 |
+
type: string
|
| 1023 |
+
description: ref
|
| 1024 |
+
rsid:
|
| 1025 |
+
type: string
|
| 1026 |
+
description: rsid
|
| 1027 |
+
validated:
|
| 1028 |
+
type: boolean
|
| 1029 |
+
description: validated
|
| 1030 |
+
example: false
|
| 1031 |
+
varSubtype:
|
| 1032 |
+
type: string
|
| 1033 |
+
description: var_subtype
|
| 1034 |
+
vartype:
|
| 1035 |
+
type: string
|
| 1036 |
+
description: vartype
|
| 1037 |
+
Drug:
|
| 1038 |
+
type: object
|
| 1039 |
+
properties:
|
| 1040 |
+
drugName:
|
| 1041 |
+
type: string
|
| 1042 |
+
ncitCode:
|
| 1043 |
+
type: string
|
| 1044 |
+
synonyms:
|
| 1045 |
+
type: array
|
| 1046 |
+
items:
|
| 1047 |
+
type: string
|
| 1048 |
+
uuid:
|
| 1049 |
+
type: string
|
| 1050 |
+
EnsemblFilter:
|
| 1051 |
+
type: object
|
| 1052 |
+
properties:
|
| 1053 |
+
geneIds:
|
| 1054 |
+
type: array
|
| 1055 |
+
description: "List of Ensembl gene IDs. For example [\"ENSG00000136999\"\
|
| 1056 |
+
, \"ENSG00000272398\", \"ENSG00000198695\"]"
|
| 1057 |
+
items:
|
| 1058 |
+
type: string
|
| 1059 |
+
hugoSymbols:
|
| 1060 |
+
type: array
|
| 1061 |
+
description: "List of Hugo Symbols. For example [\"TP53\", \"PIK3CA\", \"\
|
| 1062 |
+
BRCA1\"]"
|
| 1063 |
+
items:
|
| 1064 |
+
type: string
|
| 1065 |
+
proteinIds:
|
| 1066 |
+
type: array
|
| 1067 |
+
description: "List of Ensembl protein IDs. For example [\"ENSP00000439985\"\
|
| 1068 |
+
, \"ENSP00000478460\", \"ENSP00000346196\"]"
|
| 1069 |
+
items:
|
| 1070 |
+
type: string
|
| 1071 |
+
transcriptIds:
|
| 1072 |
+
type: array
|
| 1073 |
+
description: "List of Ensembl transcript IDs. For example [\"ENST00000361390\"\
|
| 1074 |
+
, \"ENST00000361453\", \"ENST00000361624\"]"
|
| 1075 |
+
items:
|
| 1076 |
+
type: string
|
| 1077 |
+
EnsemblGene:
|
| 1078 |
+
required:
|
| 1079 |
+
- geneId
|
| 1080 |
+
- hugoSymbol
|
| 1081 |
+
type: object
|
| 1082 |
+
properties:
|
| 1083 |
+
geneId:
|
| 1084 |
+
type: string
|
| 1085 |
+
description: Ensembl gene id
|
| 1086 |
+
hugoSymbol:
|
| 1087 |
+
type: string
|
| 1088 |
+
description: Approved Hugo symbol
|
| 1089 |
+
synonyms:
|
| 1090 |
+
type: array
|
| 1091 |
+
description: Hugo symbol synonyms
|
| 1092 |
+
items:
|
| 1093 |
+
type: string
|
| 1094 |
+
previousSymbols:
|
| 1095 |
+
type: array
|
| 1096 |
+
description: Previous Hugo symbols
|
| 1097 |
+
items:
|
| 1098 |
+
type: string
|
| 1099 |
+
entrezGeneId:
|
| 1100 |
+
type: string
|
| 1101 |
+
description: Entrez Gene Id
|
| 1102 |
+
EnsemblTranscript:
|
| 1103 |
+
required:
|
| 1104 |
+
- geneId
|
| 1105 |
+
- proteinId
|
| 1106 |
+
- transcriptId
|
| 1107 |
+
type: object
|
| 1108 |
+
properties:
|
| 1109 |
+
uniprotId:
|
| 1110 |
+
type: string
|
| 1111 |
+
transcriptId:
|
| 1112 |
+
type: string
|
| 1113 |
+
description: Ensembl transcript id
|
| 1114 |
+
geneId:
|
| 1115 |
+
type: string
|
| 1116 |
+
description: Ensembl gene id
|
| 1117 |
+
proteinId:
|
| 1118 |
+
type: string
|
| 1119 |
+
description: Ensembl protein id
|
| 1120 |
+
proteinLength:
|
| 1121 |
+
type: integer
|
| 1122 |
+
description: Length of protein
|
| 1123 |
+
format: int32
|
| 1124 |
+
pfamDomains:
|
| 1125 |
+
type: array
|
| 1126 |
+
description: Pfam domains
|
| 1127 |
+
items:
|
| 1128 |
+
$ref: '#/components/schemas/PfamDomainRange'
|
| 1129 |
+
hugoSymbols:
|
| 1130 |
+
type: array
|
| 1131 |
+
description: Hugo symbols
|
| 1132 |
+
items:
|
| 1133 |
+
type: string
|
| 1134 |
+
refseqMrnaId:
|
| 1135 |
+
type: string
|
| 1136 |
+
description: RefSeq mRNA ID
|
| 1137 |
+
ccdsId:
|
| 1138 |
+
type: string
|
| 1139 |
+
description: Consensus CDS (CCDS) ID
|
| 1140 |
+
exons:
|
| 1141 |
+
type: array
|
| 1142 |
+
description: Exon information
|
| 1143 |
+
items:
|
| 1144 |
+
$ref: '#/components/schemas/Exon'
|
| 1145 |
+
utrs:
|
| 1146 |
+
type: array
|
| 1147 |
+
description: UTR information
|
| 1148 |
+
items:
|
| 1149 |
+
$ref: '#/components/schemas/UntranslatedRegion'
|
| 1150 |
+
Exon:
|
| 1151 |
+
required:
|
| 1152 |
+
- exonEnd
|
| 1153 |
+
- exonId
|
| 1154 |
+
- exonStart
|
| 1155 |
+
- rank
|
| 1156 |
+
- strand
|
| 1157 |
+
- version
|
| 1158 |
+
type: object
|
| 1159 |
+
properties:
|
| 1160 |
+
exonId:
|
| 1161 |
+
type: string
|
| 1162 |
+
description: Exon id
|
| 1163 |
+
exonStart:
|
| 1164 |
+
type: integer
|
| 1165 |
+
description: Start position of exon
|
| 1166 |
+
format: int32
|
| 1167 |
+
exonEnd:
|
| 1168 |
+
type: integer
|
| 1169 |
+
description: End position of exon
|
| 1170 |
+
format: int32
|
| 1171 |
+
rank:
|
| 1172 |
+
type: integer
|
| 1173 |
+
description: Number of exon in transcript
|
| 1174 |
+
format: int32
|
| 1175 |
+
strand:
|
| 1176 |
+
type: integer
|
| 1177 |
+
description: "Strand exon is on, -1 for - and 1 for +"
|
| 1178 |
+
format: int32
|
| 1179 |
+
version:
|
| 1180 |
+
type: integer
|
| 1181 |
+
description: Exon version
|
| 1182 |
+
format: int32
|
| 1183 |
+
Gene:
|
| 1184 |
+
type: object
|
| 1185 |
+
properties:
|
| 1186 |
+
geneId:
|
| 1187 |
+
type: string
|
| 1188 |
+
description: geneid
|
| 1189 |
+
symbol:
|
| 1190 |
+
type: string
|
| 1191 |
+
description: symbol
|
| 1192 |
+
GeneXref:
|
| 1193 |
+
required:
|
| 1194 |
+
- db_display_name
|
| 1195 |
+
- dbname
|
| 1196 |
+
- description
|
| 1197 |
+
- display_id
|
| 1198 |
+
- primary_id
|
| 1199 |
+
- version
|
| 1200 |
+
type: object
|
| 1201 |
+
properties:
|
| 1202 |
+
db_display_name:
|
| 1203 |
+
type: string
|
| 1204 |
+
description: Database display name
|
| 1205 |
+
dbname:
|
| 1206 |
+
type: string
|
| 1207 |
+
description: Database name
|
| 1208 |
+
description:
|
| 1209 |
+
type: string
|
| 1210 |
+
description: Description
|
| 1211 |
+
display_id:
|
| 1212 |
+
type: string
|
| 1213 |
+
description: Display id
|
| 1214 |
+
ensemblGeneId:
|
| 1215 |
+
type: string
|
| 1216 |
+
info_text:
|
| 1217 |
+
type: string
|
| 1218 |
+
description: Database info text
|
| 1219 |
+
info_types:
|
| 1220 |
+
type: string
|
| 1221 |
+
description: Database info type
|
| 1222 |
+
primary_id:
|
| 1223 |
+
type: string
|
| 1224 |
+
description: Primary id
|
| 1225 |
+
synonyms:
|
| 1226 |
+
type: array
|
| 1227 |
+
description: Synonyms
|
| 1228 |
+
items:
|
| 1229 |
+
type: string
|
| 1230 |
+
version:
|
| 1231 |
+
type: string
|
| 1232 |
+
description: Version
|
| 1233 |
+
GeneralPopulationStats:
|
| 1234 |
+
type: object
|
| 1235 |
+
properties:
|
| 1236 |
+
counts:
|
| 1237 |
+
$ref: '#/components/schemas/SignalPopulationStats'
|
| 1238 |
+
frequencies:
|
| 1239 |
+
$ref: '#/components/schemas/SignalPopulationStats'
|
| 1240 |
+
GenomicLocation:
|
| 1241 |
+
required:
|
| 1242 |
+
- chromosome
|
| 1243 |
+
- end
|
| 1244 |
+
- referenceAllele
|
| 1245 |
+
- start
|
| 1246 |
+
- variantAllele
|
| 1247 |
+
type: object
|
| 1248 |
+
properties:
|
| 1249 |
+
chromosome:
|
| 1250 |
+
type: string
|
| 1251 |
+
description: Chromosome
|
| 1252 |
+
start:
|
| 1253 |
+
type: integer
|
| 1254 |
+
description: Start Position
|
| 1255 |
+
format: int32
|
| 1256 |
+
end:
|
| 1257 |
+
type: integer
|
| 1258 |
+
description: End Position
|
| 1259 |
+
format: int32
|
| 1260 |
+
referenceAllele:
|
| 1261 |
+
type: string
|
| 1262 |
+
description: Reference Allele
|
| 1263 |
+
variantAllele:
|
| 1264 |
+
type: string
|
| 1265 |
+
description: Variant Allele
|
| 1266 |
+
Gnomad:
|
| 1267 |
+
type: object
|
| 1268 |
+
properties:
|
| 1269 |
+
alleleCount:
|
| 1270 |
+
$ref: '#/components/schemas/AlleleCount'
|
| 1271 |
+
alleleFrequency:
|
| 1272 |
+
$ref: '#/components/schemas/AlleleFrequency'
|
| 1273 |
+
alleleNumber:
|
| 1274 |
+
$ref: '#/components/schemas/AlleleNumber'
|
| 1275 |
+
homozygotes:
|
| 1276 |
+
$ref: '#/components/schemas/Homozygotes'
|
| 1277 |
+
Hg19:
|
| 1278 |
+
type: object
|
| 1279 |
+
properties:
|
| 1280 |
+
end:
|
| 1281 |
+
type: integer
|
| 1282 |
+
description: end
|
| 1283 |
+
format: int32
|
| 1284 |
+
start:
|
| 1285 |
+
type: integer
|
| 1286 |
+
description: start
|
| 1287 |
+
format: int32
|
| 1288 |
+
Hg38:
|
| 1289 |
+
type: object
|
| 1290 |
+
properties:
|
| 1291 |
+
end:
|
| 1292 |
+
type: string
|
| 1293 |
+
description: end
|
| 1294 |
+
start:
|
| 1295 |
+
type: string
|
| 1296 |
+
description: start
|
| 1297 |
+
Hgvs:
|
| 1298 |
+
type: object
|
| 1299 |
+
properties:
|
| 1300 |
+
coding:
|
| 1301 |
+
type: array
|
| 1302 |
+
items:
|
| 1303 |
+
type: string
|
| 1304 |
+
genomic:
|
| 1305 |
+
type: array
|
| 1306 |
+
items:
|
| 1307 |
+
type: string
|
| 1308 |
+
Homozygotes:
|
| 1309 |
+
required:
|
| 1310 |
+
- hom
|
| 1311 |
+
- hom_afr
|
| 1312 |
+
- hom_amr
|
| 1313 |
+
- hom_asj
|
| 1314 |
+
- hom_eas
|
| 1315 |
+
- hom_fin
|
| 1316 |
+
- hom_nfe
|
| 1317 |
+
- hom_oth
|
| 1318 |
+
- hom_sas
|
| 1319 |
+
type: object
|
| 1320 |
+
properties:
|
| 1321 |
+
hom:
|
| 1322 |
+
type: integer
|
| 1323 |
+
format: int32
|
| 1324 |
+
hom_afr:
|
| 1325 |
+
type: integer
|
| 1326 |
+
format: int32
|
| 1327 |
+
hom_amr:
|
| 1328 |
+
type: integer
|
| 1329 |
+
format: int32
|
| 1330 |
+
hom_asj:
|
| 1331 |
+
type: integer
|
| 1332 |
+
format: int32
|
| 1333 |
+
hom_eas:
|
| 1334 |
+
type: integer
|
| 1335 |
+
format: int32
|
| 1336 |
+
hom_fin:
|
| 1337 |
+
type: integer
|
| 1338 |
+
format: int32
|
| 1339 |
+
hom_nfe:
|
| 1340 |
+
type: integer
|
| 1341 |
+
format: int32
|
| 1342 |
+
hom_oth:
|
| 1343 |
+
type: integer
|
| 1344 |
+
format: int32
|
| 1345 |
+
hom_sas:
|
| 1346 |
+
type: integer
|
| 1347 |
+
format: int32
|
| 1348 |
+
Hotspot:
|
| 1349 |
+
type: object
|
| 1350 |
+
properties:
|
| 1351 |
+
hugoSymbol:
|
| 1352 |
+
type: string
|
| 1353 |
+
description: Hugo gene symbol
|
| 1354 |
+
inframeCount:
|
| 1355 |
+
type: integer
|
| 1356 |
+
description: Inframe mutation count
|
| 1357 |
+
format: int32
|
| 1358 |
+
missenseCount:
|
| 1359 |
+
type: integer
|
| 1360 |
+
description: Missense mutation count
|
| 1361 |
+
format: int32
|
| 1362 |
+
residue:
|
| 1363 |
+
type: string
|
| 1364 |
+
description: Hotspot residue
|
| 1365 |
+
spliceCount:
|
| 1366 |
+
type: integer
|
| 1367 |
+
description: Splice mutation count
|
| 1368 |
+
format: int32
|
| 1369 |
+
transcriptId:
|
| 1370 |
+
type: string
|
| 1371 |
+
description: Ensembl Transcript Id
|
| 1372 |
+
truncatingCount:
|
| 1373 |
+
type: integer
|
| 1374 |
+
description: Truncation mutation count
|
| 1375 |
+
format: int32
|
| 1376 |
+
tumorCount:
|
| 1377 |
+
type: integer
|
| 1378 |
+
description: Tumor count
|
| 1379 |
+
format: int32
|
| 1380 |
+
type:
|
| 1381 |
+
type: string
|
| 1382 |
+
description: Hotspot type
|
| 1383 |
+
HotspotAnnotation:
|
| 1384 |
+
type: object
|
| 1385 |
+
properties:
|
| 1386 |
+
annotation:
|
| 1387 |
+
type: array
|
| 1388 |
+
items:
|
| 1389 |
+
type: array
|
| 1390 |
+
items:
|
| 1391 |
+
$ref: '#/components/schemas/Hotspot'
|
| 1392 |
+
license:
|
| 1393 |
+
type: string
|
| 1394 |
+
HrdScore:
|
| 1395 |
+
type: object
|
| 1396 |
+
properties:
|
| 1397 |
+
fractionLoh:
|
| 1398 |
+
type: number
|
| 1399 |
+
description: Median HRD Fraction LOH
|
| 1400 |
+
format: double
|
| 1401 |
+
lst:
|
| 1402 |
+
type: number
|
| 1403 |
+
description: Median HRD LST
|
| 1404 |
+
format: double
|
| 1405 |
+
ntelomericAi:
|
| 1406 |
+
type: number
|
| 1407 |
+
description: Median HRD ntelomeric AI
|
| 1408 |
+
format: double
|
| 1409 |
+
Implication:
|
| 1410 |
+
type: object
|
| 1411 |
+
properties:
|
| 1412 |
+
alterations:
|
| 1413 |
+
type: array
|
| 1414 |
+
items:
|
| 1415 |
+
type: string
|
| 1416 |
+
description:
|
| 1417 |
+
type: string
|
| 1418 |
+
levelOfEvidence:
|
| 1419 |
+
type: string
|
| 1420 |
+
enum:
|
| 1421 |
+
- LEVEL_0
|
| 1422 |
+
- LEVEL_1
|
| 1423 |
+
- LEVEL_2
|
| 1424 |
+
- LEVEL_2A
|
| 1425 |
+
- LEVEL_2B
|
| 1426 |
+
- LEVEL_3A
|
| 1427 |
+
- LEVEL_3B
|
| 1428 |
+
- LEVEL_4
|
| 1429 |
+
- LEVEL_R1
|
| 1430 |
+
- LEVEL_R2
|
| 1431 |
+
- LEVEL_R3
|
| 1432 |
+
- LEVEL_Px1
|
| 1433 |
+
- LEVEL_Px2
|
| 1434 |
+
- LEVEL_Px3
|
| 1435 |
+
- LEVEL_Dx1
|
| 1436 |
+
- LEVEL_Dx2
|
| 1437 |
+
- LEVEL_Dx3
|
| 1438 |
+
- "NO"
|
| 1439 |
+
tumorType:
|
| 1440 |
+
$ref: '#/components/schemas/TumorType'
|
| 1441 |
+
IndicatorQueryResp:
|
| 1442 |
+
type: object
|
| 1443 |
+
properties:
|
| 1444 |
+
alleleExist:
|
| 1445 |
+
type: boolean
|
| 1446 |
+
example: false
|
| 1447 |
+
dataVersion:
|
| 1448 |
+
type: string
|
| 1449 |
+
diagnosticImplications:
|
| 1450 |
+
type: array
|
| 1451 |
+
items:
|
| 1452 |
+
$ref: '#/components/schemas/Implication'
|
| 1453 |
+
diagnosticSummary:
|
| 1454 |
+
type: string
|
| 1455 |
+
geneExist:
|
| 1456 |
+
type: boolean
|
| 1457 |
+
example: false
|
| 1458 |
+
geneSummary:
|
| 1459 |
+
type: string
|
| 1460 |
+
highestDiagnosticImplicationLevel:
|
| 1461 |
+
type: string
|
| 1462 |
+
enum:
|
| 1463 |
+
- LEVEL_0
|
| 1464 |
+
- LEVEL_1
|
| 1465 |
+
- LEVEL_2
|
| 1466 |
+
- LEVEL_2A
|
| 1467 |
+
- LEVEL_2B
|
| 1468 |
+
- LEVEL_3A
|
| 1469 |
+
- LEVEL_3B
|
| 1470 |
+
- LEVEL_4
|
| 1471 |
+
- LEVEL_R1
|
| 1472 |
+
- LEVEL_R2
|
| 1473 |
+
- LEVEL_R3
|
| 1474 |
+
- LEVEL_Px1
|
| 1475 |
+
- LEVEL_Px2
|
| 1476 |
+
- LEVEL_Px3
|
| 1477 |
+
- LEVEL_Dx1
|
| 1478 |
+
- LEVEL_Dx2
|
| 1479 |
+
- LEVEL_Dx3
|
| 1480 |
+
- "NO"
|
| 1481 |
+
highestPrognosticImplicationLevel:
|
| 1482 |
+
type: string
|
| 1483 |
+
enum:
|
| 1484 |
+
- LEVEL_0
|
| 1485 |
+
- LEVEL_1
|
| 1486 |
+
- LEVEL_2
|
| 1487 |
+
- LEVEL_2A
|
| 1488 |
+
- LEVEL_2B
|
| 1489 |
+
- LEVEL_3A
|
| 1490 |
+
- LEVEL_3B
|
| 1491 |
+
- LEVEL_4
|
| 1492 |
+
- LEVEL_R1
|
| 1493 |
+
- LEVEL_R2
|
| 1494 |
+
- LEVEL_R3
|
| 1495 |
+
- LEVEL_Px1
|
| 1496 |
+
- LEVEL_Px2
|
| 1497 |
+
- LEVEL_Px3
|
| 1498 |
+
- LEVEL_Dx1
|
| 1499 |
+
- LEVEL_Dx2
|
| 1500 |
+
- LEVEL_Dx3
|
| 1501 |
+
- "NO"
|
| 1502 |
+
highestResistanceLevel:
|
| 1503 |
+
type: string
|
| 1504 |
+
enum:
|
| 1505 |
+
- LEVEL_0
|
| 1506 |
+
- LEVEL_1
|
| 1507 |
+
- LEVEL_2
|
| 1508 |
+
- LEVEL_2A
|
| 1509 |
+
- LEVEL_2B
|
| 1510 |
+
- LEVEL_3A
|
| 1511 |
+
- LEVEL_3B
|
| 1512 |
+
- LEVEL_4
|
| 1513 |
+
- LEVEL_R1
|
| 1514 |
+
- LEVEL_R2
|
| 1515 |
+
- LEVEL_R3
|
| 1516 |
+
- LEVEL_Px1
|
| 1517 |
+
- LEVEL_Px2
|
| 1518 |
+
- LEVEL_Px3
|
| 1519 |
+
- LEVEL_Dx1
|
| 1520 |
+
- LEVEL_Dx2
|
| 1521 |
+
- LEVEL_Dx3
|
| 1522 |
+
- "NO"
|
| 1523 |
+
highestSensitiveLevel:
|
| 1524 |
+
type: string
|
| 1525 |
+
enum:
|
| 1526 |
+
- LEVEL_0
|
| 1527 |
+
- LEVEL_1
|
| 1528 |
+
- LEVEL_2
|
| 1529 |
+
- LEVEL_2A
|
| 1530 |
+
- LEVEL_2B
|
| 1531 |
+
- LEVEL_3A
|
| 1532 |
+
- LEVEL_3B
|
| 1533 |
+
- LEVEL_4
|
| 1534 |
+
- LEVEL_R1
|
| 1535 |
+
- LEVEL_R2
|
| 1536 |
+
- LEVEL_R3
|
| 1537 |
+
- LEVEL_Px1
|
| 1538 |
+
- LEVEL_Px2
|
| 1539 |
+
- LEVEL_Px3
|
| 1540 |
+
- LEVEL_Dx1
|
| 1541 |
+
- LEVEL_Dx2
|
| 1542 |
+
- LEVEL_Dx3
|
| 1543 |
+
- "NO"
|
| 1544 |
+
hotspot:
|
| 1545 |
+
type: boolean
|
| 1546 |
+
example: false
|
| 1547 |
+
lastUpdate:
|
| 1548 |
+
type: string
|
| 1549 |
+
mutationEffect:
|
| 1550 |
+
$ref: '#/components/schemas/MutationEffectResp'
|
| 1551 |
+
oncogenic:
|
| 1552 |
+
type: string
|
| 1553 |
+
otherSignificantResistanceLevels:
|
| 1554 |
+
type: array
|
| 1555 |
+
items:
|
| 1556 |
+
type: string
|
| 1557 |
+
enum:
|
| 1558 |
+
- LEVEL_0
|
| 1559 |
+
- LEVEL_1
|
| 1560 |
+
- LEVEL_2
|
| 1561 |
+
- LEVEL_2A
|
| 1562 |
+
- LEVEL_2B
|
| 1563 |
+
- LEVEL_3A
|
| 1564 |
+
- LEVEL_3B
|
| 1565 |
+
- LEVEL_4
|
| 1566 |
+
- LEVEL_R1
|
| 1567 |
+
- LEVEL_R2
|
| 1568 |
+
- LEVEL_R3
|
| 1569 |
+
- LEVEL_Px1
|
| 1570 |
+
- LEVEL_Px2
|
| 1571 |
+
- LEVEL_Px3
|
| 1572 |
+
- LEVEL_Dx1
|
| 1573 |
+
- LEVEL_Dx2
|
| 1574 |
+
- LEVEL_Dx3
|
| 1575 |
+
- "NO"
|
| 1576 |
+
otherSignificantSensitiveLevels:
|
| 1577 |
+
type: array
|
| 1578 |
+
items:
|
| 1579 |
+
type: string
|
| 1580 |
+
enum:
|
| 1581 |
+
- LEVEL_0
|
| 1582 |
+
- LEVEL_1
|
| 1583 |
+
- LEVEL_2
|
| 1584 |
+
- LEVEL_2A
|
| 1585 |
+
- LEVEL_2B
|
| 1586 |
+
- LEVEL_3A
|
| 1587 |
+
- LEVEL_3B
|
| 1588 |
+
- LEVEL_4
|
| 1589 |
+
- LEVEL_R1
|
| 1590 |
+
- LEVEL_R2
|
| 1591 |
+
- LEVEL_R3
|
| 1592 |
+
- LEVEL_Px1
|
| 1593 |
+
- LEVEL_Px2
|
| 1594 |
+
- LEVEL_Px3
|
| 1595 |
+
- LEVEL_Dx1
|
| 1596 |
+
- LEVEL_Dx2
|
| 1597 |
+
- LEVEL_Dx3
|
| 1598 |
+
- "NO"
|
| 1599 |
+
prognosticImplications:
|
| 1600 |
+
type: array
|
| 1601 |
+
items:
|
| 1602 |
+
$ref: '#/components/schemas/Implication'
|
| 1603 |
+
prognosticSummary:
|
| 1604 |
+
type: string
|
| 1605 |
+
query:
|
| 1606 |
+
$ref: '#/components/schemas/Query'
|
| 1607 |
+
treatments:
|
| 1608 |
+
type: array
|
| 1609 |
+
items:
|
| 1610 |
+
$ref: '#/components/schemas/IndicatorQueryTreatment'
|
| 1611 |
+
tumorTypeSummary:
|
| 1612 |
+
type: string
|
| 1613 |
+
variantExist:
|
| 1614 |
+
type: boolean
|
| 1615 |
+
example: false
|
| 1616 |
+
variantSummary:
|
| 1617 |
+
type: string
|
| 1618 |
+
vus:
|
| 1619 |
+
type: boolean
|
| 1620 |
+
example: false
|
| 1621 |
+
IndicatorQueryTreatment:
|
| 1622 |
+
type: object
|
| 1623 |
+
properties:
|
| 1624 |
+
abstracts:
|
| 1625 |
+
type: array
|
| 1626 |
+
items:
|
| 1627 |
+
$ref: '#/components/schemas/ArticleAbstract'
|
| 1628 |
+
alterations:
|
| 1629 |
+
type: array
|
| 1630 |
+
items:
|
| 1631 |
+
type: string
|
| 1632 |
+
approvedIndications:
|
| 1633 |
+
type: array
|
| 1634 |
+
items:
|
| 1635 |
+
type: string
|
| 1636 |
+
description:
|
| 1637 |
+
type: string
|
| 1638 |
+
drugs:
|
| 1639 |
+
type: array
|
| 1640 |
+
items:
|
| 1641 |
+
$ref: '#/components/schemas/Drug'
|
| 1642 |
+
fdaApproved:
|
| 1643 |
+
type: boolean
|
| 1644 |
+
example: false
|
| 1645 |
+
level:
|
| 1646 |
+
type: string
|
| 1647 |
+
enum:
|
| 1648 |
+
- LEVEL_0
|
| 1649 |
+
- LEVEL_1
|
| 1650 |
+
- LEVEL_2
|
| 1651 |
+
- LEVEL_2A
|
| 1652 |
+
- LEVEL_2B
|
| 1653 |
+
- LEVEL_3A
|
| 1654 |
+
- LEVEL_3B
|
| 1655 |
+
- LEVEL_4
|
| 1656 |
+
- LEVEL_R1
|
| 1657 |
+
- LEVEL_R2
|
| 1658 |
+
- LEVEL_R3
|
| 1659 |
+
- LEVEL_Px1
|
| 1660 |
+
- LEVEL_Px2
|
| 1661 |
+
- LEVEL_Px3
|
| 1662 |
+
- LEVEL_Dx1
|
| 1663 |
+
- LEVEL_Dx2
|
| 1664 |
+
- LEVEL_Dx3
|
| 1665 |
+
- "NO"
|
| 1666 |
+
levelAssociatedCancerType:
|
| 1667 |
+
$ref: '#/components/schemas/TumorType'
|
| 1668 |
+
pmids:
|
| 1669 |
+
type: array
|
| 1670 |
+
items:
|
| 1671 |
+
type: string
|
| 1672 |
+
IntegerRange:
|
| 1673 |
+
type: object
|
| 1674 |
+
properties:
|
| 1675 |
+
end:
|
| 1676 |
+
type: integer
|
| 1677 |
+
format: int32
|
| 1678 |
+
start:
|
| 1679 |
+
type: integer
|
| 1680 |
+
format: int32
|
| 1681 |
+
IntergenicConsequences:
|
| 1682 |
+
required:
|
| 1683 |
+
- consequenceTerms
|
| 1684 |
+
- impact
|
| 1685 |
+
- variantAllele
|
| 1686 |
+
type: object
|
| 1687 |
+
properties:
|
| 1688 |
+
impact:
|
| 1689 |
+
type: string
|
| 1690 |
+
description: impact
|
| 1691 |
+
variantAllele:
|
| 1692 |
+
type: string
|
| 1693 |
+
description: variant_allele
|
| 1694 |
+
consequenceTerms:
|
| 1695 |
+
type: array
|
| 1696 |
+
description: consequence_terms
|
| 1697 |
+
items:
|
| 1698 |
+
type: string
|
| 1699 |
+
MainType:
|
| 1700 |
+
type: object
|
| 1701 |
+
properties:
|
| 1702 |
+
id:
|
| 1703 |
+
type: integer
|
| 1704 |
+
format: int32
|
| 1705 |
+
name:
|
| 1706 |
+
type: string
|
| 1707 |
+
tumorForm:
|
| 1708 |
+
type: string
|
| 1709 |
+
enum:
|
| 1710 |
+
- SOLID
|
| 1711 |
+
- LIQUID
|
| 1712 |
+
description: OncoTree Cancer Type
|
| 1713 |
+
MutationAssessor:
|
| 1714 |
+
required:
|
| 1715 |
+
- input
|
| 1716 |
+
type: object
|
| 1717 |
+
properties:
|
| 1718 |
+
codonStartPosition:
|
| 1719 |
+
type: string
|
| 1720 |
+
description: Codon start position
|
| 1721 |
+
cosmicCount:
|
| 1722 |
+
type: integer
|
| 1723 |
+
description: Number of mutations in COSMIC for this protein
|
| 1724 |
+
format: int32
|
| 1725 |
+
functionalImpact:
|
| 1726 |
+
type: string
|
| 1727 |
+
description: Functional impact
|
| 1728 |
+
functionalImpactScore:
|
| 1729 |
+
type: number
|
| 1730 |
+
description: Functional impact score
|
| 1731 |
+
format: double
|
| 1732 |
+
hgvs:
|
| 1733 |
+
type: string
|
| 1734 |
+
hugoSymbol:
|
| 1735 |
+
type: string
|
| 1736 |
+
description: Hugo gene symbol
|
| 1737 |
+
input:
|
| 1738 |
+
type: string
|
| 1739 |
+
description: User-input variants
|
| 1740 |
+
mappingIssue:
|
| 1741 |
+
type: string
|
| 1742 |
+
description: Mapping issue info
|
| 1743 |
+
msaGaps:
|
| 1744 |
+
type: number
|
| 1745 |
+
description: Portion of gaps in variant position in multiple sequence alignment
|
| 1746 |
+
format: double
|
| 1747 |
+
msaHeight:
|
| 1748 |
+
type: integer
|
| 1749 |
+
description: Number of diverse sequences in multiple sequence alignment
|
| 1750 |
+
(identical or highly similar sequences filtered out)
|
| 1751 |
+
format: int32
|
| 1752 |
+
msaLink:
|
| 1753 |
+
type: string
|
| 1754 |
+
description: Link to multiple sequence alignment
|
| 1755 |
+
pdbLink:
|
| 1756 |
+
type: string
|
| 1757 |
+
description: Link to 3d structure browser
|
| 1758 |
+
referenceGenomeVariant:
|
| 1759 |
+
type: string
|
| 1760 |
+
description: Reference genome variant
|
| 1761 |
+
referenceGenomeVariantType:
|
| 1762 |
+
type: string
|
| 1763 |
+
description: Reference genome variant type
|
| 1764 |
+
refseqId:
|
| 1765 |
+
type: string
|
| 1766 |
+
description: Refseq protein ID
|
| 1767 |
+
refseqPosition:
|
| 1768 |
+
type: integer
|
| 1769 |
+
description: "Variant position in Refseq protein, can be different from\
|
| 1770 |
+
\ the one in Uniprot"
|
| 1771 |
+
format: int32
|
| 1772 |
+
refseqResidue:
|
| 1773 |
+
type: string
|
| 1774 |
+
description: "Reference residue in Refseq protein, can be different from\
|
| 1775 |
+
\ the one in Uniprot"
|
| 1776 |
+
snpCount:
|
| 1777 |
+
type: integer
|
| 1778 |
+
description: Number of SNPs in dbSNP for this protein
|
| 1779 |
+
format: int32
|
| 1780 |
+
uniprotId:
|
| 1781 |
+
type: string
|
| 1782 |
+
description: Uniprot protein accession ID
|
| 1783 |
+
uniprotPosition:
|
| 1784 |
+
type: integer
|
| 1785 |
+
description: "Variant position in Uniprot protein, can be different from\
|
| 1786 |
+
\ the one in Refseq"
|
| 1787 |
+
format: int32
|
| 1788 |
+
uniprotResidue:
|
| 1789 |
+
type: string
|
| 1790 |
+
description: "Reference residue in Uniprot protein, can be different from\
|
| 1791 |
+
\ the one in Refseq"
|
| 1792 |
+
variant:
|
| 1793 |
+
type: string
|
| 1794 |
+
description: Amino acid substitution
|
| 1795 |
+
variantConservationScore:
|
| 1796 |
+
type: number
|
| 1797 |
+
description: Variant conservation score
|
| 1798 |
+
format: double
|
| 1799 |
+
variantSpecificityScore:
|
| 1800 |
+
type: number
|
| 1801 |
+
description: Variant specificity score
|
| 1802 |
+
format: double
|
| 1803 |
+
MutationAssessorAnnotation:
|
| 1804 |
+
type: object
|
| 1805 |
+
properties:
|
| 1806 |
+
annotation:
|
| 1807 |
+
$ref: '#/components/schemas/MutationAssessor'
|
| 1808 |
+
license:
|
| 1809 |
+
type: string
|
| 1810 |
+
MutationEffectResp:
|
| 1811 |
+
type: object
|
| 1812 |
+
properties:
|
| 1813 |
+
citations:
|
| 1814 |
+
$ref: '#/components/schemas/Citations'
|
| 1815 |
+
description:
|
| 1816 |
+
type: string
|
| 1817 |
+
knownEffect:
|
| 1818 |
+
type: string
|
| 1819 |
+
Mutdb:
|
| 1820 |
+
type: object
|
| 1821 |
+
properties:
|
| 1822 |
+
alt:
|
| 1823 |
+
type: string
|
| 1824 |
+
description: alt
|
| 1825 |
+
chrom:
|
| 1826 |
+
type: string
|
| 1827 |
+
description: chrom
|
| 1828 |
+
cosmicId:
|
| 1829 |
+
type: string
|
| 1830 |
+
description: cosmic_id
|
| 1831 |
+
hg19:
|
| 1832 |
+
$ref: '#/components/schemas/Hg19'
|
| 1833 |
+
mutpredScore:
|
| 1834 |
+
type: number
|
| 1835 |
+
description: mutpred_score
|
| 1836 |
+
format: double
|
| 1837 |
+
ref:
|
| 1838 |
+
type: string
|
| 1839 |
+
description: ref
|
| 1840 |
+
rsid:
|
| 1841 |
+
type: string
|
| 1842 |
+
description: rsid
|
| 1843 |
+
uniprotId:
|
| 1844 |
+
type: string
|
| 1845 |
+
description: uniprot_id
|
| 1846 |
+
MyVariantInfo:
|
| 1847 |
+
type: object
|
| 1848 |
+
properties:
|
| 1849 |
+
clinVar:
|
| 1850 |
+
$ref: '#/components/schemas/ClinVar'
|
| 1851 |
+
cosmic:
|
| 1852 |
+
$ref: '#/components/schemas/Cosmic'
|
| 1853 |
+
dbsnp:
|
| 1854 |
+
$ref: '#/components/schemas/Dbsnp'
|
| 1855 |
+
gnomadExome:
|
| 1856 |
+
$ref: '#/components/schemas/Gnomad'
|
| 1857 |
+
gnomadGenome:
|
| 1858 |
+
$ref: '#/components/schemas/Gnomad'
|
| 1859 |
+
hgvs:
|
| 1860 |
+
type: string
|
| 1861 |
+
description: hgvs
|
| 1862 |
+
mutdb:
|
| 1863 |
+
$ref: '#/components/schemas/Mutdb'
|
| 1864 |
+
query:
|
| 1865 |
+
type: string
|
| 1866 |
+
snpeff:
|
| 1867 |
+
$ref: '#/components/schemas/Snpeff'
|
| 1868 |
+
variant:
|
| 1869 |
+
type: string
|
| 1870 |
+
description: variant
|
| 1871 |
+
vcf:
|
| 1872 |
+
$ref: '#/components/schemas/Vcf'
|
| 1873 |
+
version:
|
| 1874 |
+
type: integer
|
| 1875 |
+
description: version
|
| 1876 |
+
format: int32
|
| 1877 |
+
MyVariantInfoAnnotation:
|
| 1878 |
+
type: object
|
| 1879 |
+
properties:
|
| 1880 |
+
annotation:
|
| 1881 |
+
$ref: '#/components/schemas/MyVariantInfo'
|
| 1882 |
+
license:
|
| 1883 |
+
type: string
|
| 1884 |
+
NucleotideContext:
|
| 1885 |
+
required:
|
| 1886 |
+
- seq
|
| 1887 |
+
type: object
|
| 1888 |
+
properties:
|
| 1889 |
+
hgvs:
|
| 1890 |
+
type: string
|
| 1891 |
+
id:
|
| 1892 |
+
type: string
|
| 1893 |
+
molecule:
|
| 1894 |
+
type: string
|
| 1895 |
+
query:
|
| 1896 |
+
type: string
|
| 1897 |
+
seq:
|
| 1898 |
+
type: string
|
| 1899 |
+
description: Nucleotide context sequence
|
| 1900 |
+
NucleotideContextAnnotation:
|
| 1901 |
+
type: object
|
| 1902 |
+
properties:
|
| 1903 |
+
annotation:
|
| 1904 |
+
$ref: '#/components/schemas/NucleotideContext'
|
| 1905 |
+
license:
|
| 1906 |
+
type: string
|
| 1907 |
+
OncokbAnnotation:
|
| 1908 |
+
type: object
|
| 1909 |
+
properties:
|
| 1910 |
+
annotation:
|
| 1911 |
+
$ref: '#/components/schemas/IndicatorQueryResp'
|
| 1912 |
+
license:
|
| 1913 |
+
type: string
|
| 1914 |
+
PdbHeader:
|
| 1915 |
+
required:
|
| 1916 |
+
- pdbId
|
| 1917 |
+
- title
|
| 1918 |
+
type: object
|
| 1919 |
+
properties:
|
| 1920 |
+
compound:
|
| 1921 |
+
type: object
|
| 1922 |
+
properties: {}
|
| 1923 |
+
pdbId:
|
| 1924 |
+
type: string
|
| 1925 |
+
description: PDB id
|
| 1926 |
+
source:
|
| 1927 |
+
type: object
|
| 1928 |
+
properties: {}
|
| 1929 |
+
title:
|
| 1930 |
+
type: string
|
| 1931 |
+
description: PDB description
|
| 1932 |
+
PfamDomain:
|
| 1933 |
+
required:
|
| 1934 |
+
- name
|
| 1935 |
+
- pfamAccession
|
| 1936 |
+
type: object
|
| 1937 |
+
properties:
|
| 1938 |
+
description:
|
| 1939 |
+
type: string
|
| 1940 |
+
description: PFAM domain description
|
| 1941 |
+
name:
|
| 1942 |
+
type: string
|
| 1943 |
+
description: PFAM domain name
|
| 1944 |
+
pfamAccession:
|
| 1945 |
+
type: string
|
| 1946 |
+
description: PFAM domain accession
|
| 1947 |
+
PfamDomainRange:
|
| 1948 |
+
required:
|
| 1949 |
+
- pfamDomainEnd
|
| 1950 |
+
- pfamDomainId
|
| 1951 |
+
- pfamDomainStart
|
| 1952 |
+
type: object
|
| 1953 |
+
properties:
|
| 1954 |
+
pfamDomainId:
|
| 1955 |
+
type: string
|
| 1956 |
+
description: Pfam domain id
|
| 1957 |
+
pfamDomainStart:
|
| 1958 |
+
type: integer
|
| 1959 |
+
description: Pfam domain start amino acid
|
| 1960 |
+
format: int32
|
| 1961 |
+
pfamDomainEnd:
|
| 1962 |
+
type: integer
|
| 1963 |
+
description: Pfam domain end amino acid
|
| 1964 |
+
format: int32
|
| 1965 |
+
PostTranslationalModification:
|
| 1966 |
+
type: object
|
| 1967 |
+
properties:
|
| 1968 |
+
ensemblTranscriptIds:
|
| 1969 |
+
type: array
|
| 1970 |
+
items:
|
| 1971 |
+
type: string
|
| 1972 |
+
position:
|
| 1973 |
+
type: integer
|
| 1974 |
+
format: int32
|
| 1975 |
+
pubmedIds:
|
| 1976 |
+
type: array
|
| 1977 |
+
items:
|
| 1978 |
+
type: string
|
| 1979 |
+
sequence:
|
| 1980 |
+
type: string
|
| 1981 |
+
type:
|
| 1982 |
+
type: string
|
| 1983 |
+
uniprotAccession:
|
| 1984 |
+
type: string
|
| 1985 |
+
uniprotEntry:
|
| 1986 |
+
type: string
|
| 1987 |
+
PtmAnnotation:
|
| 1988 |
+
type: object
|
| 1989 |
+
properties:
|
| 1990 |
+
annotation:
|
| 1991 |
+
type: array
|
| 1992 |
+
items:
|
| 1993 |
+
type: array
|
| 1994 |
+
items:
|
| 1995 |
+
$ref: '#/components/schemas/PostTranslationalModification'
|
| 1996 |
+
license:
|
| 1997 |
+
type: string
|
| 1998 |
+
PtmFilter:
|
| 1999 |
+
type: object
|
| 2000 |
+
properties:
|
| 2001 |
+
transcriptIds:
|
| 2002 |
+
type: array
|
| 2003 |
+
description: "List of Ensembl transcript IDs. For example [\"ENST00000361390\"\
|
| 2004 |
+
, \"ENST00000361453\", \"ENST00000361624\"]"
|
| 2005 |
+
items:
|
| 2006 |
+
type: string
|
| 2007 |
+
Query:
|
| 2008 |
+
type: object
|
| 2009 |
+
properties:
|
| 2010 |
+
alteration:
|
| 2011 |
+
type: string
|
| 2012 |
+
alterationType:
|
| 2013 |
+
type: string
|
| 2014 |
+
consequence:
|
| 2015 |
+
type: string
|
| 2016 |
+
entrezGeneId:
|
| 2017 |
+
type: integer
|
| 2018 |
+
format: int32
|
| 2019 |
+
hgvs:
|
| 2020 |
+
type: string
|
| 2021 |
+
hugoSymbol:
|
| 2022 |
+
type: string
|
| 2023 |
+
id:
|
| 2024 |
+
type: string
|
| 2025 |
+
proteinEnd:
|
| 2026 |
+
type: integer
|
| 2027 |
+
format: int32
|
| 2028 |
+
proteinStart:
|
| 2029 |
+
type: integer
|
| 2030 |
+
format: int32
|
| 2031 |
+
svType:
|
| 2032 |
+
type: string
|
| 2033 |
+
enum:
|
| 2034 |
+
- DELETION
|
| 2035 |
+
- TRANSLOCATION
|
| 2036 |
+
- DUPLICATION
|
| 2037 |
+
- INSERTION
|
| 2038 |
+
- INVERSION
|
| 2039 |
+
- FUSION
|
| 2040 |
+
- UNKNOWN
|
| 2041 |
+
tumorType:
|
| 2042 |
+
type: string
|
| 2043 |
+
type:
|
| 2044 |
+
type: string
|
| 2045 |
+
Rcv:
|
| 2046 |
+
type: object
|
| 2047 |
+
properties:
|
| 2048 |
+
accession:
|
| 2049 |
+
type: string
|
| 2050 |
+
description: accession
|
| 2051 |
+
clinicalSignificance:
|
| 2052 |
+
type: string
|
| 2053 |
+
description: clinical_significance
|
| 2054 |
+
origin:
|
| 2055 |
+
type: string
|
| 2056 |
+
description: origin
|
| 2057 |
+
preferredName:
|
| 2058 |
+
type: string
|
| 2059 |
+
description: preferred_name
|
| 2060 |
+
SignalAnnotation:
|
| 2061 |
+
type: object
|
| 2062 |
+
properties:
|
| 2063 |
+
annotation:
|
| 2064 |
+
type: array
|
| 2065 |
+
items:
|
| 2066 |
+
$ref: '#/components/schemas/SignalMutation'
|
| 2067 |
+
license:
|
| 2068 |
+
type: string
|
| 2069 |
+
SignalMutation:
|
| 2070 |
+
type: object
|
| 2071 |
+
properties:
|
| 2072 |
+
biallelicCountsByTumorType:
|
| 2073 |
+
type: array
|
| 2074 |
+
description: Biallelic Counts by Tumor Type
|
| 2075 |
+
items:
|
| 2076 |
+
$ref: '#/components/schemas/CountByTumorType'
|
| 2077 |
+
chromosome:
|
| 2078 |
+
type: string
|
| 2079 |
+
description: Chromosome
|
| 2080 |
+
countsByTumorType:
|
| 2081 |
+
type: array
|
| 2082 |
+
description: Counts by Tumor Type
|
| 2083 |
+
items:
|
| 2084 |
+
$ref: '#/components/schemas/CountByTumorType'
|
| 2085 |
+
endPosition:
|
| 2086 |
+
type: integer
|
| 2087 |
+
description: End Position
|
| 2088 |
+
format: int64
|
| 2089 |
+
generalPopulationStats:
|
| 2090 |
+
$ref: '#/components/schemas/GeneralPopulationStats'
|
| 2091 |
+
hugoGeneSymbol:
|
| 2092 |
+
type: string
|
| 2093 |
+
description: Hugo Gene Symbol
|
| 2094 |
+
mskExperReview:
|
| 2095 |
+
type: boolean
|
| 2096 |
+
description: Msk Expert Review
|
| 2097 |
+
example: false
|
| 2098 |
+
mutationStatus:
|
| 2099 |
+
type: string
|
| 2100 |
+
description: Mutation Status
|
| 2101 |
+
overallNumberOfGermlineHomozygous:
|
| 2102 |
+
type: integer
|
| 2103 |
+
format: int32
|
| 2104 |
+
pathogenic:
|
| 2105 |
+
type: string
|
| 2106 |
+
description: Pathogenic
|
| 2107 |
+
penetrance:
|
| 2108 |
+
type: string
|
| 2109 |
+
description: Penetrance
|
| 2110 |
+
qcPassCountsByTumorType:
|
| 2111 |
+
type: array
|
| 2112 |
+
description: QC Pass Counts by Tumor Type
|
| 2113 |
+
items:
|
| 2114 |
+
$ref: '#/components/schemas/CountByTumorType'
|
| 2115 |
+
referenceAllele:
|
| 2116 |
+
type: string
|
| 2117 |
+
description: Reference Allele
|
| 2118 |
+
startPosition:
|
| 2119 |
+
type: integer
|
| 2120 |
+
description: Start Position
|
| 2121 |
+
format: int64
|
| 2122 |
+
statsByTumorType:
|
| 2123 |
+
type: array
|
| 2124 |
+
description: Stats By Tumor Type
|
| 2125 |
+
items:
|
| 2126 |
+
$ref: '#/components/schemas/StatsByTumorType'
|
| 2127 |
+
variantAllele:
|
| 2128 |
+
type: string
|
| 2129 |
+
description: Variant Allele
|
| 2130 |
+
SignalPopulationStats:
|
| 2131 |
+
type: object
|
| 2132 |
+
properties:
|
| 2133 |
+
afr:
|
| 2134 |
+
type: number
|
| 2135 |
+
description: African/African American
|
| 2136 |
+
format: double
|
| 2137 |
+
asj:
|
| 2138 |
+
type: number
|
| 2139 |
+
description: Ashkenazi Jewish
|
| 2140 |
+
format: double
|
| 2141 |
+
asn:
|
| 2142 |
+
type: number
|
| 2143 |
+
description: Asian
|
| 2144 |
+
format: double
|
| 2145 |
+
eur:
|
| 2146 |
+
type: number
|
| 2147 |
+
description: European
|
| 2148 |
+
format: double
|
| 2149 |
+
impact:
|
| 2150 |
+
type: number
|
| 2151 |
+
description: Impact
|
| 2152 |
+
format: double
|
| 2153 |
+
oth:
|
| 2154 |
+
type: number
|
| 2155 |
+
description: Other
|
| 2156 |
+
format: double
|
| 2157 |
+
Snpeff:
|
| 2158 |
+
type: object
|
| 2159 |
+
properties:
|
| 2160 |
+
license:
|
| 2161 |
+
type: string
|
| 2162 |
+
description: license
|
| 2163 |
+
StatsByTumorType:
|
| 2164 |
+
type: object
|
| 2165 |
+
properties:
|
| 2166 |
+
ageAtDx:
|
| 2167 |
+
type: integer
|
| 2168 |
+
description: Median Age at Dx
|
| 2169 |
+
format: int32
|
| 2170 |
+
fBiallelic:
|
| 2171 |
+
type: number
|
| 2172 |
+
description: Frequency Of Biallelic
|
| 2173 |
+
format: double
|
| 2174 |
+
fCancerTypeCount:
|
| 2175 |
+
type: number
|
| 2176 |
+
description: Frequency Of Cancer Type Count
|
| 2177 |
+
format: double
|
| 2178 |
+
hrdScore:
|
| 2179 |
+
$ref: '#/components/schemas/HrdScore'
|
| 2180 |
+
msiScore:
|
| 2181 |
+
type: number
|
| 2182 |
+
description: Msi Score
|
| 2183 |
+
format: double
|
| 2184 |
+
nCancerTypeCount:
|
| 2185 |
+
type: integer
|
| 2186 |
+
description: Number Of Cancer Type Count
|
| 2187 |
+
format: int32
|
| 2188 |
+
numberOfGermlineHomozygous:
|
| 2189 |
+
type: integer
|
| 2190 |
+
description: Number Of Germline Homozygous Per Tumor Type
|
| 2191 |
+
format: int32
|
| 2192 |
+
numberWithSig:
|
| 2193 |
+
type: integer
|
| 2194 |
+
description: Number of Variants with Signature
|
| 2195 |
+
format: int32
|
| 2196 |
+
tmb:
|
| 2197 |
+
type: number
|
| 2198 |
+
description: Median TMB
|
| 2199 |
+
format: double
|
| 2200 |
+
tumorType:
|
| 2201 |
+
type: string
|
| 2202 |
+
description: Tumor Type
|
| 2203 |
+
TranscriptConsequence:
|
| 2204 |
+
required:
|
| 2205 |
+
- transcript_id
|
| 2206 |
+
type: object
|
| 2207 |
+
properties:
|
| 2208 |
+
amino_acids:
|
| 2209 |
+
type: string
|
| 2210 |
+
description: Amino acids
|
| 2211 |
+
canonical:
|
| 2212 |
+
type: string
|
| 2213 |
+
description: Canonical transcript indicator
|
| 2214 |
+
codons:
|
| 2215 |
+
type: string
|
| 2216 |
+
description: Codons
|
| 2217 |
+
consequence_terms:
|
| 2218 |
+
type: array
|
| 2219 |
+
description: List of consequence terms
|
| 2220 |
+
items:
|
| 2221 |
+
type: string
|
| 2222 |
+
exon:
|
| 2223 |
+
type: string
|
| 2224 |
+
gene_id:
|
| 2225 |
+
type: string
|
| 2226 |
+
description: Ensembl gene id
|
| 2227 |
+
gene_symbol:
|
| 2228 |
+
type: string
|
| 2229 |
+
description: Hugo gene symbol
|
| 2230 |
+
hgnc_id:
|
| 2231 |
+
type: string
|
| 2232 |
+
description: HGNC id
|
| 2233 |
+
hgvsc:
|
| 2234 |
+
type: string
|
| 2235 |
+
description: HGVSc
|
| 2236 |
+
hgvsg:
|
| 2237 |
+
type: string
|
| 2238 |
+
description: HGVSg
|
| 2239 |
+
hgvsp:
|
| 2240 |
+
type: string
|
| 2241 |
+
description: HGVSp
|
| 2242 |
+
polyphen_prediction:
|
| 2243 |
+
type: string
|
| 2244 |
+
description: Polyphen Prediction
|
| 2245 |
+
polyphen_score:
|
| 2246 |
+
type: number
|
| 2247 |
+
description: Polyphen Score
|
| 2248 |
+
format: double
|
| 2249 |
+
protein_end:
|
| 2250 |
+
type: integer
|
| 2251 |
+
description: Protein end position
|
| 2252 |
+
format: int32
|
| 2253 |
+
protein_id:
|
| 2254 |
+
type: string
|
| 2255 |
+
description: Ensembl protein id
|
| 2256 |
+
protein_start:
|
| 2257 |
+
type: integer
|
| 2258 |
+
description: Protein start position
|
| 2259 |
+
format: int32
|
| 2260 |
+
refseq_transcript_ids:
|
| 2261 |
+
type: array
|
| 2262 |
+
description: List of RefSeq transcript ids
|
| 2263 |
+
items:
|
| 2264 |
+
type: string
|
| 2265 |
+
sift_prediction:
|
| 2266 |
+
type: string
|
| 2267 |
+
description: Sift Prediction
|
| 2268 |
+
sift_score:
|
| 2269 |
+
type: number
|
| 2270 |
+
description: Sift Score
|
| 2271 |
+
format: double
|
| 2272 |
+
transcript_id:
|
| 2273 |
+
type: string
|
| 2274 |
+
description: Ensembl transcript id
|
| 2275 |
+
uniprotId:
|
| 2276 |
+
type: string
|
| 2277 |
+
variant_allele:
|
| 2278 |
+
type: string
|
| 2279 |
+
description: Variant allele
|
| 2280 |
+
TranscriptConsequenceSummary:
|
| 2281 |
+
required:
|
| 2282 |
+
- transcriptId
|
| 2283 |
+
type: object
|
| 2284 |
+
properties:
|
| 2285 |
+
aminoAcidAlt:
|
| 2286 |
+
type: string
|
| 2287 |
+
description: Alt Amino Acid
|
| 2288 |
+
aminoAcidRef:
|
| 2289 |
+
type: string
|
| 2290 |
+
description: Reference Amino Acid
|
| 2291 |
+
aminoAcids:
|
| 2292 |
+
type: string
|
| 2293 |
+
description: Amino acids change
|
| 2294 |
+
codonChange:
|
| 2295 |
+
type: string
|
| 2296 |
+
description: Codon change
|
| 2297 |
+
consequenceTerms:
|
| 2298 |
+
type: string
|
| 2299 |
+
description: Consequence terms (comma separated)
|
| 2300 |
+
entrezGeneId:
|
| 2301 |
+
type: string
|
| 2302 |
+
description: Entrez gene id
|
| 2303 |
+
exon:
|
| 2304 |
+
type: string
|
| 2305 |
+
hgvsc:
|
| 2306 |
+
type: string
|
| 2307 |
+
description: HGVSc
|
| 2308 |
+
hgvsp:
|
| 2309 |
+
type: string
|
| 2310 |
+
description: HGVSp
|
| 2311 |
+
hgvspShort:
|
| 2312 |
+
type: string
|
| 2313 |
+
description: HGVSp short
|
| 2314 |
+
hugoGeneSymbol:
|
| 2315 |
+
type: string
|
| 2316 |
+
description: Hugo gene symbol
|
| 2317 |
+
polyphenPrediction:
|
| 2318 |
+
type: string
|
| 2319 |
+
description: Polyphen Prediction
|
| 2320 |
+
polyphenScore:
|
| 2321 |
+
type: number
|
| 2322 |
+
description: Polyphen Score
|
| 2323 |
+
format: double
|
| 2324 |
+
proteinPosition:
|
| 2325 |
+
$ref: '#/components/schemas/IntegerRange'
|
| 2326 |
+
refSeq:
|
| 2327 |
+
type: string
|
| 2328 |
+
description: RefSeq id
|
| 2329 |
+
siftPrediction:
|
| 2330 |
+
type: string
|
| 2331 |
+
description: Sift Prediction
|
| 2332 |
+
siftScore:
|
| 2333 |
+
type: number
|
| 2334 |
+
description: Sift Score
|
| 2335 |
+
format: double
|
| 2336 |
+
transcriptId:
|
| 2337 |
+
type: string
|
| 2338 |
+
description: Transcript id
|
| 2339 |
+
uniprotId:
|
| 2340 |
+
type: string
|
| 2341 |
+
description: Uniprot ID
|
| 2342 |
+
variantClassification:
|
| 2343 |
+
type: string
|
| 2344 |
+
description: Variant classification
|
| 2345 |
+
TumorType:
|
| 2346 |
+
type: object
|
| 2347 |
+
properties:
|
| 2348 |
+
children:
|
| 2349 |
+
type: object
|
| 2350 |
+
properties: {}
|
| 2351 |
+
code:
|
| 2352 |
+
type: string
|
| 2353 |
+
color:
|
| 2354 |
+
type: string
|
| 2355 |
+
id:
|
| 2356 |
+
type: integer
|
| 2357 |
+
format: int32
|
| 2358 |
+
level:
|
| 2359 |
+
type: integer
|
| 2360 |
+
format: int32
|
| 2361 |
+
mainType:
|
| 2362 |
+
$ref: '#/components/schemas/MainType'
|
| 2363 |
+
name:
|
| 2364 |
+
type: string
|
| 2365 |
+
parent:
|
| 2366 |
+
type: string
|
| 2367 |
+
tissue:
|
| 2368 |
+
type: string
|
| 2369 |
+
tumorForm:
|
| 2370 |
+
type: string
|
| 2371 |
+
enum:
|
| 2372 |
+
- SOLID
|
| 2373 |
+
- LIQUID
|
| 2374 |
+
description: OncoTree Detailed Cancer Type
|
| 2375 |
+
UntranslatedRegion:
|
| 2376 |
+
required:
|
| 2377 |
+
- end
|
| 2378 |
+
- start
|
| 2379 |
+
- strand
|
| 2380 |
+
- type
|
| 2381 |
+
type: object
|
| 2382 |
+
properties:
|
| 2383 |
+
type:
|
| 2384 |
+
type: string
|
| 2385 |
+
description: UTR Type
|
| 2386 |
+
start:
|
| 2387 |
+
type: integer
|
| 2388 |
+
description: Start position of UTR
|
| 2389 |
+
format: int32
|
| 2390 |
+
end:
|
| 2391 |
+
type: integer
|
| 2392 |
+
description: End position of UTR
|
| 2393 |
+
format: int32
|
| 2394 |
+
strand:
|
| 2395 |
+
type: integer
|
| 2396 |
+
description: "Strand UTR is on, -1 for - and 1 for +"
|
| 2397 |
+
format: int32
|
| 2398 |
+
VariantAnnotation:
|
| 2399 |
+
required:
|
| 2400 |
+
- id
|
| 2401 |
+
- intergenic_consequences
|
| 2402 |
+
- originalVariantQuery
|
| 2403 |
+
- variant
|
| 2404 |
+
type: object
|
| 2405 |
+
properties:
|
| 2406 |
+
allele_string:
|
| 2407 |
+
type: string
|
| 2408 |
+
description: "Allele string (e.g: A/T)"
|
| 2409 |
+
annotationJSON:
|
| 2410 |
+
type: string
|
| 2411 |
+
description: Annotation data as JSON string
|
| 2412 |
+
annotation_summary:
|
| 2413 |
+
$ref: '#/components/schemas/VariantAnnotationSummary'
|
| 2414 |
+
assembly_name:
|
| 2415 |
+
type: string
|
| 2416 |
+
description: NCBI build number
|
| 2417 |
+
clinvar:
|
| 2418 |
+
$ref: '#/components/schemas/ClinvarAnnotation'
|
| 2419 |
+
colocatedVariants:
|
| 2420 |
+
type: array
|
| 2421 |
+
items:
|
| 2422 |
+
$ref: '#/components/schemas/ColocatedVariant'
|
| 2423 |
+
end:
|
| 2424 |
+
type: integer
|
| 2425 |
+
description: End position
|
| 2426 |
+
format: int32
|
| 2427 |
+
hgvsg:
|
| 2428 |
+
type: string
|
| 2429 |
+
hotspots:
|
| 2430 |
+
$ref: '#/components/schemas/HotspotAnnotation'
|
| 2431 |
+
id:
|
| 2432 |
+
type: string
|
| 2433 |
+
description: Variant id
|
| 2434 |
+
intergenic_consequences:
|
| 2435 |
+
type: array
|
| 2436 |
+
description: intergenicConsequences
|
| 2437 |
+
items:
|
| 2438 |
+
$ref: '#/components/schemas/IntergenicConsequences'
|
| 2439 |
+
most_severe_consequence:
|
| 2440 |
+
type: string
|
| 2441 |
+
description: Most severe consequence
|
| 2442 |
+
mutation_assessor:
|
| 2443 |
+
$ref: '#/components/schemas/MutationAssessorAnnotation'
|
| 2444 |
+
my_variant_info:
|
| 2445 |
+
$ref: '#/components/schemas/MyVariantInfoAnnotation'
|
| 2446 |
+
nucleotide_context:
|
| 2447 |
+
$ref: '#/components/schemas/NucleotideContextAnnotation'
|
| 2448 |
+
oncokb:
|
| 2449 |
+
$ref: '#/components/schemas/OncokbAnnotation'
|
| 2450 |
+
originalVariantQuery:
|
| 2451 |
+
type: string
|
| 2452 |
+
description: Original variant query
|
| 2453 |
+
ptms:
|
| 2454 |
+
$ref: '#/components/schemas/PtmAnnotation'
|
| 2455 |
+
seq_region_name:
|
| 2456 |
+
type: string
|
| 2457 |
+
description: Chromosome
|
| 2458 |
+
signalAnnotation:
|
| 2459 |
+
$ref: '#/components/schemas/SignalAnnotation'
|
| 2460 |
+
start:
|
| 2461 |
+
type: integer
|
| 2462 |
+
description: Start position
|
| 2463 |
+
format: int32
|
| 2464 |
+
strand:
|
| 2465 |
+
type: integer
|
| 2466 |
+
description: Strand (negative or positive)
|
| 2467 |
+
format: int32
|
| 2468 |
+
successfully_annotated:
|
| 2469 |
+
type: boolean
|
| 2470 |
+
description: Status flag indicating whether variant was succesfully annotated
|
| 2471 |
+
example: false
|
| 2472 |
+
transcript_consequences:
|
| 2473 |
+
type: array
|
| 2474 |
+
description: List of transcripts
|
| 2475 |
+
items:
|
| 2476 |
+
$ref: '#/components/schemas/TranscriptConsequence'
|
| 2477 |
+
variant:
|
| 2478 |
+
type: string
|
| 2479 |
+
description: Variant key
|
| 2480 |
+
VariantAnnotationSummary:
|
| 2481 |
+
required:
|
| 2482 |
+
- transcriptConsequenceSummaries
|
| 2483 |
+
- transcriptConsequenceSummary
|
| 2484 |
+
- transcriptConsequences
|
| 2485 |
+
- variant
|
| 2486 |
+
type: object
|
| 2487 |
+
properties:
|
| 2488 |
+
assemblyName:
|
| 2489 |
+
type: string
|
| 2490 |
+
description: Assembly name
|
| 2491 |
+
canonicalTranscriptId:
|
| 2492 |
+
type: string
|
| 2493 |
+
description: Canonical transcript id
|
| 2494 |
+
genomicLocation:
|
| 2495 |
+
$ref: '#/components/schemas/GenomicLocation'
|
| 2496 |
+
strandSign:
|
| 2497 |
+
type: string
|
| 2498 |
+
description: Strand (- or +)
|
| 2499 |
+
transcriptConsequenceSummaries:
|
| 2500 |
+
type: array
|
| 2501 |
+
description: All transcript consequence summaries
|
| 2502 |
+
items:
|
| 2503 |
+
$ref: '#/components/schemas/TranscriptConsequenceSummary'
|
| 2504 |
+
transcriptConsequenceSummary:
|
| 2505 |
+
$ref: '#/components/schemas/TranscriptConsequenceSummary'
|
| 2506 |
+
transcriptConsequences:
|
| 2507 |
+
type: array
|
| 2508 |
+
description: "(Deprecated) Transcript consequence summaries (list of one\
|
| 2509 |
+
\ when using annotation/, multiple when using annotation/summary/"
|
| 2510 |
+
items:
|
| 2511 |
+
$ref: '#/components/schemas/TranscriptConsequenceSummary'
|
| 2512 |
+
variant:
|
| 2513 |
+
type: string
|
| 2514 |
+
description: Variant key
|
| 2515 |
+
variantType:
|
| 2516 |
+
type: string
|
| 2517 |
+
description: Variant type
|
| 2518 |
+
Vcf:
|
| 2519 |
+
type: object
|
| 2520 |
+
properties:
|
| 2521 |
+
alt:
|
| 2522 |
+
type: string
|
| 2523 |
+
description: alt
|
| 2524 |
+
position:
|
| 2525 |
+
type: string
|
| 2526 |
+
description: position
|
| 2527 |
+
ref:
|
| 2528 |
+
type: string
|
| 2529 |
+
description: ref
|
| 2530 |
+
Version:
|
| 2531 |
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.1
|
| 2 |
+
info:
|
| 3 |
+
title: LanguageTool API
|
| 4 |
+
description: Check texts for style and grammar issues with LanguageTool. See <a
|
| 5 |
+
href='http://wiki.languagetool.org/public-http-api'>our wiki</a> for access limitations.
|
| 6 |
+
version: 1.0.2
|
| 7 |
+
servers:
|
| 8 |
+
- url: http://localhost:30101/v2
|
| 9 |
+
paths:
|
| 10 |
+
/check:
|
| 11 |
+
post:
|
| 12 |
+
summary: Check a text
|
| 13 |
+
description: The main feature - check a text with LanguageTool for possible
|
| 14 |
+
style and grammar issues.
|
| 15 |
+
operationId: check
|
| 16 |
+
requestBody:
|
| 17 |
+
content:
|
| 18 |
+
application/x-www-form-urlencoded:
|
| 19 |
+
schema:
|
| 20 |
+
required:
|
| 21 |
+
- language
|
| 22 |
+
type: object
|
| 23 |
+
properties:
|
| 24 |
+
text:
|
| 25 |
+
type: string
|
| 26 |
+
description: The text to be checked. This or 'data' is required.
|
| 27 |
+
data:
|
| 28 |
+
type: string
|
| 29 |
+
description: |-
|
| 30 |
+
The text to be checked, given as a JSON document that specifies what's text and what's markup. This or 'text' is required. Markup will be ignored when looking for errors. Example text: <pre>A <b>test</b></pre>JSON for the example text: <pre>{"annotation":[
|
| 31 |
+
{"text": "A "},
|
| 32 |
+
{"markup": "<b>"},
|
| 33 |
+
{"text": "test"},
|
| 34 |
+
{"markup": "</b>"}
|
| 35 |
+
]}</pre> <p>If you have markup that should be interpreted as whitespace, like <tt><p></tt> in HTML, you can have it interpreted like this: <pre>{"markup": "<p>", "interpretAs": "\n\n"}</pre><p>The 'data' feature is not limited to HTML or XML, it can be used for any kind of markup.
|
| 36 |
+
language:
|
| 37 |
+
type: string
|
| 38 |
+
description: "A language code like `en-US`, `de-DE`, `fr`, or `auto`\
|
| 39 |
+
\ to guess the language automatically (see `preferredVariants`\
|
| 40 |
+
\ below). For languages with variants (English, German, Portuguese)\
|
| 41 |
+
\ spell checking will only be activated when you specify the variant,\
|
| 42 |
+
\ e.g. `en-GB` instead of just `en`."
|
| 43 |
+
altLanguages:
|
| 44 |
+
type: string
|
| 45 |
+
description: "EXPERIMENTAL: Comma-separated list of language codes\
|
| 46 |
+
\ to check if a word is not similar to one of the main language\
|
| 47 |
+
\ (parameter `language`). Unknown words that are similar to a\
|
| 48 |
+
\ word from the main language will still be considered errors\
|
| 49 |
+
\ but with type `Hint`. For languages with variants (English,\
|
| 50 |
+
\ German, Portuguese) you need to specify the variant, e.g. `en-GB`\
|
| 51 |
+
\ instead of just `en`."
|
| 52 |
+
motherTongue:
|
| 53 |
+
type: string
|
| 54 |
+
description: "A language code of the user's native language, enabling\
|
| 55 |
+
\ false friends checks for some language pairs."
|
| 56 |
+
preferredVariants:
|
| 57 |
+
type: string
|
| 58 |
+
description: "Comma-separated list of preferred language variants.\
|
| 59 |
+
\ The language detector used with `language=auto` can detect e.g.\
|
| 60 |
+
\ English, but it cannot decide whether British English or American\
|
| 61 |
+
\ English is used. Thus this parameter can be used to specify\
|
| 62 |
+
\ the preferred variants like `en-GB` and `de-AT`. Only available\
|
| 63 |
+
\ with `language=auto`."
|
| 64 |
+
enabledRules:
|
| 65 |
+
type: string
|
| 66 |
+
description: "IDs of rules to be enabled, comma-separated"
|
| 67 |
+
disabledRules:
|
| 68 |
+
type: string
|
| 69 |
+
description: "IDs of rules to be disabled, comma-separated"
|
| 70 |
+
enabledCategories:
|
| 71 |
+
type: string
|
| 72 |
+
description: "IDs of categories to be enabled, comma-separated"
|
| 73 |
+
disabledCategories:
|
| 74 |
+
type: string
|
| 75 |
+
description: "IDs of categories to be disabled, comma-separated"
|
| 76 |
+
enabledOnly:
|
| 77 |
+
type: boolean
|
| 78 |
+
description: "If true, only the rules and categories whose IDs are\
|
| 79 |
+
\ specified with `enabledRules` or `enabledCategories` are enabled."
|
| 80 |
+
default: false
|
| 81 |
+
required: true
|
| 82 |
+
responses:
|
| 83 |
+
"200":
|
| 84 |
+
description: the result of checking the text
|
| 85 |
+
content:
|
| 86 |
+
application/json:
|
| 87 |
+
schema:
|
| 88 |
+
type: object
|
| 89 |
+
properties:
|
| 90 |
+
software:
|
| 91 |
+
required:
|
| 92 |
+
- apiVersion
|
| 93 |
+
- buildDate
|
| 94 |
+
- name
|
| 95 |
+
- version
|
| 96 |
+
type: object
|
| 97 |
+
properties:
|
| 98 |
+
name:
|
| 99 |
+
type: string
|
| 100 |
+
description: Usually 'LanguageTool'.
|
| 101 |
+
version:
|
| 102 |
+
type: string
|
| 103 |
+
description: A version string like '3.3' or '3.4-SNAPSHOT'.
|
| 104 |
+
buildDate:
|
| 105 |
+
type: string
|
| 106 |
+
description: "Date when the software was built, e.g. '2016-05-25'."
|
| 107 |
+
apiVersion:
|
| 108 |
+
type: integer
|
| 109 |
+
description: "Version of this API response. We don't expect\
|
| 110 |
+
\ to make incompatible changes, so this can also be increased\
|
| 111 |
+
\ for newly added fields."
|
| 112 |
+
status:
|
| 113 |
+
type: string
|
| 114 |
+
description: "An optional warning, e.g. when the API format\
|
| 115 |
+
\ is not stable."
|
| 116 |
+
premium:
|
| 117 |
+
type: boolean
|
| 118 |
+
description: true if you're using a Premium account with all
|
| 119 |
+
the premium text checks (since LanguageTool 4.2)
|
| 120 |
+
language:
|
| 121 |
+
required:
|
| 122 |
+
- code
|
| 123 |
+
- detectedLanguage
|
| 124 |
+
- name
|
| 125 |
+
type: object
|
| 126 |
+
properties:
|
| 127 |
+
name:
|
| 128 |
+
type: string
|
| 129 |
+
description: Language name like 'French' or 'English (US)'.
|
| 130 |
+
code:
|
| 131 |
+
type: string
|
| 132 |
+
description: "ISO 639-1 code like 'en', 'en-US', or 'ca-ES-valencia'."
|
| 133 |
+
detectedLanguage:
|
| 134 |
+
required:
|
| 135 |
+
- code
|
| 136 |
+
- name
|
| 137 |
+
type: object
|
| 138 |
+
properties:
|
| 139 |
+
name:
|
| 140 |
+
type: string
|
| 141 |
+
description: Language name like 'French' or 'English (US)'.
|
| 142 |
+
code:
|
| 143 |
+
type: string
|
| 144 |
+
description: "ISO 639-1 code like 'en', 'en-US', or 'ca-ES-valencia'."
|
| 145 |
+
confidence:
|
| 146 |
+
type: number
|
| 147 |
+
description: Estimate of the probability of the submitted
|
| 148 |
+
text being in the detected language. Between 0 and 1.
|
| 149 |
+
description: The automatically detected text language (might
|
| 150 |
+
be different from the language actually used for checking).
|
| 151 |
+
description: The language used for checking the text.
|
| 152 |
+
matches:
|
| 153 |
+
type: array
|
| 154 |
+
items:
|
| 155 |
+
required:
|
| 156 |
+
- context
|
| 157 |
+
- length
|
| 158 |
+
- message
|
| 159 |
+
- offset
|
| 160 |
+
- replacements
|
| 161 |
+
- sentence
|
| 162 |
+
type: object
|
| 163 |
+
properties:
|
| 164 |
+
message:
|
| 165 |
+
type: string
|
| 166 |
+
description: Message about the error displayed to the user.
|
| 167 |
+
shortMessage:
|
| 168 |
+
type: string
|
| 169 |
+
description: An optional shorter version of 'message'.
|
| 170 |
+
offset:
|
| 171 |
+
type: integer
|
| 172 |
+
description: The 0-based character offset of the error in
|
| 173 |
+
the text.
|
| 174 |
+
length:
|
| 175 |
+
type: integer
|
| 176 |
+
description: The length of the error in characters.
|
| 177 |
+
replacements:
|
| 178 |
+
type: array
|
| 179 |
+
description: "Replacements that might correct the error.\
|
| 180 |
+
\ The array can be empty, in this case there is no suggested\
|
| 181 |
+
\ replacement."
|
| 182 |
+
items:
|
| 183 |
+
type: object
|
| 184 |
+
properties:
|
| 185 |
+
value:
|
| 186 |
+
type: string
|
| 187 |
+
description: the replacement string
|
| 188 |
+
context:
|
| 189 |
+
required:
|
| 190 |
+
- length
|
| 191 |
+
- offset
|
| 192 |
+
- text
|
| 193 |
+
type: object
|
| 194 |
+
properties:
|
| 195 |
+
text:
|
| 196 |
+
type: string
|
| 197 |
+
description: "Context of the error, i.e. the error and\
|
| 198 |
+
\ some text to the left and to the left."
|
| 199 |
+
offset:
|
| 200 |
+
type: integer
|
| 201 |
+
description: The 0-based character offset of the error
|
| 202 |
+
in the context text.
|
| 203 |
+
length:
|
| 204 |
+
type: integer
|
| 205 |
+
description: The length of the error in characters in
|
| 206 |
+
the context.
|
| 207 |
+
sentence:
|
| 208 |
+
type: string
|
| 209 |
+
description: The sentence the error occurred in (since LanguageTool
|
| 210 |
+
4.0 or later)
|
| 211 |
+
rule:
|
| 212 |
+
required:
|
| 213 |
+
- category
|
| 214 |
+
- description
|
| 215 |
+
- id
|
| 216 |
+
type: object
|
| 217 |
+
properties:
|
| 218 |
+
id:
|
| 219 |
+
type: string
|
| 220 |
+
description: An rule's identifier that's unique for
|
| 221 |
+
this language.
|
| 222 |
+
subId:
|
| 223 |
+
type: string
|
| 224 |
+
description: "An optional sub identifier of the rule,\
|
| 225 |
+
\ used when several rules are grouped."
|
| 226 |
+
description:
|
| 227 |
+
type: string
|
| 228 |
+
urls:
|
| 229 |
+
type: array
|
| 230 |
+
description: An optional array of URLs with a more detailed
|
| 231 |
+
description of the error.
|
| 232 |
+
items:
|
| 233 |
+
type: object
|
| 234 |
+
properties:
|
| 235 |
+
value:
|
| 236 |
+
type: string
|
| 237 |
+
description: the URL
|
| 238 |
+
issueType:
|
| 239 |
+
type: string
|
| 240 |
+
description: "The <a href=\"http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#lqissue-typevalues\"\
|
| 241 |
+
>Localization Quality Issue Type</a>. This is not\
|
| 242 |
+
\ defined for all languages, in which case it will\
|
| 243 |
+
\ always be 'Uncategorized'."
|
| 244 |
+
category:
|
| 245 |
+
type: object
|
| 246 |
+
properties:
|
| 247 |
+
id:
|
| 248 |
+
type: string
|
| 249 |
+
description: A category's identifier that's unique
|
| 250 |
+
for this language.
|
| 251 |
+
name:
|
| 252 |
+
type: string
|
| 253 |
+
description: A short description of the category.
|
| 254 |
+
/languages:
|
| 255 |
+
get:
|
| 256 |
+
summary: Get a list of supported languages.
|
| 257 |
+
operationId: languages
|
| 258 |
+
responses:
|
| 259 |
+
"200":
|
| 260 |
+
description: An array of language objects.
|
| 261 |
+
content:
|
| 262 |
+
application/json:
|
| 263 |
+
schema:
|
| 264 |
+
type: array
|
| 265 |
+
items:
|
| 266 |
+
required:
|
| 267 |
+
- code
|
| 268 |
+
- longCode
|
| 269 |
+
- name
|
| 270 |
+
type: object
|
| 271 |
+
properties:
|
| 272 |
+
name:
|
| 273 |
+
type: string
|
| 274 |
+
description: a language name like 'French' or 'English (Australia)'
|
| 275 |
+
code:
|
| 276 |
+
type: string
|
| 277 |
+
description: a language code like 'en'
|
| 278 |
+
longCode:
|
| 279 |
+
type: string
|
| 280 |
+
description: a language code like 'en-US' or 'ca-ES-valencia'
|
| 281 |
+
components: {}
|
| 282 |
+
x-original-swagger-version: "2.0"
|
aratrl-openapi/market.yaml
ADDED
|
@@ -0,0 +1,2276 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.3
|
| 2 |
+
info:
|
| 3 |
+
title: Api Documentation
|
| 4 |
+
description: Api Documentation
|
| 5 |
+
termsOfService: urn:tos
|
| 6 |
+
contact: {}
|
| 7 |
+
license:
|
| 8 |
+
name: Apache 2.0
|
| 9 |
+
url: http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
version: '1.0'
|
| 11 |
+
servers:
|
| 12 |
+
#- url: http://localhost:8081/products
|
| 13 |
+
#- url: http://localhost:8080
|
| 14 |
+
- url: http://localhost:30117
|
| 15 |
+
description: Inferred Url
|
| 16 |
+
tags:
|
| 17 |
+
- name: backend-controller
|
| 18 |
+
description: Backend Controller
|
| 19 |
+
- name: basic-error-controller
|
| 20 |
+
description: Basic Error Controller
|
| 21 |
+
- name: cart-controller
|
| 22 |
+
description: Cart Controller
|
| 23 |
+
- name: checkout-controller
|
| 24 |
+
description: Checkout Controller
|
| 25 |
+
- name: customer-controller
|
| 26 |
+
description: Customer Controller
|
| 27 |
+
- name: distillery-controller
|
| 28 |
+
description: Distillery Controller
|
| 29 |
+
- name: frontend-controller
|
| 30 |
+
description: Frontend Controller
|
| 31 |
+
- name: orders-controller
|
| 32 |
+
description: Orders Controller
|
| 33 |
+
- name: product-controller
|
| 34 |
+
description: Product Controller
|
| 35 |
+
- name: region-controller
|
| 36 |
+
description: Region Controller
|
| 37 |
+
- name: showcase-controller
|
| 38 |
+
description: Showcase Controller
|
| 39 |
+
- name: storage-controller
|
| 40 |
+
description: Storage Controller
|
| 41 |
+
paths:
|
| 42 |
+
/admin:
|
| 43 |
+
get:
|
| 44 |
+
tags:
|
| 45 |
+
- backend-controller
|
| 46 |
+
summary: index
|
| 47 |
+
operationId: indexUsingGET
|
| 48 |
+
responses:
|
| 49 |
+
'200':
|
| 50 |
+
description: OK
|
| 51 |
+
content:
|
| 52 |
+
'*/*':
|
| 53 |
+
schema:
|
| 54 |
+
type: string
|
| 55 |
+
'401':
|
| 56 |
+
description: Unauthorized
|
| 57 |
+
'403':
|
| 58 |
+
description: Forbidden
|
| 59 |
+
'404':
|
| 60 |
+
description: Not Found
|
| 61 |
+
/admin/:
|
| 62 |
+
get:
|
| 63 |
+
tags:
|
| 64 |
+
- backend-controller
|
| 65 |
+
summary: index
|
| 66 |
+
operationId: indexUsingGET_1
|
| 67 |
+
responses:
|
| 68 |
+
'200':
|
| 69 |
+
description: OK
|
| 70 |
+
content:
|
| 71 |
+
'*/*':
|
| 72 |
+
schema:
|
| 73 |
+
type: string
|
| 74 |
+
'401':
|
| 75 |
+
description: Unauthorized
|
| 76 |
+
'403':
|
| 77 |
+
description: Forbidden
|
| 78 |
+
'404':
|
| 79 |
+
description: Not Found
|
| 80 |
+
/admin/index:
|
| 81 |
+
get:
|
| 82 |
+
tags:
|
| 83 |
+
- backend-controller
|
| 84 |
+
summary: index
|
| 85 |
+
operationId: indexUsingGET_2
|
| 86 |
+
responses:
|
| 87 |
+
'200':
|
| 88 |
+
description: OK
|
| 89 |
+
content:
|
| 90 |
+
'*/*':
|
| 91 |
+
schema:
|
| 92 |
+
type: string
|
| 93 |
+
'401':
|
| 94 |
+
description: Unauthorized
|
| 95 |
+
'403':
|
| 96 |
+
description: Forbidden
|
| 97 |
+
'404':
|
| 98 |
+
description: Not Found
|
| 99 |
+
/error:
|
| 100 |
+
get:
|
| 101 |
+
tags:
|
| 102 |
+
- basic-error-controller
|
| 103 |
+
summary: error
|
| 104 |
+
operationId: errorUsingGET
|
| 105 |
+
responses:
|
| 106 |
+
'200':
|
| 107 |
+
description: OK
|
| 108 |
+
content:
|
| 109 |
+
'*/*':
|
| 110 |
+
schema:
|
| 111 |
+
type: object
|
| 112 |
+
additionalProperties:
|
| 113 |
+
type: object
|
| 114 |
+
'401':
|
| 115 |
+
description: Unauthorized
|
| 116 |
+
'403':
|
| 117 |
+
description: Forbidden
|
| 118 |
+
'404':
|
| 119 |
+
description: Not Found
|
| 120 |
+
put:
|
| 121 |
+
tags:
|
| 122 |
+
- basic-error-controller
|
| 123 |
+
summary: error
|
| 124 |
+
operationId: errorUsingPUT
|
| 125 |
+
responses:
|
| 126 |
+
'200':
|
| 127 |
+
description: OK
|
| 128 |
+
content:
|
| 129 |
+
'*/*':
|
| 130 |
+
schema:
|
| 131 |
+
type: object
|
| 132 |
+
additionalProperties:
|
| 133 |
+
type: object
|
| 134 |
+
'201':
|
| 135 |
+
description: Created
|
| 136 |
+
'401':
|
| 137 |
+
description: Unauthorized
|
| 138 |
+
'403':
|
| 139 |
+
description: Forbidden
|
| 140 |
+
'404':
|
| 141 |
+
description: Not Found
|
| 142 |
+
post:
|
| 143 |
+
tags:
|
| 144 |
+
- basic-error-controller
|
| 145 |
+
summary: error
|
| 146 |
+
operationId: errorUsingPOST
|
| 147 |
+
responses:
|
| 148 |
+
'200':
|
| 149 |
+
description: OK
|
| 150 |
+
content:
|
| 151 |
+
'*/*':
|
| 152 |
+
schema:
|
| 153 |
+
type: object
|
| 154 |
+
additionalProperties:
|
| 155 |
+
type: object
|
| 156 |
+
'201':
|
| 157 |
+
description: Created
|
| 158 |
+
'401':
|
| 159 |
+
description: Unauthorized
|
| 160 |
+
'403':
|
| 161 |
+
description: Forbidden
|
| 162 |
+
'404':
|
| 163 |
+
description: Not Found
|
| 164 |
+
delete:
|
| 165 |
+
tags:
|
| 166 |
+
- basic-error-controller
|
| 167 |
+
summary: error
|
| 168 |
+
operationId: errorUsingDELETE
|
| 169 |
+
responses:
|
| 170 |
+
'200':
|
| 171 |
+
description: OK
|
| 172 |
+
content:
|
| 173 |
+
'*/*':
|
| 174 |
+
schema:
|
| 175 |
+
type: object
|
| 176 |
+
additionalProperties:
|
| 177 |
+
type: object
|
| 178 |
+
'204':
|
| 179 |
+
description: No Content
|
| 180 |
+
'401':
|
| 181 |
+
description: Unauthorized
|
| 182 |
+
'403':
|
| 183 |
+
description: Forbidden
|
| 184 |
+
options:
|
| 185 |
+
tags:
|
| 186 |
+
- basic-error-controller
|
| 187 |
+
summary: error
|
| 188 |
+
operationId: errorUsingOPTIONS
|
| 189 |
+
responses:
|
| 190 |
+
'200':
|
| 191 |
+
description: OK
|
| 192 |
+
content:
|
| 193 |
+
'*/*':
|
| 194 |
+
schema:
|
| 195 |
+
type: object
|
| 196 |
+
additionalProperties:
|
| 197 |
+
type: object
|
| 198 |
+
'204':
|
| 199 |
+
description: No Content
|
| 200 |
+
'401':
|
| 201 |
+
description: Unauthorized
|
| 202 |
+
'403':
|
| 203 |
+
description: Forbidden
|
| 204 |
+
head:
|
| 205 |
+
tags:
|
| 206 |
+
- basic-error-controller
|
| 207 |
+
summary: error
|
| 208 |
+
operationId: errorUsingHEAD
|
| 209 |
+
responses:
|
| 210 |
+
'200':
|
| 211 |
+
description: OK
|
| 212 |
+
content:
|
| 213 |
+
'*/*':
|
| 214 |
+
schema:
|
| 215 |
+
type: object
|
| 216 |
+
additionalProperties:
|
| 217 |
+
type: object
|
| 218 |
+
'204':
|
| 219 |
+
description: No Content
|
| 220 |
+
'401':
|
| 221 |
+
description: Unauthorized
|
| 222 |
+
'403':
|
| 223 |
+
description: Forbidden
|
| 224 |
+
patch:
|
| 225 |
+
tags:
|
| 226 |
+
- basic-error-controller
|
| 227 |
+
summary: error
|
| 228 |
+
operationId: errorUsingPATCH
|
| 229 |
+
responses:
|
| 230 |
+
'200':
|
| 231 |
+
description: OK
|
| 232 |
+
content:
|
| 233 |
+
'*/*':
|
| 234 |
+
schema:
|
| 235 |
+
type: object
|
| 236 |
+
additionalProperties:
|
| 237 |
+
type: object
|
| 238 |
+
'204':
|
| 239 |
+
description: No Content
|
| 240 |
+
'401':
|
| 241 |
+
description: Unauthorized
|
| 242 |
+
'403':
|
| 243 |
+
description: Forbidden
|
| 244 |
+
trace:
|
| 245 |
+
tags:
|
| 246 |
+
- basic-error-controller
|
| 247 |
+
summary: error
|
| 248 |
+
operationId: errorUsingTRACE
|
| 249 |
+
responses:
|
| 250 |
+
'200':
|
| 251 |
+
description: OK
|
| 252 |
+
content:
|
| 253 |
+
'*/*':
|
| 254 |
+
schema:
|
| 255 |
+
type: object
|
| 256 |
+
additionalProperties:
|
| 257 |
+
type: object
|
| 258 |
+
'204':
|
| 259 |
+
description: No Content
|
| 260 |
+
'401':
|
| 261 |
+
description: Unauthorized
|
| 262 |
+
'403':
|
| 263 |
+
description: Forbidden
|
| 264 |
+
/cart:
|
| 265 |
+
get:
|
| 266 |
+
tags:
|
| 267 |
+
- cart-controller
|
| 268 |
+
summary: getCart
|
| 269 |
+
operationId: getCartUsingGET
|
| 270 |
+
parameters:
|
| 271 |
+
- name: cartItems[0].productId
|
| 272 |
+
in: query
|
| 273 |
+
required: false
|
| 274 |
+
style: form
|
| 275 |
+
schema:
|
| 276 |
+
type: integer
|
| 277 |
+
format: int64
|
| 278 |
+
- name: cartItems[0].quantity
|
| 279 |
+
in: query
|
| 280 |
+
required: false
|
| 281 |
+
style: form
|
| 282 |
+
schema:
|
| 283 |
+
type: integer
|
| 284 |
+
format: int32
|
| 285 |
+
- name: deliveryCost
|
| 286 |
+
in: query
|
| 287 |
+
required: false
|
| 288 |
+
style: form
|
| 289 |
+
schema:
|
| 290 |
+
type: integer
|
| 291 |
+
format: int32
|
| 292 |
+
- name: deliveryIncluded
|
| 293 |
+
in: query
|
| 294 |
+
required: false
|
| 295 |
+
style: form
|
| 296 |
+
schema:
|
| 297 |
+
type: boolean
|
| 298 |
+
- name: name
|
| 299 |
+
in: query
|
| 300 |
+
required: false
|
| 301 |
+
style: form
|
| 302 |
+
schema:
|
| 303 |
+
type: string
|
| 304 |
+
- name: productsCost
|
| 305 |
+
in: query
|
| 306 |
+
required: false
|
| 307 |
+
style: form
|
| 308 |
+
schema:
|
| 309 |
+
type: number
|
| 310 |
+
format: double
|
| 311 |
+
- name: totalCost
|
| 312 |
+
in: query
|
| 313 |
+
required: false
|
| 314 |
+
style: form
|
| 315 |
+
schema:
|
| 316 |
+
type: number
|
| 317 |
+
format: double
|
| 318 |
+
- name: totalItems
|
| 319 |
+
in: query
|
| 320 |
+
required: false
|
| 321 |
+
style: form
|
| 322 |
+
schema:
|
| 323 |
+
type: integer
|
| 324 |
+
format: int32
|
| 325 |
+
- name: user
|
| 326 |
+
in: query
|
| 327 |
+
required: false
|
| 328 |
+
style: form
|
| 329 |
+
schema:
|
| 330 |
+
type: string
|
| 331 |
+
responses:
|
| 332 |
+
'200':
|
| 333 |
+
description: OK
|
| 334 |
+
content:
|
| 335 |
+
'*/*':
|
| 336 |
+
schema:
|
| 337 |
+
type: string
|
| 338 |
+
'401':
|
| 339 |
+
description: Unauthorized
|
| 340 |
+
'403':
|
| 341 |
+
description: Forbidden
|
| 342 |
+
'404':
|
| 343 |
+
description: Not Found
|
| 344 |
+
put:
|
| 345 |
+
tags:
|
| 346 |
+
- cart-controller
|
| 347 |
+
summary: updateCartByAjax
|
| 348 |
+
operationId: updateCartByAjaxUsingPUT
|
| 349 |
+
parameters:
|
| 350 |
+
- name: cartItems[0].productId
|
| 351 |
+
in: query
|
| 352 |
+
required: false
|
| 353 |
+
style: form
|
| 354 |
+
schema:
|
| 355 |
+
type: integer
|
| 356 |
+
format: int64
|
| 357 |
+
- name: cartItems[0].quantity
|
| 358 |
+
in: query
|
| 359 |
+
required: false
|
| 360 |
+
style: form
|
| 361 |
+
schema:
|
| 362 |
+
type: integer
|
| 363 |
+
format: int32
|
| 364 |
+
- name: deliveryCost
|
| 365 |
+
in: query
|
| 366 |
+
required: false
|
| 367 |
+
style: form
|
| 368 |
+
schema:
|
| 369 |
+
type: integer
|
| 370 |
+
format: int32
|
| 371 |
+
- name: deliveryIncluded
|
| 372 |
+
in: query
|
| 373 |
+
required: false
|
| 374 |
+
style: form
|
| 375 |
+
schema:
|
| 376 |
+
type: boolean
|
| 377 |
+
- name: name
|
| 378 |
+
in: query
|
| 379 |
+
required: false
|
| 380 |
+
style: form
|
| 381 |
+
schema:
|
| 382 |
+
type: string
|
| 383 |
+
- name: productsCost
|
| 384 |
+
in: query
|
| 385 |
+
required: false
|
| 386 |
+
style: form
|
| 387 |
+
schema:
|
| 388 |
+
type: number
|
| 389 |
+
format: double
|
| 390 |
+
- name: totalCost
|
| 391 |
+
in: query
|
| 392 |
+
required: false
|
| 393 |
+
style: form
|
| 394 |
+
schema:
|
| 395 |
+
type: number
|
| 396 |
+
format: double
|
| 397 |
+
- name: totalItems
|
| 398 |
+
in: query
|
| 399 |
+
required: false
|
| 400 |
+
style: form
|
| 401 |
+
schema:
|
| 402 |
+
type: integer
|
| 403 |
+
format: int32
|
| 404 |
+
- name: user
|
| 405 |
+
in: query
|
| 406 |
+
required: false
|
| 407 |
+
style: form
|
| 408 |
+
schema:
|
| 409 |
+
type: string
|
| 410 |
+
requestBody:
|
| 411 |
+
content:
|
| 412 |
+
application/json:
|
| 413 |
+
schema:
|
| 414 |
+
$ref: '#/components/schemas/CartItemDTOReq'
|
| 415 |
+
responses:
|
| 416 |
+
'200':
|
| 417 |
+
description: OK
|
| 418 |
+
content:
|
| 419 |
+
application/json:
|
| 420 |
+
schema:
|
| 421 |
+
$ref: '#/components/schemas/CartDTO'
|
| 422 |
+
'201':
|
| 423 |
+
description: Created
|
| 424 |
+
'401':
|
| 425 |
+
description: Unauthorized
|
| 426 |
+
'403':
|
| 427 |
+
description: Forbidden
|
| 428 |
+
'404':
|
| 429 |
+
description: Not Found
|
| 430 |
+
post:
|
| 431 |
+
tags:
|
| 432 |
+
- cart-controller
|
| 433 |
+
summary: updateCartByForm
|
| 434 |
+
operationId: updateCartByFormUsingPOST
|
| 435 |
+
parameters:
|
| 436 |
+
- name: cartItems[0].productId
|
| 437 |
+
in: query
|
| 438 |
+
required: false
|
| 439 |
+
style: form
|
| 440 |
+
schema:
|
| 441 |
+
type: integer
|
| 442 |
+
format: int64
|
| 443 |
+
- name: cartItems[0].quantity
|
| 444 |
+
in: query
|
| 445 |
+
required: false
|
| 446 |
+
style: form
|
| 447 |
+
schema:
|
| 448 |
+
type: integer
|
| 449 |
+
format: int32
|
| 450 |
+
- name: deliveryCost
|
| 451 |
+
in: query
|
| 452 |
+
required: false
|
| 453 |
+
style: form
|
| 454 |
+
schema:
|
| 455 |
+
type: integer
|
| 456 |
+
format: int32
|
| 457 |
+
- name: deliveryIncluded
|
| 458 |
+
in: query
|
| 459 |
+
required: false
|
| 460 |
+
style: form
|
| 461 |
+
schema:
|
| 462 |
+
type: boolean
|
| 463 |
+
- name: name
|
| 464 |
+
in: query
|
| 465 |
+
required: false
|
| 466 |
+
style: form
|
| 467 |
+
schema:
|
| 468 |
+
type: string
|
| 469 |
+
- name: productId
|
| 470 |
+
in: query
|
| 471 |
+
required: false
|
| 472 |
+
style: form
|
| 473 |
+
schema:
|
| 474 |
+
type: integer
|
| 475 |
+
format: int64
|
| 476 |
+
- name: productsCost
|
| 477 |
+
in: query
|
| 478 |
+
required: false
|
| 479 |
+
style: form
|
| 480 |
+
schema:
|
| 481 |
+
type: number
|
| 482 |
+
format: double
|
| 483 |
+
- name: quantity
|
| 484 |
+
in: query
|
| 485 |
+
required: false
|
| 486 |
+
style: form
|
| 487 |
+
schema:
|
| 488 |
+
type: integer
|
| 489 |
+
format: int32
|
| 490 |
+
- name: totalCost
|
| 491 |
+
in: query
|
| 492 |
+
required: false
|
| 493 |
+
style: form
|
| 494 |
+
schema:
|
| 495 |
+
type: number
|
| 496 |
+
format: double
|
| 497 |
+
- name: totalItems
|
| 498 |
+
in: query
|
| 499 |
+
required: false
|
| 500 |
+
style: form
|
| 501 |
+
schema:
|
| 502 |
+
type: integer
|
| 503 |
+
format: int32
|
| 504 |
+
- name: user
|
| 505 |
+
in: query
|
| 506 |
+
required: false
|
| 507 |
+
style: form
|
| 508 |
+
schema:
|
| 509 |
+
type: string
|
| 510 |
+
responses:
|
| 511 |
+
'200':
|
| 512 |
+
description: OK
|
| 513 |
+
content:
|
| 514 |
+
'*/*':
|
| 515 |
+
schema:
|
| 516 |
+
type: string
|
| 517 |
+
'201':
|
| 518 |
+
description: Created
|
| 519 |
+
'401':
|
| 520 |
+
description: Unauthorized
|
| 521 |
+
'403':
|
| 522 |
+
description: Forbidden
|
| 523 |
+
'404':
|
| 524 |
+
description: Not Found
|
| 525 |
+
/cart/clear:
|
| 526 |
+
post:
|
| 527 |
+
tags:
|
| 528 |
+
- cart-controller
|
| 529 |
+
summary: clearCart
|
| 530 |
+
operationId: clearCartUsingPOST
|
| 531 |
+
parameters:
|
| 532 |
+
- name: cartItems[0].productId
|
| 533 |
+
in: query
|
| 534 |
+
required: false
|
| 535 |
+
style: form
|
| 536 |
+
schema:
|
| 537 |
+
type: integer
|
| 538 |
+
format: int64
|
| 539 |
+
- name: cartItems[0].quantity
|
| 540 |
+
in: query
|
| 541 |
+
required: false
|
| 542 |
+
style: form
|
| 543 |
+
schema:
|
| 544 |
+
type: integer
|
| 545 |
+
format: int32
|
| 546 |
+
- name: deliveryCost
|
| 547 |
+
in: query
|
| 548 |
+
required: false
|
| 549 |
+
style: form
|
| 550 |
+
schema:
|
| 551 |
+
type: integer
|
| 552 |
+
format: int32
|
| 553 |
+
- name: deliveryIncluded
|
| 554 |
+
in: query
|
| 555 |
+
required: false
|
| 556 |
+
style: form
|
| 557 |
+
schema:
|
| 558 |
+
type: boolean
|
| 559 |
+
- name: name
|
| 560 |
+
in: query
|
| 561 |
+
required: false
|
| 562 |
+
style: form
|
| 563 |
+
schema:
|
| 564 |
+
type: string
|
| 565 |
+
- name: productsCost
|
| 566 |
+
in: query
|
| 567 |
+
required: false
|
| 568 |
+
style: form
|
| 569 |
+
schema:
|
| 570 |
+
type: number
|
| 571 |
+
format: double
|
| 572 |
+
- name: totalCost
|
| 573 |
+
in: query
|
| 574 |
+
required: false
|
| 575 |
+
style: form
|
| 576 |
+
schema:
|
| 577 |
+
type: number
|
| 578 |
+
format: double
|
| 579 |
+
- name: totalItems
|
| 580 |
+
in: query
|
| 581 |
+
required: false
|
| 582 |
+
style: form
|
| 583 |
+
schema:
|
| 584 |
+
type: integer
|
| 585 |
+
format: int32
|
| 586 |
+
- name: user
|
| 587 |
+
in: query
|
| 588 |
+
required: false
|
| 589 |
+
style: form
|
| 590 |
+
schema:
|
| 591 |
+
type: string
|
| 592 |
+
responses:
|
| 593 |
+
'200':
|
| 594 |
+
description: OK
|
| 595 |
+
content:
|
| 596 |
+
'*/*':
|
| 597 |
+
schema:
|
| 598 |
+
type: string
|
| 599 |
+
'201':
|
| 600 |
+
description: Created
|
| 601 |
+
'401':
|
| 602 |
+
description: Unauthorized
|
| 603 |
+
'403':
|
| 604 |
+
description: Forbidden
|
| 605 |
+
'404':
|
| 606 |
+
description: Not Found
|
| 607 |
+
/cart/delivery/{delivery}:
|
| 608 |
+
put:
|
| 609 |
+
tags:
|
| 610 |
+
- cart-controller
|
| 611 |
+
summary: setDelivery
|
| 612 |
+
operationId: setDeliveryUsingPUT
|
| 613 |
+
parameters:
|
| 614 |
+
- name: cartItems[0].productId
|
| 615 |
+
in: query
|
| 616 |
+
required: false
|
| 617 |
+
style: form
|
| 618 |
+
schema:
|
| 619 |
+
type: integer
|
| 620 |
+
format: int64
|
| 621 |
+
- name: cartItems[0].quantity
|
| 622 |
+
in: query
|
| 623 |
+
required: false
|
| 624 |
+
style: form
|
| 625 |
+
schema:
|
| 626 |
+
type: integer
|
| 627 |
+
format: int32
|
| 628 |
+
- name: deliveryCost
|
| 629 |
+
in: query
|
| 630 |
+
required: false
|
| 631 |
+
style: form
|
| 632 |
+
schema:
|
| 633 |
+
type: integer
|
| 634 |
+
format: int32
|
| 635 |
+
- name: deliveryIncluded
|
| 636 |
+
in: query
|
| 637 |
+
required: false
|
| 638 |
+
style: form
|
| 639 |
+
schema:
|
| 640 |
+
type: boolean
|
| 641 |
+
- name: name
|
| 642 |
+
in: query
|
| 643 |
+
required: false
|
| 644 |
+
style: form
|
| 645 |
+
schema:
|
| 646 |
+
type: string
|
| 647 |
+
- name: productsCost
|
| 648 |
+
in: query
|
| 649 |
+
required: false
|
| 650 |
+
style: form
|
| 651 |
+
schema:
|
| 652 |
+
type: number
|
| 653 |
+
format: double
|
| 654 |
+
- name: totalCost
|
| 655 |
+
in: query
|
| 656 |
+
required: false
|
| 657 |
+
style: form
|
| 658 |
+
schema:
|
| 659 |
+
type: number
|
| 660 |
+
format: double
|
| 661 |
+
- name: totalItems
|
| 662 |
+
in: query
|
| 663 |
+
required: false
|
| 664 |
+
style: form
|
| 665 |
+
schema:
|
| 666 |
+
type: integer
|
| 667 |
+
format: int32
|
| 668 |
+
- name: user
|
| 669 |
+
in: query
|
| 670 |
+
required: false
|
| 671 |
+
style: form
|
| 672 |
+
schema:
|
| 673 |
+
type: string
|
| 674 |
+
- name: delivery
|
| 675 |
+
in: path
|
| 676 |
+
description: delivery
|
| 677 |
+
required: true
|
| 678 |
+
style: simple
|
| 679 |
+
schema:
|
| 680 |
+
type: string
|
| 681 |
+
responses:
|
| 682 |
+
'200':
|
| 683 |
+
description: OK
|
| 684 |
+
content:
|
| 685 |
+
application/json:
|
| 686 |
+
schema:
|
| 687 |
+
$ref: '#/components/schemas/CartDTO'
|
| 688 |
+
'201':
|
| 689 |
+
description: Created
|
| 690 |
+
'401':
|
| 691 |
+
description: Unauthorized
|
| 692 |
+
'403':
|
| 693 |
+
description: Forbidden
|
| 694 |
+
'404':
|
| 695 |
+
description: Not Found
|
| 696 |
+
/checkout/confirmation:
|
| 697 |
+
get:
|
| 698 |
+
tags:
|
| 699 |
+
- checkout-controller
|
| 700 |
+
summary: getGratitude
|
| 701 |
+
operationId: getGratitudeUsingGET
|
| 702 |
+
parameters:
|
| 703 |
+
- name: name
|
| 704 |
+
in: query
|
| 705 |
+
required: false
|
| 706 |
+
style: form
|
| 707 |
+
schema:
|
| 708 |
+
type: string
|
| 709 |
+
responses:
|
| 710 |
+
'200':
|
| 711 |
+
description: OK
|
| 712 |
+
content:
|
| 713 |
+
'*/*':
|
| 714 |
+
schema:
|
| 715 |
+
type: string
|
| 716 |
+
'401':
|
| 717 |
+
description: Unauthorized
|
| 718 |
+
'403':
|
| 719 |
+
description: Forbidden
|
| 720 |
+
'404':
|
| 721 |
+
description: Not Found
|
| 722 |
+
/checkout/details:
|
| 723 |
+
get:
|
| 724 |
+
tags:
|
| 725 |
+
- checkout-controller
|
| 726 |
+
summary: details
|
| 727 |
+
operationId: detailsUsingGET
|
| 728 |
+
parameters:
|
| 729 |
+
- name: name
|
| 730 |
+
in: query
|
| 731 |
+
required: false
|
| 732 |
+
style: form
|
| 733 |
+
schema:
|
| 734 |
+
type: string
|
| 735 |
+
responses:
|
| 736 |
+
'200':
|
| 737 |
+
description: OK
|
| 738 |
+
content:
|
| 739 |
+
'*/*':
|
| 740 |
+
schema:
|
| 741 |
+
type: string
|
| 742 |
+
'401':
|
| 743 |
+
description: Unauthorized
|
| 744 |
+
'403':
|
| 745 |
+
description: Forbidden
|
| 746 |
+
'404':
|
| 747 |
+
description: Not Found
|
| 748 |
+
post:
|
| 749 |
+
tags:
|
| 750 |
+
- checkout-controller
|
| 751 |
+
summary: changeContacts
|
| 752 |
+
operationId: changeContactsUsingPOST
|
| 753 |
+
parameters:
|
| 754 |
+
- name: address
|
| 755 |
+
in: query
|
| 756 |
+
required: false
|
| 757 |
+
style: form
|
| 758 |
+
schema:
|
| 759 |
+
maximum: 100
|
| 760 |
+
minimum: 0
|
| 761 |
+
maxLength: 100
|
| 762 |
+
minLength: 0
|
| 763 |
+
pattern: ^[^#$%^*()']*$
|
| 764 |
+
type: string
|
| 765 |
+
- name: name
|
| 766 |
+
in: query
|
| 767 |
+
required: false
|
| 768 |
+
style: form
|
| 769 |
+
schema:
|
| 770 |
+
type: string
|
| 771 |
+
- name: phone
|
| 772 |
+
in: query
|
| 773 |
+
required: false
|
| 774 |
+
style: form
|
| 775 |
+
schema:
|
| 776 |
+
maximum: 20
|
| 777 |
+
minimum: 0
|
| 778 |
+
maxLength: 20
|
| 779 |
+
minLength: 0
|
| 780 |
+
pattern: ^\+[1-9][0-9]?[\s]*\(?\d{3}\)?[-\s]?\d{3}[-\s]?\d{2}[-\s]?\d{2}$
|
| 781 |
+
type: string
|
| 782 |
+
- name: changeContacts
|
| 783 |
+
in: query
|
| 784 |
+
description: changeContacts
|
| 785 |
+
required: true
|
| 786 |
+
style: form
|
| 787 |
+
schema:
|
| 788 |
+
type: string
|
| 789 |
+
responses:
|
| 790 |
+
'200':
|
| 791 |
+
description: OK
|
| 792 |
+
content:
|
| 793 |
+
'*/*':
|
| 794 |
+
schema:
|
| 795 |
+
type: string
|
| 796 |
+
'201':
|
| 797 |
+
description: Created
|
| 798 |
+
'401':
|
| 799 |
+
description: Unauthorized
|
| 800 |
+
'403':
|
| 801 |
+
description: Forbidden
|
| 802 |
+
'404':
|
| 803 |
+
description: Not Found
|
| 804 |
+
/checkout/payment:
|
| 805 |
+
get:
|
| 806 |
+
tags:
|
| 807 |
+
- checkout-controller
|
| 808 |
+
summary: getPayment
|
| 809 |
+
operationId: getPaymentUsingGET
|
| 810 |
+
parameters:
|
| 811 |
+
- name: name
|
| 812 |
+
in: query
|
| 813 |
+
required: false
|
| 814 |
+
style: form
|
| 815 |
+
schema:
|
| 816 |
+
type: string
|
| 817 |
+
responses:
|
| 818 |
+
'200':
|
| 819 |
+
description: OK
|
| 820 |
+
content:
|
| 821 |
+
'*/*':
|
| 822 |
+
schema:
|
| 823 |
+
type: string
|
| 824 |
+
'401':
|
| 825 |
+
description: Unauthorized
|
| 826 |
+
'403':
|
| 827 |
+
description: Forbidden
|
| 828 |
+
'404':
|
| 829 |
+
description: Not Found
|
| 830 |
+
post:
|
| 831 |
+
tags:
|
| 832 |
+
- checkout-controller
|
| 833 |
+
summary: postPayment
|
| 834 |
+
operationId: postPaymentUsingPOST
|
| 835 |
+
parameters:
|
| 836 |
+
- name: ccNumber
|
| 837 |
+
in: query
|
| 838 |
+
required: false
|
| 839 |
+
style: form
|
| 840 |
+
schema:
|
| 841 |
+
pattern: \b(?:\d[ -]*?){13,16}\b
|
| 842 |
+
type: string
|
| 843 |
+
- name: name
|
| 844 |
+
in: query
|
| 845 |
+
required: false
|
| 846 |
+
style: form
|
| 847 |
+
schema:
|
| 848 |
+
type: string
|
| 849 |
+
responses:
|
| 850 |
+
'200':
|
| 851 |
+
description: OK
|
| 852 |
+
content:
|
| 853 |
+
'*/*':
|
| 854 |
+
schema:
|
| 855 |
+
type: string
|
| 856 |
+
'201':
|
| 857 |
+
description: Created
|
| 858 |
+
'401':
|
| 859 |
+
description: Unauthorized
|
| 860 |
+
'403':
|
| 861 |
+
description: Forbidden
|
| 862 |
+
'404':
|
| 863 |
+
description: Not Found
|
| 864 |
+
/customer/new:
|
| 865 |
+
get:
|
| 866 |
+
tags:
|
| 867 |
+
- customer-controller
|
| 868 |
+
summary: getRegistrationPage
|
| 869 |
+
operationId: getRegistrationPageUsingGET
|
| 870 |
+
responses:
|
| 871 |
+
'200':
|
| 872 |
+
description: OK
|
| 873 |
+
content:
|
| 874 |
+
'*/*':
|
| 875 |
+
schema:
|
| 876 |
+
type: string
|
| 877 |
+
'401':
|
| 878 |
+
description: Unauthorized
|
| 879 |
+
'403':
|
| 880 |
+
description: Forbidden
|
| 881 |
+
'404':
|
| 882 |
+
description: Not Found
|
| 883 |
+
post:
|
| 884 |
+
tags:
|
| 885 |
+
- customer-controller
|
| 886 |
+
summary: postRegistrationForm
|
| 887 |
+
operationId: postRegistrationFormUsingPOST
|
| 888 |
+
parameters:
|
| 889 |
+
- name: address
|
| 890 |
+
in: query
|
| 891 |
+
required: false
|
| 892 |
+
style: form
|
| 893 |
+
schema:
|
| 894 |
+
maximum: 100
|
| 895 |
+
minimum: 0
|
| 896 |
+
maxLength: 100
|
| 897 |
+
minLength: 0
|
| 898 |
+
pattern: ^[^#$%^*()']*$
|
| 899 |
+
type: string
|
| 900 |
+
- name: cartItems[0].productId
|
| 901 |
+
in: query
|
| 902 |
+
required: false
|
| 903 |
+
style: form
|
| 904 |
+
schema:
|
| 905 |
+
type: integer
|
| 906 |
+
format: int64
|
| 907 |
+
- name: cartItems[0].quantity
|
| 908 |
+
in: query
|
| 909 |
+
required: false
|
| 910 |
+
style: form
|
| 911 |
+
schema:
|
| 912 |
+
type: integer
|
| 913 |
+
format: int32
|
| 914 |
+
- name: deliveryCost
|
| 915 |
+
in: query
|
| 916 |
+
required: false
|
| 917 |
+
style: form
|
| 918 |
+
schema:
|
| 919 |
+
type: integer
|
| 920 |
+
format: int32
|
| 921 |
+
- name: deliveryIncluded
|
| 922 |
+
in: query
|
| 923 |
+
required: false
|
| 924 |
+
style: form
|
| 925 |
+
schema:
|
| 926 |
+
type: boolean
|
| 927 |
+
- name: email
|
| 928 |
+
in: query
|
| 929 |
+
required: false
|
| 930 |
+
style: form
|
| 931 |
+
schema:
|
| 932 |
+
maximum: 50
|
| 933 |
+
minimum: 0
|
| 934 |
+
maxLength: 50
|
| 935 |
+
minLength: 0
|
| 936 |
+
pattern: ^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]+$
|
| 937 |
+
type: string
|
| 938 |
+
- name: name
|
| 939 |
+
in: query
|
| 940 |
+
required: false
|
| 941 |
+
style: form
|
| 942 |
+
schema:
|
| 943 |
+
maximum: 50
|
| 944 |
+
minimum: 0
|
| 945 |
+
maxLength: 50
|
| 946 |
+
minLength: 0
|
| 947 |
+
pattern: ^[\pL '-]+$
|
| 948 |
+
type: string
|
| 949 |
+
- name: password
|
| 950 |
+
in: query
|
| 951 |
+
required: false
|
| 952 |
+
style: form
|
| 953 |
+
schema:
|
| 954 |
+
maximum: 50
|
| 955 |
+
minimum: 6
|
| 956 |
+
maxLength: 50
|
| 957 |
+
minLength: 6
|
| 958 |
+
pattern: ^[a-zA-Z0-9]+$
|
| 959 |
+
type: string
|
| 960 |
+
- name: phone
|
| 961 |
+
in: query
|
| 962 |
+
required: false
|
| 963 |
+
style: form
|
| 964 |
+
schema:
|
| 965 |
+
maximum: 20
|
| 966 |
+
minimum: 0
|
| 967 |
+
maxLength: 20
|
| 968 |
+
minLength: 0
|
| 969 |
+
pattern: ^\+[1-9][0-9]?[\s]*\(?\d{3}\)?[-\s]?\d{3}[-\s]?\d{2}[-\s]?\d{2}$
|
| 970 |
+
type: string
|
| 971 |
+
- name: productsCost
|
| 972 |
+
in: query
|
| 973 |
+
required: false
|
| 974 |
+
style: form
|
| 975 |
+
schema:
|
| 976 |
+
type: number
|
| 977 |
+
format: double
|
| 978 |
+
- name: totalCost
|
| 979 |
+
in: query
|
| 980 |
+
required: false
|
| 981 |
+
style: form
|
| 982 |
+
schema:
|
| 983 |
+
type: number
|
| 984 |
+
format: double
|
| 985 |
+
- name: totalItems
|
| 986 |
+
in: query
|
| 987 |
+
required: false
|
| 988 |
+
style: form
|
| 989 |
+
schema:
|
| 990 |
+
type: integer
|
| 991 |
+
format: int32
|
| 992 |
+
- name: user
|
| 993 |
+
in: query
|
| 994 |
+
required: false
|
| 995 |
+
style: form
|
| 996 |
+
schema:
|
| 997 |
+
type: string
|
| 998 |
+
responses:
|
| 999 |
+
'200':
|
| 1000 |
+
description: OK
|
| 1001 |
+
content:
|
| 1002 |
+
'*/*':
|
| 1003 |
+
schema:
|
| 1004 |
+
type: string
|
| 1005 |
+
'201':
|
| 1006 |
+
description: Created
|
| 1007 |
+
'401':
|
| 1008 |
+
description: Unauthorized
|
| 1009 |
+
'403':
|
| 1010 |
+
description: Forbidden
|
| 1011 |
+
'404':
|
| 1012 |
+
description: Not Found
|
| 1013 |
+
/customer/orders:
|
| 1014 |
+
get:
|
| 1015 |
+
tags:
|
| 1016 |
+
- customer-controller
|
| 1017 |
+
summary: orders
|
| 1018 |
+
operationId: ordersUsingGET
|
| 1019 |
+
parameters:
|
| 1020 |
+
- name: name
|
| 1021 |
+
in: query
|
| 1022 |
+
required: false
|
| 1023 |
+
style: form
|
| 1024 |
+
schema:
|
| 1025 |
+
type: string
|
| 1026 |
+
responses:
|
| 1027 |
+
'200':
|
| 1028 |
+
description: OK
|
| 1029 |
+
content:
|
| 1030 |
+
'*/*':
|
| 1031 |
+
schema:
|
| 1032 |
+
type: string
|
| 1033 |
+
'401':
|
| 1034 |
+
description: Unauthorized
|
| 1035 |
+
'403':
|
| 1036 |
+
description: Forbidden
|
| 1037 |
+
'404':
|
| 1038 |
+
description: Not Found
|
| 1039 |
+
/admin/distilleries:
|
| 1040 |
+
get:
|
| 1041 |
+
tags:
|
| 1042 |
+
- distillery-controller
|
| 1043 |
+
summary: allDistilleries
|
| 1044 |
+
operationId: allDistilleriesUsingGET
|
| 1045 |
+
responses:
|
| 1046 |
+
'200':
|
| 1047 |
+
description: OK
|
| 1048 |
+
content:
|
| 1049 |
+
'*/*':
|
| 1050 |
+
schema:
|
| 1051 |
+
type: string
|
| 1052 |
+
'401':
|
| 1053 |
+
description: Unauthorized
|
| 1054 |
+
'403':
|
| 1055 |
+
description: Forbidden
|
| 1056 |
+
'404':
|
| 1057 |
+
description: Not Found
|
| 1058 |
+
/admin/distilleries/new:
|
| 1059 |
+
get:
|
| 1060 |
+
tags:
|
| 1061 |
+
- distillery-controller
|
| 1062 |
+
summary: newDistillery
|
| 1063 |
+
operationId: newDistilleryUsingGET
|
| 1064 |
+
responses:
|
| 1065 |
+
'200':
|
| 1066 |
+
description: OK
|
| 1067 |
+
content:
|
| 1068 |
+
'*/*':
|
| 1069 |
+
schema:
|
| 1070 |
+
type: string
|
| 1071 |
+
'401':
|
| 1072 |
+
description: Unauthorized
|
| 1073 |
+
'403':
|
| 1074 |
+
description: Forbidden
|
| 1075 |
+
'404':
|
| 1076 |
+
description: Not Found
|
| 1077 |
+
post:
|
| 1078 |
+
tags:
|
| 1079 |
+
- distillery-controller
|
| 1080 |
+
summary: postDistillery
|
| 1081 |
+
operationId: postDistilleryUsingPOST
|
| 1082 |
+
parameters:
|
| 1083 |
+
- name: description
|
| 1084 |
+
in: query
|
| 1085 |
+
required: false
|
| 1086 |
+
style: form
|
| 1087 |
+
schema:
|
| 1088 |
+
type: string
|
| 1089 |
+
- name: id
|
| 1090 |
+
in: query
|
| 1091 |
+
required: false
|
| 1092 |
+
style: form
|
| 1093 |
+
schema:
|
| 1094 |
+
type: integer
|
| 1095 |
+
format: int64
|
| 1096 |
+
- name: region
|
| 1097 |
+
in: query
|
| 1098 |
+
required: false
|
| 1099 |
+
style: form
|
| 1100 |
+
schema:
|
| 1101 |
+
type: string
|
| 1102 |
+
- name: title
|
| 1103 |
+
in: query
|
| 1104 |
+
required: false
|
| 1105 |
+
style: form
|
| 1106 |
+
schema:
|
| 1107 |
+
type: string
|
| 1108 |
+
responses:
|
| 1109 |
+
'200':
|
| 1110 |
+
description: OK
|
| 1111 |
+
content:
|
| 1112 |
+
'*/*':
|
| 1113 |
+
schema:
|
| 1114 |
+
type: string
|
| 1115 |
+
'201':
|
| 1116 |
+
description: Created
|
| 1117 |
+
'401':
|
| 1118 |
+
description: Unauthorized
|
| 1119 |
+
'403':
|
| 1120 |
+
description: Forbidden
|
| 1121 |
+
'404':
|
| 1122 |
+
description: Not Found
|
| 1123 |
+
/admin/distilleries/{distilleryId}/delete:
|
| 1124 |
+
post:
|
| 1125 |
+
tags:
|
| 1126 |
+
- distillery-controller
|
| 1127 |
+
summary: deleteDistillery
|
| 1128 |
+
operationId: deleteDistilleryUsingPOST
|
| 1129 |
+
parameters:
|
| 1130 |
+
- name: distilleryId
|
| 1131 |
+
in: path
|
| 1132 |
+
description: distilleryId
|
| 1133 |
+
required: true
|
| 1134 |
+
style: simple
|
| 1135 |
+
schema:
|
| 1136 |
+
type: integer
|
| 1137 |
+
format: int64
|
| 1138 |
+
responses:
|
| 1139 |
+
'200':
|
| 1140 |
+
description: OK
|
| 1141 |
+
content:
|
| 1142 |
+
'*/*':
|
| 1143 |
+
schema:
|
| 1144 |
+
type: string
|
| 1145 |
+
'201':
|
| 1146 |
+
description: Created
|
| 1147 |
+
'401':
|
| 1148 |
+
description: Unauthorized
|
| 1149 |
+
'403':
|
| 1150 |
+
description: Forbidden
|
| 1151 |
+
'404':
|
| 1152 |
+
description: Not Found
|
| 1153 |
+
/admin/distilleries/{distilleryId}/edit:
|
| 1154 |
+
get:
|
| 1155 |
+
tags:
|
| 1156 |
+
- distillery-controller
|
| 1157 |
+
summary: editDistillery
|
| 1158 |
+
operationId: editDistilleryUsingGET
|
| 1159 |
+
parameters:
|
| 1160 |
+
- name: distilleryId
|
| 1161 |
+
in: path
|
| 1162 |
+
description: distilleryId
|
| 1163 |
+
required: true
|
| 1164 |
+
style: simple
|
| 1165 |
+
schema:
|
| 1166 |
+
type: integer
|
| 1167 |
+
format: int64
|
| 1168 |
+
responses:
|
| 1169 |
+
'200':
|
| 1170 |
+
description: OK
|
| 1171 |
+
content:
|
| 1172 |
+
'*/*':
|
| 1173 |
+
schema:
|
| 1174 |
+
type: string
|
| 1175 |
+
'401':
|
| 1176 |
+
description: Unauthorized
|
| 1177 |
+
'403':
|
| 1178 |
+
description: Forbidden
|
| 1179 |
+
'404':
|
| 1180 |
+
description: Not Found
|
| 1181 |
+
post:
|
| 1182 |
+
tags:
|
| 1183 |
+
- distillery-controller
|
| 1184 |
+
summary: putDistillery
|
| 1185 |
+
operationId: putDistilleryUsingPOST
|
| 1186 |
+
parameters:
|
| 1187 |
+
- name: description
|
| 1188 |
+
in: query
|
| 1189 |
+
required: false
|
| 1190 |
+
style: form
|
| 1191 |
+
schema:
|
| 1192 |
+
type: string
|
| 1193 |
+
- name: distilleryId
|
| 1194 |
+
in: path
|
| 1195 |
+
description: distilleryId
|
| 1196 |
+
required: true
|
| 1197 |
+
style: simple
|
| 1198 |
+
schema:
|
| 1199 |
+
type: integer
|
| 1200 |
+
format: int64
|
| 1201 |
+
- name: id
|
| 1202 |
+
in: query
|
| 1203 |
+
required: false
|
| 1204 |
+
style: form
|
| 1205 |
+
schema:
|
| 1206 |
+
type: integer
|
| 1207 |
+
format: int64
|
| 1208 |
+
- name: region
|
| 1209 |
+
in: query
|
| 1210 |
+
required: false
|
| 1211 |
+
style: form
|
| 1212 |
+
schema:
|
| 1213 |
+
type: string
|
| 1214 |
+
- name: title
|
| 1215 |
+
in: query
|
| 1216 |
+
required: false
|
| 1217 |
+
style: form
|
| 1218 |
+
schema:
|
| 1219 |
+
type: string
|
| 1220 |
+
responses:
|
| 1221 |
+
'200':
|
| 1222 |
+
description: OK
|
| 1223 |
+
content:
|
| 1224 |
+
'*/*':
|
| 1225 |
+
schema:
|
| 1226 |
+
type: string
|
| 1227 |
+
'201':
|
| 1228 |
+
description: Created
|
| 1229 |
+
'401':
|
| 1230 |
+
description: Unauthorized
|
| 1231 |
+
'403':
|
| 1232 |
+
description: Forbidden
|
| 1233 |
+
'404':
|
| 1234 |
+
description: Not Found
|
| 1235 |
+
/:
|
| 1236 |
+
get:
|
| 1237 |
+
tags:
|
| 1238 |
+
- frontend-controller
|
| 1239 |
+
summary: index
|
| 1240 |
+
operationId: indexUsingGET_3
|
| 1241 |
+
responses:
|
| 1242 |
+
'200':
|
| 1243 |
+
description: OK
|
| 1244 |
+
content:
|
| 1245 |
+
'*/*':
|
| 1246 |
+
schema:
|
| 1247 |
+
type: string
|
| 1248 |
+
'401':
|
| 1249 |
+
description: Unauthorized
|
| 1250 |
+
'403':
|
| 1251 |
+
description: Forbidden
|
| 1252 |
+
'404':
|
| 1253 |
+
description: Not Found
|
| 1254 |
+
/index:
|
| 1255 |
+
get:
|
| 1256 |
+
tags:
|
| 1257 |
+
- frontend-controller
|
| 1258 |
+
summary: index
|
| 1259 |
+
operationId: indexUsingGET_4
|
| 1260 |
+
responses:
|
| 1261 |
+
'200':
|
| 1262 |
+
description: OK
|
| 1263 |
+
content:
|
| 1264 |
+
'*/*':
|
| 1265 |
+
schema:
|
| 1266 |
+
type: string
|
| 1267 |
+
'401':
|
| 1268 |
+
description: Unauthorized
|
| 1269 |
+
'403':
|
| 1270 |
+
description: Forbidden
|
| 1271 |
+
'404':
|
| 1272 |
+
description: Not Found
|
| 1273 |
+
/inside:
|
| 1274 |
+
get:
|
| 1275 |
+
tags:
|
| 1276 |
+
- frontend-controller
|
| 1277 |
+
summary: whatsInside
|
| 1278 |
+
operationId: whatsInsideUsingGET
|
| 1279 |
+
responses:
|
| 1280 |
+
'200':
|
| 1281 |
+
description: OK
|
| 1282 |
+
content:
|
| 1283 |
+
'*/*':
|
| 1284 |
+
schema:
|
| 1285 |
+
type: string
|
| 1286 |
+
'401':
|
| 1287 |
+
description: Unauthorized
|
| 1288 |
+
'403':
|
| 1289 |
+
description: Forbidden
|
| 1290 |
+
'404':
|
| 1291 |
+
description: Not Found
|
| 1292 |
+
/login:
|
| 1293 |
+
get:
|
| 1294 |
+
tags:
|
| 1295 |
+
- frontend-controller
|
| 1296 |
+
summary: login
|
| 1297 |
+
operationId: loginUsingGET
|
| 1298 |
+
responses:
|
| 1299 |
+
'200':
|
| 1300 |
+
description: OK
|
| 1301 |
+
content:
|
| 1302 |
+
'*/*':
|
| 1303 |
+
schema:
|
| 1304 |
+
type: string
|
| 1305 |
+
'401':
|
| 1306 |
+
description: Unauthorized
|
| 1307 |
+
'403':
|
| 1308 |
+
description: Forbidden
|
| 1309 |
+
'404':
|
| 1310 |
+
description: Not Found
|
| 1311 |
+
/rest-api:
|
| 1312 |
+
get:
|
| 1313 |
+
tags:
|
| 1314 |
+
- frontend-controller
|
| 1315 |
+
summary: restApi
|
| 1316 |
+
operationId: restApiUsingGET
|
| 1317 |
+
responses:
|
| 1318 |
+
'200':
|
| 1319 |
+
description: OK
|
| 1320 |
+
content:
|
| 1321 |
+
'*/*':
|
| 1322 |
+
schema:
|
| 1323 |
+
type: string
|
| 1324 |
+
'401':
|
| 1325 |
+
description: Unauthorized
|
| 1326 |
+
'403':
|
| 1327 |
+
description: Forbidden
|
| 1328 |
+
'404':
|
| 1329 |
+
description: Not Found
|
| 1330 |
+
/admin/orders:
|
| 1331 |
+
get:
|
| 1332 |
+
tags:
|
| 1333 |
+
- orders-controller
|
| 1334 |
+
summary: getOrders
|
| 1335 |
+
operationId: getOrdersUsingGET
|
| 1336 |
+
parameters:
|
| 1337 |
+
- name: direct
|
| 1338 |
+
in: query
|
| 1339 |
+
required: false
|
| 1340 |
+
style: form
|
| 1341 |
+
schema:
|
| 1342 |
+
type: string
|
| 1343 |
+
- name: page
|
| 1344 |
+
in: query
|
| 1345 |
+
required: false
|
| 1346 |
+
style: form
|
| 1347 |
+
schema:
|
| 1348 |
+
type: integer
|
| 1349 |
+
format: int32
|
| 1350 |
+
- name: size
|
| 1351 |
+
in: query
|
| 1352 |
+
required: false
|
| 1353 |
+
style: form
|
| 1354 |
+
schema:
|
| 1355 |
+
type: integer
|
| 1356 |
+
format: int32
|
| 1357 |
+
- name: sort
|
| 1358 |
+
in: query
|
| 1359 |
+
required: false
|
| 1360 |
+
style: form
|
| 1361 |
+
schema:
|
| 1362 |
+
type: string
|
| 1363 |
+
- name: executed
|
| 1364 |
+
in: query
|
| 1365 |
+
description: executed
|
| 1366 |
+
required: false
|
| 1367 |
+
style: form
|
| 1368 |
+
schema:
|
| 1369 |
+
type: string
|
| 1370 |
+
- name: created
|
| 1371 |
+
in: query
|
| 1372 |
+
description: created
|
| 1373 |
+
required: false
|
| 1374 |
+
style: form
|
| 1375 |
+
schema:
|
| 1376 |
+
type: string
|
| 1377 |
+
responses:
|
| 1378 |
+
'200':
|
| 1379 |
+
description: OK
|
| 1380 |
+
content:
|
| 1381 |
+
'*/*':
|
| 1382 |
+
schema:
|
| 1383 |
+
type: string
|
| 1384 |
+
'401':
|
| 1385 |
+
description: Unauthorized
|
| 1386 |
+
'403':
|
| 1387 |
+
description: Forbidden
|
| 1388 |
+
'404':
|
| 1389 |
+
description: Not Found
|
| 1390 |
+
/admin/orders/{orderId}:
|
| 1391 |
+
post:
|
| 1392 |
+
tags:
|
| 1393 |
+
- orders-controller
|
| 1394 |
+
summary: setExecutionStatus
|
| 1395 |
+
operationId: setExecutionStatusUsingPOST
|
| 1396 |
+
parameters:
|
| 1397 |
+
- name: orderId
|
| 1398 |
+
in: path
|
| 1399 |
+
description: orderId
|
| 1400 |
+
required: true
|
| 1401 |
+
style: simple
|
| 1402 |
+
schema:
|
| 1403 |
+
type: integer
|
| 1404 |
+
format: int64
|
| 1405 |
+
- name: executed
|
| 1406 |
+
in: query
|
| 1407 |
+
description: executed
|
| 1408 |
+
required: true
|
| 1409 |
+
style: form
|
| 1410 |
+
schema:
|
| 1411 |
+
type: boolean
|
| 1412 |
+
responses:
|
| 1413 |
+
'200':
|
| 1414 |
+
description: OK
|
| 1415 |
+
content:
|
| 1416 |
+
'*/*':
|
| 1417 |
+
schema:
|
| 1418 |
+
type: string
|
| 1419 |
+
'201':
|
| 1420 |
+
description: Created
|
| 1421 |
+
'401':
|
| 1422 |
+
description: Unauthorized
|
| 1423 |
+
'403':
|
| 1424 |
+
description: Forbidden
|
| 1425 |
+
'404':
|
| 1426 |
+
description: Not Found
|
| 1427 |
+
/admin/products:
|
| 1428 |
+
get:
|
| 1429 |
+
tags:
|
| 1430 |
+
- product-controller
|
| 1431 |
+
summary: getProducts
|
| 1432 |
+
operationId: getProductsUsingGET
|
| 1433 |
+
parameters:
|
| 1434 |
+
- name: direct
|
| 1435 |
+
in: query
|
| 1436 |
+
required: false
|
| 1437 |
+
style: form
|
| 1438 |
+
schema:
|
| 1439 |
+
type: string
|
| 1440 |
+
- name: page
|
| 1441 |
+
in: query
|
| 1442 |
+
required: false
|
| 1443 |
+
style: form
|
| 1444 |
+
schema:
|
| 1445 |
+
type: integer
|
| 1446 |
+
format: int32
|
| 1447 |
+
- name: size
|
| 1448 |
+
in: query
|
| 1449 |
+
required: false
|
| 1450 |
+
style: form
|
| 1451 |
+
schema:
|
| 1452 |
+
type: integer
|
| 1453 |
+
format: int32
|
| 1454 |
+
- name: sort
|
| 1455 |
+
in: query
|
| 1456 |
+
required: false
|
| 1457 |
+
style: form
|
| 1458 |
+
schema:
|
| 1459 |
+
type: string
|
| 1460 |
+
- name: dist
|
| 1461 |
+
in: query
|
| 1462 |
+
description: dist
|
| 1463 |
+
required: false
|
| 1464 |
+
style: form
|
| 1465 |
+
schema:
|
| 1466 |
+
type: integer
|
| 1467 |
+
format: int64
|
| 1468 |
+
responses:
|
| 1469 |
+
'200':
|
| 1470 |
+
description: OK
|
| 1471 |
+
content:
|
| 1472 |
+
'*/*':
|
| 1473 |
+
schema:
|
| 1474 |
+
type: string
|
| 1475 |
+
'401':
|
| 1476 |
+
description: Unauthorized
|
| 1477 |
+
'403':
|
| 1478 |
+
description: Forbidden
|
| 1479 |
+
'404':
|
| 1480 |
+
description: Not Found
|
| 1481 |
+
/admin/products/new:
|
| 1482 |
+
get:
|
| 1483 |
+
tags:
|
| 1484 |
+
- product-controller
|
| 1485 |
+
summary: newProduct
|
| 1486 |
+
operationId: newProductUsingGET
|
| 1487 |
+
responses:
|
| 1488 |
+
'200':
|
| 1489 |
+
description: OK
|
| 1490 |
+
content:
|
| 1491 |
+
'*/*':
|
| 1492 |
+
schema:
|
| 1493 |
+
type: string
|
| 1494 |
+
'401':
|
| 1495 |
+
description: Unauthorized
|
| 1496 |
+
'403':
|
| 1497 |
+
description: Forbidden
|
| 1498 |
+
'404':
|
| 1499 |
+
description: Not Found
|
| 1500 |
+
post:
|
| 1501 |
+
tags:
|
| 1502 |
+
- product-controller
|
| 1503 |
+
summary: postProduct
|
| 1504 |
+
operationId: postProductUsingPOST
|
| 1505 |
+
parameters:
|
| 1506 |
+
- name: age
|
| 1507 |
+
in: query
|
| 1508 |
+
required: false
|
| 1509 |
+
style: form
|
| 1510 |
+
schema:
|
| 1511 |
+
maximum: 2000
|
| 1512 |
+
exclusiveMaximum: false
|
| 1513 |
+
type: integer
|
| 1514 |
+
format: int32
|
| 1515 |
+
- name: alcohol
|
| 1516 |
+
in: query
|
| 1517 |
+
required: true
|
| 1518 |
+
style: form
|
| 1519 |
+
schema:
|
| 1520 |
+
maximum: 96
|
| 1521 |
+
exclusiveMaximum: false
|
| 1522 |
+
minimum: 1
|
| 1523 |
+
exclusiveMinimum: false
|
| 1524 |
+
type: number
|
| 1525 |
+
format: float
|
| 1526 |
+
- name: available
|
| 1527 |
+
in: query
|
| 1528 |
+
required: false
|
| 1529 |
+
style: form
|
| 1530 |
+
schema:
|
| 1531 |
+
type: boolean
|
| 1532 |
+
- name: description
|
| 1533 |
+
in: query
|
| 1534 |
+
required: false
|
| 1535 |
+
style: form
|
| 1536 |
+
schema:
|
| 1537 |
+
type: string
|
| 1538 |
+
- name: distillery
|
| 1539 |
+
in: query
|
| 1540 |
+
required: false
|
| 1541 |
+
style: form
|
| 1542 |
+
schema:
|
| 1543 |
+
type: string
|
| 1544 |
+
- name: name
|
| 1545 |
+
in: query
|
| 1546 |
+
required: false
|
| 1547 |
+
style: form
|
| 1548 |
+
schema:
|
| 1549 |
+
pattern: ^[^#$%^&*()']*$
|
| 1550 |
+
type: string
|
| 1551 |
+
- name: price
|
| 1552 |
+
in: query
|
| 1553 |
+
required: true
|
| 1554 |
+
style: form
|
| 1555 |
+
schema:
|
| 1556 |
+
type: number
|
| 1557 |
+
format: double
|
| 1558 |
+
- name: productId
|
| 1559 |
+
in: query
|
| 1560 |
+
required: false
|
| 1561 |
+
style: form
|
| 1562 |
+
schema:
|
| 1563 |
+
type: integer
|
| 1564 |
+
format: int64
|
| 1565 |
+
- name: volume
|
| 1566 |
+
in: query
|
| 1567 |
+
required: true
|
| 1568 |
+
style: form
|
| 1569 |
+
schema:
|
| 1570 |
+
type: integer
|
| 1571 |
+
format: int32
|
| 1572 |
+
responses:
|
| 1573 |
+
'200':
|
| 1574 |
+
description: OK
|
| 1575 |
+
content:
|
| 1576 |
+
'*/*':
|
| 1577 |
+
schema:
|
| 1578 |
+
type: string
|
| 1579 |
+
'201':
|
| 1580 |
+
description: Created
|
| 1581 |
+
'401':
|
| 1582 |
+
description: Unauthorized
|
| 1583 |
+
'403':
|
| 1584 |
+
description: Forbidden
|
| 1585 |
+
'404':
|
| 1586 |
+
description: Not Found
|
| 1587 |
+
/admin/products/{productId}/delete:
|
| 1588 |
+
post:
|
| 1589 |
+
tags:
|
| 1590 |
+
- product-controller
|
| 1591 |
+
summary: deleteProduct
|
| 1592 |
+
operationId: deleteProductUsingPOST
|
| 1593 |
+
parameters:
|
| 1594 |
+
- name: productId
|
| 1595 |
+
in: path
|
| 1596 |
+
description: productId
|
| 1597 |
+
required: true
|
| 1598 |
+
style: simple
|
| 1599 |
+
schema:
|
| 1600 |
+
type: integer
|
| 1601 |
+
format: int64
|
| 1602 |
+
responses:
|
| 1603 |
+
'200':
|
| 1604 |
+
description: OK
|
| 1605 |
+
content:
|
| 1606 |
+
'*/*':
|
| 1607 |
+
schema:
|
| 1608 |
+
type: string
|
| 1609 |
+
'201':
|
| 1610 |
+
description: Created
|
| 1611 |
+
'401':
|
| 1612 |
+
description: Unauthorized
|
| 1613 |
+
'403':
|
| 1614 |
+
description: Forbidden
|
| 1615 |
+
'404':
|
| 1616 |
+
description: Not Found
|
| 1617 |
+
/admin/products/{productId}/edit:
|
| 1618 |
+
get:
|
| 1619 |
+
tags:
|
| 1620 |
+
- product-controller
|
| 1621 |
+
summary: editProduct
|
| 1622 |
+
operationId: editProductUsingGET
|
| 1623 |
+
parameters:
|
| 1624 |
+
- name: productId
|
| 1625 |
+
in: path
|
| 1626 |
+
description: productId
|
| 1627 |
+
required: true
|
| 1628 |
+
style: simple
|
| 1629 |
+
schema:
|
| 1630 |
+
type: integer
|
| 1631 |
+
format: int64
|
| 1632 |
+
responses:
|
| 1633 |
+
'200':
|
| 1634 |
+
description: OK
|
| 1635 |
+
content:
|
| 1636 |
+
'*/*':
|
| 1637 |
+
schema:
|
| 1638 |
+
type: string
|
| 1639 |
+
'401':
|
| 1640 |
+
description: Unauthorized
|
| 1641 |
+
'403':
|
| 1642 |
+
description: Forbidden
|
| 1643 |
+
'404':
|
| 1644 |
+
description: Not Found
|
| 1645 |
+
post:
|
| 1646 |
+
tags:
|
| 1647 |
+
- product-controller
|
| 1648 |
+
summary: putProduct
|
| 1649 |
+
operationId: putProductUsingPOST
|
| 1650 |
+
parameters:
|
| 1651 |
+
- name: age
|
| 1652 |
+
in: query
|
| 1653 |
+
required: false
|
| 1654 |
+
style: form
|
| 1655 |
+
schema:
|
| 1656 |
+
maximum: 2000
|
| 1657 |
+
exclusiveMaximum: false
|
| 1658 |
+
type: integer
|
| 1659 |
+
format: int32
|
| 1660 |
+
- name: alcohol
|
| 1661 |
+
in: query
|
| 1662 |
+
required: true
|
| 1663 |
+
style: form
|
| 1664 |
+
schema:
|
| 1665 |
+
maximum: 96
|
| 1666 |
+
exclusiveMaximum: false
|
| 1667 |
+
minimum: 1
|
| 1668 |
+
exclusiveMinimum: false
|
| 1669 |
+
type: number
|
| 1670 |
+
format: float
|
| 1671 |
+
- name: available
|
| 1672 |
+
in: query
|
| 1673 |
+
required: false
|
| 1674 |
+
style: form
|
| 1675 |
+
schema:
|
| 1676 |
+
type: boolean
|
| 1677 |
+
- name: description
|
| 1678 |
+
in: query
|
| 1679 |
+
required: false
|
| 1680 |
+
style: form
|
| 1681 |
+
schema:
|
| 1682 |
+
type: string
|
| 1683 |
+
- name: distillery
|
| 1684 |
+
in: query
|
| 1685 |
+
required: false
|
| 1686 |
+
style: form
|
| 1687 |
+
schema:
|
| 1688 |
+
type: string
|
| 1689 |
+
- name: name
|
| 1690 |
+
in: query
|
| 1691 |
+
required: false
|
| 1692 |
+
style: form
|
| 1693 |
+
schema:
|
| 1694 |
+
pattern: ^[^#$%^&*()']*$
|
| 1695 |
+
type: string
|
| 1696 |
+
- name: price
|
| 1697 |
+
in: query
|
| 1698 |
+
required: true
|
| 1699 |
+
style: form
|
| 1700 |
+
schema:
|
| 1701 |
+
type: number
|
| 1702 |
+
format: double
|
| 1703 |
+
- name: productId
|
| 1704 |
+
in: path
|
| 1705 |
+
description: productId
|
| 1706 |
+
required: true
|
| 1707 |
+
style: simple
|
| 1708 |
+
schema:
|
| 1709 |
+
type: integer
|
| 1710 |
+
format: int64
|
| 1711 |
+
- name: volume
|
| 1712 |
+
in: query
|
| 1713 |
+
required: true
|
| 1714 |
+
style: form
|
| 1715 |
+
schema:
|
| 1716 |
+
type: integer
|
| 1717 |
+
format: int32
|
| 1718 |
+
responses:
|
| 1719 |
+
'200':
|
| 1720 |
+
description: OK
|
| 1721 |
+
content:
|
| 1722 |
+
'*/*':
|
| 1723 |
+
schema:
|
| 1724 |
+
type: string
|
| 1725 |
+
'201':
|
| 1726 |
+
description: Created
|
| 1727 |
+
'401':
|
| 1728 |
+
description: Unauthorized
|
| 1729 |
+
'403':
|
| 1730 |
+
description: Forbidden
|
| 1731 |
+
'404':
|
| 1732 |
+
description: Not Found
|
| 1733 |
+
/admin/regions:
|
| 1734 |
+
get:
|
| 1735 |
+
tags:
|
| 1736 |
+
- region-controller
|
| 1737 |
+
summary: allRegions
|
| 1738 |
+
operationId: allRegionsUsingGET
|
| 1739 |
+
responses:
|
| 1740 |
+
'200':
|
| 1741 |
+
description: OK
|
| 1742 |
+
content:
|
| 1743 |
+
'*/*':
|
| 1744 |
+
schema:
|
| 1745 |
+
type: string
|
| 1746 |
+
'401':
|
| 1747 |
+
description: Unauthorized
|
| 1748 |
+
'403':
|
| 1749 |
+
description: Forbidden
|
| 1750 |
+
'404':
|
| 1751 |
+
description: Not Found
|
| 1752 |
+
/admin/regions/new:
|
| 1753 |
+
get:
|
| 1754 |
+
tags:
|
| 1755 |
+
- region-controller
|
| 1756 |
+
summary: newRegion
|
| 1757 |
+
operationId: newRegionUsingGET
|
| 1758 |
+
responses:
|
| 1759 |
+
'200':
|
| 1760 |
+
description: OK
|
| 1761 |
+
content:
|
| 1762 |
+
'*/*':
|
| 1763 |
+
schema:
|
| 1764 |
+
type: string
|
| 1765 |
+
'401':
|
| 1766 |
+
description: Unauthorized
|
| 1767 |
+
'403':
|
| 1768 |
+
description: Forbidden
|
| 1769 |
+
'404':
|
| 1770 |
+
description: Not Found
|
| 1771 |
+
post:
|
| 1772 |
+
tags:
|
| 1773 |
+
- region-controller
|
| 1774 |
+
summary: postRegion
|
| 1775 |
+
operationId: postRegionUsingPOST
|
| 1776 |
+
parameters:
|
| 1777 |
+
- name: color
|
| 1778 |
+
in: query
|
| 1779 |
+
required: false
|
| 1780 |
+
style: form
|
| 1781 |
+
schema:
|
| 1782 |
+
type: string
|
| 1783 |
+
- name: description
|
| 1784 |
+
in: query
|
| 1785 |
+
required: false
|
| 1786 |
+
style: form
|
| 1787 |
+
schema:
|
| 1788 |
+
type: string
|
| 1789 |
+
- name: id
|
| 1790 |
+
in: query
|
| 1791 |
+
required: false
|
| 1792 |
+
style: form
|
| 1793 |
+
schema:
|
| 1794 |
+
type: integer
|
| 1795 |
+
format: int64
|
| 1796 |
+
- name: name
|
| 1797 |
+
in: query
|
| 1798 |
+
required: false
|
| 1799 |
+
style: form
|
| 1800 |
+
schema:
|
| 1801 |
+
type: string
|
| 1802 |
+
- name: subtitle
|
| 1803 |
+
in: query
|
| 1804 |
+
required: false
|
| 1805 |
+
style: form
|
| 1806 |
+
schema:
|
| 1807 |
+
type: string
|
| 1808 |
+
responses:
|
| 1809 |
+
'200':
|
| 1810 |
+
description: OK
|
| 1811 |
+
content:
|
| 1812 |
+
'*/*':
|
| 1813 |
+
schema:
|
| 1814 |
+
type: string
|
| 1815 |
+
'201':
|
| 1816 |
+
description: Created
|
| 1817 |
+
'401':
|
| 1818 |
+
description: Unauthorized
|
| 1819 |
+
'403':
|
| 1820 |
+
description: Forbidden
|
| 1821 |
+
'404':
|
| 1822 |
+
description: Not Found
|
| 1823 |
+
/admin/regions/{regionId}/delete:
|
| 1824 |
+
post:
|
| 1825 |
+
tags:
|
| 1826 |
+
- region-controller
|
| 1827 |
+
summary: deleteRegion
|
| 1828 |
+
operationId: deleteRegionUsingPOST
|
| 1829 |
+
parameters:
|
| 1830 |
+
- name: regionId
|
| 1831 |
+
in: path
|
| 1832 |
+
description: regionId
|
| 1833 |
+
required: true
|
| 1834 |
+
style: simple
|
| 1835 |
+
schema:
|
| 1836 |
+
type: integer
|
| 1837 |
+
format: int64
|
| 1838 |
+
responses:
|
| 1839 |
+
'200':
|
| 1840 |
+
description: OK
|
| 1841 |
+
content:
|
| 1842 |
+
'*/*':
|
| 1843 |
+
schema:
|
| 1844 |
+
type: string
|
| 1845 |
+
'201':
|
| 1846 |
+
description: Created
|
| 1847 |
+
'401':
|
| 1848 |
+
description: Unauthorized
|
| 1849 |
+
'403':
|
| 1850 |
+
description: Forbidden
|
| 1851 |
+
'404':
|
| 1852 |
+
description: Not Found
|
| 1853 |
+
/admin/regions/{regionId}/edit:
|
| 1854 |
+
get:
|
| 1855 |
+
tags:
|
| 1856 |
+
- region-controller
|
| 1857 |
+
summary: editRegion
|
| 1858 |
+
operationId: editRegionUsingGET
|
| 1859 |
+
parameters:
|
| 1860 |
+
- name: regionId
|
| 1861 |
+
in: path
|
| 1862 |
+
description: regionId
|
| 1863 |
+
required: true
|
| 1864 |
+
style: simple
|
| 1865 |
+
schema:
|
| 1866 |
+
type: integer
|
| 1867 |
+
format: int64
|
| 1868 |
+
responses:
|
| 1869 |
+
'200':
|
| 1870 |
+
description: OK
|
| 1871 |
+
content:
|
| 1872 |
+
'*/*':
|
| 1873 |
+
schema:
|
| 1874 |
+
type: string
|
| 1875 |
+
'401':
|
| 1876 |
+
description: Unauthorized
|
| 1877 |
+
'403':
|
| 1878 |
+
description: Forbidden
|
| 1879 |
+
'404':
|
| 1880 |
+
description: Not Found
|
| 1881 |
+
post:
|
| 1882 |
+
tags:
|
| 1883 |
+
- region-controller
|
| 1884 |
+
summary: putRegion
|
| 1885 |
+
operationId: putRegionUsingPOST
|
| 1886 |
+
parameters:
|
| 1887 |
+
- name: color
|
| 1888 |
+
in: query
|
| 1889 |
+
required: false
|
| 1890 |
+
style: form
|
| 1891 |
+
schema:
|
| 1892 |
+
type: string
|
| 1893 |
+
- name: description
|
| 1894 |
+
in: query
|
| 1895 |
+
required: false
|
| 1896 |
+
style: form
|
| 1897 |
+
schema:
|
| 1898 |
+
type: string
|
| 1899 |
+
- name: id
|
| 1900 |
+
in: query
|
| 1901 |
+
required: false
|
| 1902 |
+
style: form
|
| 1903 |
+
schema:
|
| 1904 |
+
type: integer
|
| 1905 |
+
format: int64
|
| 1906 |
+
- name: name
|
| 1907 |
+
in: query
|
| 1908 |
+
required: false
|
| 1909 |
+
style: form
|
| 1910 |
+
schema:
|
| 1911 |
+
type: string
|
| 1912 |
+
- name: regionId
|
| 1913 |
+
in: path
|
| 1914 |
+
description: regionId
|
| 1915 |
+
required: true
|
| 1916 |
+
style: simple
|
| 1917 |
+
schema:
|
| 1918 |
+
type: integer
|
| 1919 |
+
format: int64
|
| 1920 |
+
- name: subtitle
|
| 1921 |
+
in: query
|
| 1922 |
+
required: false
|
| 1923 |
+
style: form
|
| 1924 |
+
schema:
|
| 1925 |
+
type: string
|
| 1926 |
+
responses:
|
| 1927 |
+
'200':
|
| 1928 |
+
description: OK
|
| 1929 |
+
content:
|
| 1930 |
+
'*/*':
|
| 1931 |
+
schema:
|
| 1932 |
+
type: string
|
| 1933 |
+
'201':
|
| 1934 |
+
description: Created
|
| 1935 |
+
'401':
|
| 1936 |
+
description: Unauthorized
|
| 1937 |
+
'403':
|
| 1938 |
+
description: Forbidden
|
| 1939 |
+
'404':
|
| 1940 |
+
description: Not Found
|
| 1941 |
+
/regions/{regionId}:
|
| 1942 |
+
get:
|
| 1943 |
+
tags:
|
| 1944 |
+
- showcase-controller
|
| 1945 |
+
summary: getRegionProducts
|
| 1946 |
+
operationId: getRegionProductsUsingGET
|
| 1947 |
+
parameters:
|
| 1948 |
+
- name: direct
|
| 1949 |
+
in: query
|
| 1950 |
+
required: false
|
| 1951 |
+
style: form
|
| 1952 |
+
schema:
|
| 1953 |
+
type: string
|
| 1954 |
+
- name: page
|
| 1955 |
+
in: query
|
| 1956 |
+
required: false
|
| 1957 |
+
style: form
|
| 1958 |
+
schema:
|
| 1959 |
+
type: integer
|
| 1960 |
+
format: int32
|
| 1961 |
+
- name: regionId
|
| 1962 |
+
in: path
|
| 1963 |
+
description: regionId
|
| 1964 |
+
required: true
|
| 1965 |
+
style: simple
|
| 1966 |
+
schema:
|
| 1967 |
+
type: integer
|
| 1968 |
+
format: int64
|
| 1969 |
+
- name: size
|
| 1970 |
+
in: query
|
| 1971 |
+
required: false
|
| 1972 |
+
style: form
|
| 1973 |
+
schema:
|
| 1974 |
+
type: integer
|
| 1975 |
+
format: int32
|
| 1976 |
+
- name: sort
|
| 1977 |
+
in: query
|
| 1978 |
+
required: false
|
| 1979 |
+
style: form
|
| 1980 |
+
schema:
|
| 1981 |
+
type: string
|
| 1982 |
+
- name: dist
|
| 1983 |
+
in: query
|
| 1984 |
+
description: dist
|
| 1985 |
+
required: false
|
| 1986 |
+
style: form
|
| 1987 |
+
schema:
|
| 1988 |
+
type: integer
|
| 1989 |
+
format: int64
|
| 1990 |
+
responses:
|
| 1991 |
+
'200':
|
| 1992 |
+
description: OK
|
| 1993 |
+
content:
|
| 1994 |
+
'*/*':
|
| 1995 |
+
schema:
|
| 1996 |
+
type: string
|
| 1997 |
+
'401':
|
| 1998 |
+
description: Unauthorized
|
| 1999 |
+
'403':
|
| 2000 |
+
description: Forbidden
|
| 2001 |
+
'404':
|
| 2002 |
+
description: Not Found
|
| 2003 |
+
/admin/storage:
|
| 2004 |
+
get:
|
| 2005 |
+
tags:
|
| 2006 |
+
- storage-controller
|
| 2007 |
+
summary: getStorageUnits
|
| 2008 |
+
operationId: getStorageUnitsUsingGET
|
| 2009 |
+
parameters:
|
| 2010 |
+
- name: direct
|
| 2011 |
+
in: query
|
| 2012 |
+
required: false
|
| 2013 |
+
style: form
|
| 2014 |
+
schema:
|
| 2015 |
+
type: string
|
| 2016 |
+
- name: page
|
| 2017 |
+
in: query
|
| 2018 |
+
required: false
|
| 2019 |
+
style: form
|
| 2020 |
+
schema:
|
| 2021 |
+
type: integer
|
| 2022 |
+
format: int32
|
| 2023 |
+
- name: size
|
| 2024 |
+
in: query
|
| 2025 |
+
required: false
|
| 2026 |
+
style: form
|
| 2027 |
+
schema:
|
| 2028 |
+
type: integer
|
| 2029 |
+
format: int32
|
| 2030 |
+
- name: sort
|
| 2031 |
+
in: query
|
| 2032 |
+
required: false
|
| 2033 |
+
style: form
|
| 2034 |
+
schema:
|
| 2035 |
+
type: string
|
| 2036 |
+
- name: available
|
| 2037 |
+
in: query
|
| 2038 |
+
description: available
|
| 2039 |
+
required: false
|
| 2040 |
+
style: form
|
| 2041 |
+
schema:
|
| 2042 |
+
type: string
|
| 2043 |
+
responses:
|
| 2044 |
+
'200':
|
| 2045 |
+
description: OK
|
| 2046 |
+
content:
|
| 2047 |
+
'*/*':
|
| 2048 |
+
schema:
|
| 2049 |
+
type: string
|
| 2050 |
+
'401':
|
| 2051 |
+
description: Unauthorized
|
| 2052 |
+
'403':
|
| 2053 |
+
description: Forbidden
|
| 2054 |
+
'404':
|
| 2055 |
+
description: Not Found
|
| 2056 |
+
post:
|
| 2057 |
+
tags:
|
| 2058 |
+
- storage-controller
|
| 2059 |
+
summary: postStorage
|
| 2060 |
+
operationId: postStorageUsingPOST
|
| 2061 |
+
parameters:
|
| 2062 |
+
- name: productsIds
|
| 2063 |
+
in: query
|
| 2064 |
+
description: productsIds
|
| 2065 |
+
required: false
|
| 2066 |
+
style: form
|
| 2067 |
+
explode: true
|
| 2068 |
+
schema:
|
| 2069 |
+
type: integer
|
| 2070 |
+
format: int64
|
| 2071 |
+
- name: availableProductsIds
|
| 2072 |
+
in: query
|
| 2073 |
+
description: availableProductsIds
|
| 2074 |
+
required: false
|
| 2075 |
+
style: form
|
| 2076 |
+
explode: true
|
| 2077 |
+
schema:
|
| 2078 |
+
type: integer
|
| 2079 |
+
format: int64
|
| 2080 |
+
responses:
|
| 2081 |
+
'200':
|
| 2082 |
+
description: OK
|
| 2083 |
+
content:
|
| 2084 |
+
'*/*':
|
| 2085 |
+
schema:
|
| 2086 |
+
type: string
|
| 2087 |
+
'201':
|
| 2088 |
+
description: Created
|
| 2089 |
+
'401':
|
| 2090 |
+
description: Unauthorized
|
| 2091 |
+
'403':
|
| 2092 |
+
description: Forbidden
|
| 2093 |
+
'404':
|
| 2094 |
+
description: Not Found
|
| 2095 |
+
components:
|
| 2096 |
+
schemas:
|
| 2097 |
+
CartDTO:
|
| 2098 |
+
title: CartDTO
|
| 2099 |
+
type: object
|
| 2100 |
+
properties:
|
| 2101 |
+
_links:
|
| 2102 |
+
$ref: '#/components/schemas/Links'
|
| 2103 |
+
cartItems:
|
| 2104 |
+
type: array
|
| 2105 |
+
items:
|
| 2106 |
+
$ref: '#/components/schemas/CartItemDTORes'
|
| 2107 |
+
deliveryCost:
|
| 2108 |
+
type: integer
|
| 2109 |
+
format: int32
|
| 2110 |
+
deliveryIncluded:
|
| 2111 |
+
type: boolean
|
| 2112 |
+
empty:
|
| 2113 |
+
type: boolean
|
| 2114 |
+
productsCost:
|
| 2115 |
+
type: number
|
| 2116 |
+
format: double
|
| 2117 |
+
totalCost:
|
| 2118 |
+
type: number
|
| 2119 |
+
format: double
|
| 2120 |
+
totalItems:
|
| 2121 |
+
type: integer
|
| 2122 |
+
format: int32
|
| 2123 |
+
user:
|
| 2124 |
+
type: string
|
| 2125 |
+
CartItemDTOReq:
|
| 2126 |
+
title: CartItemDTOReq
|
| 2127 |
+
type: object
|
| 2128 |
+
properties:
|
| 2129 |
+
_links:
|
| 2130 |
+
type: array
|
| 2131 |
+
items:
|
| 2132 |
+
$ref: '#/components/schemas/Link'
|
| 2133 |
+
productId:
|
| 2134 |
+
type: integer
|
| 2135 |
+
format: int64
|
| 2136 |
+
quantity:
|
| 2137 |
+
type: integer
|
| 2138 |
+
format: int32
|
| 2139 |
+
CartItemDTORes:
|
| 2140 |
+
title: CartItemDTORes
|
| 2141 |
+
type: object
|
| 2142 |
+
properties:
|
| 2143 |
+
_links:
|
| 2144 |
+
$ref: '#/components/schemas/Links'
|
| 2145 |
+
productId:
|
| 2146 |
+
type: integer
|
| 2147 |
+
format: int64
|
| 2148 |
+
quantity:
|
| 2149 |
+
type: integer
|
| 2150 |
+
format: int32
|
| 2151 |
+
Link:
|
| 2152 |
+
title: Link
|
| 2153 |
+
type: object
|
| 2154 |
+
properties:
|
| 2155 |
+
deprecation:
|
| 2156 |
+
type: string
|
| 2157 |
+
href:
|
| 2158 |
+
type: string
|
| 2159 |
+
hreflang:
|
| 2160 |
+
type: string
|
| 2161 |
+
media:
|
| 2162 |
+
type: string
|
| 2163 |
+
name:
|
| 2164 |
+
type: string
|
| 2165 |
+
profile:
|
| 2166 |
+
type: string
|
| 2167 |
+
rel:
|
| 2168 |
+
$ref: '#/components/schemas/LinkRelation'
|
| 2169 |
+
title:
|
| 2170 |
+
type: string
|
| 2171 |
+
type:
|
| 2172 |
+
type: string
|
| 2173 |
+
LinkRelation:
|
| 2174 |
+
title: LinkRelation
|
| 2175 |
+
type: object
|
| 2176 |
+
Links:
|
| 2177 |
+
title: Links
|
| 2178 |
+
type: object
|
| 2179 |
+
properties:
|
| 2180 |
+
empty:
|
| 2181 |
+
type: boolean
|
| 2182 |
+
ModelAndView:
|
| 2183 |
+
title: ModelAndView
|
| 2184 |
+
type: object
|
| 2185 |
+
properties:
|
| 2186 |
+
empty:
|
| 2187 |
+
type: boolean
|
| 2188 |
+
model:
|
| 2189 |
+
type: object
|
| 2190 |
+
modelMap:
|
| 2191 |
+
type: object
|
| 2192 |
+
additionalProperties:
|
| 2193 |
+
type: object
|
| 2194 |
+
reference:
|
| 2195 |
+
type: boolean
|
| 2196 |
+
status:
|
| 2197 |
+
type: string
|
| 2198 |
+
enum:
|
| 2199 |
+
- ACCEPTED
|
| 2200 |
+
- ALREADY_REPORTED
|
| 2201 |
+
- BAD_GATEWAY
|
| 2202 |
+
- BAD_REQUEST
|
| 2203 |
+
- BANDWIDTH_LIMIT_EXCEEDED
|
| 2204 |
+
- CHECKPOINT
|
| 2205 |
+
- CONFLICT
|
| 2206 |
+
- CONTINUE
|
| 2207 |
+
- CREATED
|
| 2208 |
+
- DESTINATION_LOCKED
|
| 2209 |
+
- EXPECTATION_FAILED
|
| 2210 |
+
- FAILED_DEPENDENCY
|
| 2211 |
+
- FORBIDDEN
|
| 2212 |
+
- FOUND
|
| 2213 |
+
- GATEWAY_TIMEOUT
|
| 2214 |
+
- GONE
|
| 2215 |
+
- HTTP_VERSION_NOT_SUPPORTED
|
| 2216 |
+
- IM_USED
|
| 2217 |
+
- INSUFFICIENT_SPACE_ON_RESOURCE
|
| 2218 |
+
- INSUFFICIENT_STORAGE
|
| 2219 |
+
- INTERNAL_SERVER_ERROR
|
| 2220 |
+
- I_AM_A_TEAPOT
|
| 2221 |
+
- LENGTH_REQUIRED
|
| 2222 |
+
- LOCKED
|
| 2223 |
+
- LOOP_DETECTED
|
| 2224 |
+
- METHOD_FAILURE
|
| 2225 |
+
- METHOD_NOT_ALLOWED
|
| 2226 |
+
- MOVED_PERMANENTLY
|
| 2227 |
+
- MOVED_TEMPORARILY
|
| 2228 |
+
- MULTIPLE_CHOICES
|
| 2229 |
+
- MULTI_STATUS
|
| 2230 |
+
- NETWORK_AUTHENTICATION_REQUIRED
|
| 2231 |
+
- NON_AUTHORITATIVE_INFORMATION
|
| 2232 |
+
- NOT_ACCEPTABLE
|
| 2233 |
+
- NOT_EXTENDED
|
| 2234 |
+
- NOT_FOUND
|
| 2235 |
+
- NOT_IMPLEMENTED
|
| 2236 |
+
- NOT_MODIFIED
|
| 2237 |
+
- NO_CONTENT
|
| 2238 |
+
- OK
|
| 2239 |
+
- PARTIAL_CONTENT
|
| 2240 |
+
- PAYLOAD_TOO_LARGE
|
| 2241 |
+
- PAYMENT_REQUIRED
|
| 2242 |
+
- PERMANENT_REDIRECT
|
| 2243 |
+
- PRECONDITION_FAILED
|
| 2244 |
+
- PRECONDITION_REQUIRED
|
| 2245 |
+
- PROCESSING
|
| 2246 |
+
- PROXY_AUTHENTICATION_REQUIRED
|
| 2247 |
+
- REQUESTED_RANGE_NOT_SATISFIABLE
|
| 2248 |
+
- REQUEST_ENTITY_TOO_LARGE
|
| 2249 |
+
- REQUEST_HEADER_FIELDS_TOO_LARGE
|
| 2250 |
+
- REQUEST_TIMEOUT
|
| 2251 |
+
- REQUEST_URI_TOO_LONG
|
| 2252 |
+
- RESET_CONTENT
|
| 2253 |
+
- SEE_OTHER
|
| 2254 |
+
- SERVICE_UNAVAILABLE
|
| 2255 |
+
- SWITCHING_PROTOCOLS
|
| 2256 |
+
- TEMPORARY_REDIRECT
|
| 2257 |
+
- TOO_EARLY
|
| 2258 |
+
- TOO_MANY_REQUESTS
|
| 2259 |
+
- UNAUTHORIZED
|
| 2260 |
+
- UNAVAILABLE_FOR_LEGAL_REASONS
|
| 2261 |
+
- UNPROCESSABLE_ENTITY
|
| 2262 |
+
- UNSUPPORTED_MEDIA_TYPE
|
| 2263 |
+
- UPGRADE_REQUIRED
|
| 2264 |
+
- URI_TOO_LONG
|
| 2265 |
+
- USE_PROXY
|
| 2266 |
+
- VARIANT_ALSO_NEGOTIATES
|
| 2267 |
+
view:
|
| 2268 |
+
$ref: '#/components/schemas/View'
|
| 2269 |
+
viewName:
|
| 2270 |
+
type: string
|
| 2271 |
+
View:
|
| 2272 |
+
title: View
|
| 2273 |
+
type: object
|
| 2274 |
+
properties:
|
| 2275 |
+
contentType:
|
| 2276 |
+
type: string
|
aratrl-openapi/market2.yaml
ADDED
|
@@ -0,0 +1,693 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.1
|
| 2 |
+
info:
|
| 3 |
+
title: Api Documentation
|
| 4 |
+
description: Api Documentation
|
| 5 |
+
termsOfService: urn:tos
|
| 6 |
+
contact: {}
|
| 7 |
+
license:
|
| 8 |
+
name: Apache 2.0
|
| 9 |
+
url: http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
version: "1.0"
|
| 11 |
+
servers:
|
| 12 |
+
#- url: http://localhost:30117
|
| 13 |
+
- url: http://localhost:50117
|
| 14 |
+
tags:
|
| 15 |
+
- name: cart-rest-controller
|
| 16 |
+
description: Cart Rest Controller
|
| 17 |
+
- name: contacts-rest-controller
|
| 18 |
+
description: Contacts Rest Controller
|
| 19 |
+
- name: customer-rest-controller
|
| 20 |
+
description: Customer Rest Controller
|
| 21 |
+
- name: orders-rest-controller
|
| 22 |
+
description: Orders Rest Controller
|
| 23 |
+
- name: products-rest-controller
|
| 24 |
+
description: Products Rest Controller
|
| 25 |
+
paths:
|
| 26 |
+
/customer:
|
| 27 |
+
get:
|
| 28 |
+
tags:
|
| 29 |
+
- customer-rest-controller
|
| 30 |
+
summary: getCustomer
|
| 31 |
+
operationId: getCustomerUsingGET
|
| 32 |
+
parameters:
|
| 33 |
+
- name: name
|
| 34 |
+
in: query
|
| 35 |
+
schema:
|
| 36 |
+
type: string
|
| 37 |
+
responses:
|
| 38 |
+
"200":
|
| 39 |
+
description: OK
|
| 40 |
+
content:
|
| 41 |
+
'*/*':
|
| 42 |
+
schema:
|
| 43 |
+
$ref: '#/components/schemas/UserDTORes'
|
| 44 |
+
"401":
|
| 45 |
+
description: Unauthorized
|
| 46 |
+
content: {}
|
| 47 |
+
"403":
|
| 48 |
+
description: Forbidden
|
| 49 |
+
content: {}
|
| 50 |
+
"404":
|
| 51 |
+
description: Not Found
|
| 52 |
+
content: {}
|
| 53 |
+
/customer/cart:
|
| 54 |
+
get:
|
| 55 |
+
tags:
|
| 56 |
+
- cart-rest-controller
|
| 57 |
+
summary: getCart
|
| 58 |
+
operationId: getCartUsingGET
|
| 59 |
+
parameters:
|
| 60 |
+
- name: name
|
| 61 |
+
in: query
|
| 62 |
+
schema:
|
| 63 |
+
type: string
|
| 64 |
+
responses:
|
| 65 |
+
"200":
|
| 66 |
+
description: OK
|
| 67 |
+
content:
|
| 68 |
+
'*/*':
|
| 69 |
+
schema:
|
| 70 |
+
$ref: '#/components/schemas/CartDTO'
|
| 71 |
+
"401":
|
| 72 |
+
description: Unauthorized
|
| 73 |
+
content: {}
|
| 74 |
+
"403":
|
| 75 |
+
description: Forbidden
|
| 76 |
+
content: {}
|
| 77 |
+
"404":
|
| 78 |
+
description: Not Found
|
| 79 |
+
content: {}
|
| 80 |
+
put:
|
| 81 |
+
tags:
|
| 82 |
+
- cart-rest-controller
|
| 83 |
+
summary: addItem
|
| 84 |
+
operationId: addItemUsingPUT
|
| 85 |
+
parameters:
|
| 86 |
+
- name: name
|
| 87 |
+
in: query
|
| 88 |
+
schema:
|
| 89 |
+
type: string
|
| 90 |
+
requestBody:
|
| 91 |
+
description: item
|
| 92 |
+
content:
|
| 93 |
+
application/json:
|
| 94 |
+
schema:
|
| 95 |
+
$ref: '#/components/schemas/CartItemDTOReq'
|
| 96 |
+
required: true
|
| 97 |
+
responses:
|
| 98 |
+
"200":
|
| 99 |
+
description: OK
|
| 100 |
+
content:
|
| 101 |
+
'*/*':
|
| 102 |
+
schema:
|
| 103 |
+
$ref: '#/components/schemas/CartDTO'
|
| 104 |
+
"201":
|
| 105 |
+
description: Created
|
| 106 |
+
content: {}
|
| 107 |
+
"401":
|
| 108 |
+
description: Unauthorized
|
| 109 |
+
content: {}
|
| 110 |
+
"403":
|
| 111 |
+
description: Forbidden
|
| 112 |
+
content: {}
|
| 113 |
+
"404":
|
| 114 |
+
description: Not Found
|
| 115 |
+
content: {}
|
| 116 |
+
x-codegen-request-body-name: item
|
| 117 |
+
delete:
|
| 118 |
+
tags:
|
| 119 |
+
- cart-rest-controller
|
| 120 |
+
summary: clearCart
|
| 121 |
+
operationId: clearCartUsingDELETE
|
| 122 |
+
parameters:
|
| 123 |
+
- name: name
|
| 124 |
+
in: query
|
| 125 |
+
schema:
|
| 126 |
+
type: string
|
| 127 |
+
responses:
|
| 128 |
+
"200":
|
| 129 |
+
description: OK
|
| 130 |
+
content:
|
| 131 |
+
'*/*':
|
| 132 |
+
schema:
|
| 133 |
+
$ref: '#/components/schemas/CartDTO'
|
| 134 |
+
"204":
|
| 135 |
+
description: No Content
|
| 136 |
+
content: {}
|
| 137 |
+
"401":
|
| 138 |
+
description: Unauthorized
|
| 139 |
+
content: {}
|
| 140 |
+
"403":
|
| 141 |
+
description: Forbidden
|
| 142 |
+
content: {}
|
| 143 |
+
/customer/cart/delivery:
|
| 144 |
+
put:
|
| 145 |
+
tags:
|
| 146 |
+
- cart-rest-controller
|
| 147 |
+
summary: setDelivery
|
| 148 |
+
operationId: setDeliveryUsingPUT
|
| 149 |
+
parameters:
|
| 150 |
+
- name: included
|
| 151 |
+
in: query
|
| 152 |
+
description: included
|
| 153 |
+
required: true
|
| 154 |
+
schema:
|
| 155 |
+
type: boolean
|
| 156 |
+
- name: name
|
| 157 |
+
in: query
|
| 158 |
+
schema:
|
| 159 |
+
type: string
|
| 160 |
+
responses:
|
| 161 |
+
"200":
|
| 162 |
+
description: OK
|
| 163 |
+
content:
|
| 164 |
+
'*/*':
|
| 165 |
+
schema:
|
| 166 |
+
$ref: '#/components/schemas/CartDTO'
|
| 167 |
+
"201":
|
| 168 |
+
description: Created
|
| 169 |
+
content: {}
|
| 170 |
+
"401":
|
| 171 |
+
description: Unauthorized
|
| 172 |
+
content: {}
|
| 173 |
+
"403":
|
| 174 |
+
description: Forbidden
|
| 175 |
+
content: {}
|
| 176 |
+
"404":
|
| 177 |
+
description: Not Found
|
| 178 |
+
content: {}
|
| 179 |
+
/customer/cart/pay:
|
| 180 |
+
post:
|
| 181 |
+
tags:
|
| 182 |
+
- cart-rest-controller
|
| 183 |
+
summary: payByCard
|
| 184 |
+
operationId: payByCardUsingPOST
|
| 185 |
+
parameters:
|
| 186 |
+
- name: name
|
| 187 |
+
in: query
|
| 188 |
+
schema:
|
| 189 |
+
type: string
|
| 190 |
+
requestBody:
|
| 191 |
+
description: card
|
| 192 |
+
content:
|
| 193 |
+
application/json:
|
| 194 |
+
schema:
|
| 195 |
+
$ref: '#/components/schemas/CreditCardDTO'
|
| 196 |
+
required: true
|
| 197 |
+
responses:
|
| 198 |
+
"201":
|
| 199 |
+
description: Created
|
| 200 |
+
content:
|
| 201 |
+
'*/*':
|
| 202 |
+
schema:
|
| 203 |
+
$ref: '#/components/schemas/OrderDTO'
|
| 204 |
+
"401":
|
| 205 |
+
description: Unauthorized
|
| 206 |
+
content: {}
|
| 207 |
+
"403":
|
| 208 |
+
description: Forbidden
|
| 209 |
+
content: {}
|
| 210 |
+
"404":
|
| 211 |
+
description: Not Found
|
| 212 |
+
content: {}
|
| 213 |
+
x-codegen-request-body-name: card
|
| 214 |
+
/customer/contacts:
|
| 215 |
+
get:
|
| 216 |
+
tags:
|
| 217 |
+
- contacts-rest-controller
|
| 218 |
+
summary: getContacts
|
| 219 |
+
operationId: getContactsUsingGET
|
| 220 |
+
parameters:
|
| 221 |
+
- name: name
|
| 222 |
+
in: query
|
| 223 |
+
schema:
|
| 224 |
+
type: string
|
| 225 |
+
responses:
|
| 226 |
+
"200":
|
| 227 |
+
description: OK
|
| 228 |
+
content:
|
| 229 |
+
'*/*':
|
| 230 |
+
schema:
|
| 231 |
+
$ref: '#/components/schemas/ContactsDTORes'
|
| 232 |
+
"401":
|
| 233 |
+
description: Unauthorized
|
| 234 |
+
content: {}
|
| 235 |
+
"403":
|
| 236 |
+
description: Forbidden
|
| 237 |
+
content: {}
|
| 238 |
+
"404":
|
| 239 |
+
description: Not Found
|
| 240 |
+
content: {}
|
| 241 |
+
put:
|
| 242 |
+
tags:
|
| 243 |
+
- contacts-rest-controller
|
| 244 |
+
summary: updateContacts
|
| 245 |
+
operationId: updateContactsUsingPUT
|
| 246 |
+
parameters:
|
| 247 |
+
- name: name
|
| 248 |
+
in: query
|
| 249 |
+
schema:
|
| 250 |
+
type: string
|
| 251 |
+
requestBody:
|
| 252 |
+
description: contactsDto
|
| 253 |
+
content:
|
| 254 |
+
application/json:
|
| 255 |
+
schema:
|
| 256 |
+
$ref: '#/components/schemas/ContactsDTOReq'
|
| 257 |
+
required: true
|
| 258 |
+
responses:
|
| 259 |
+
"200":
|
| 260 |
+
description: OK
|
| 261 |
+
content:
|
| 262 |
+
'*/*':
|
| 263 |
+
schema:
|
| 264 |
+
$ref: '#/components/schemas/ContactsDTORes'
|
| 265 |
+
"201":
|
| 266 |
+
description: Created
|
| 267 |
+
content: {}
|
| 268 |
+
"401":
|
| 269 |
+
description: Unauthorized
|
| 270 |
+
content: {}
|
| 271 |
+
"403":
|
| 272 |
+
description: Forbidden
|
| 273 |
+
content: {}
|
| 274 |
+
"404":
|
| 275 |
+
description: Not Found
|
| 276 |
+
content: {}
|
| 277 |
+
x-codegen-request-body-name: contactsDto
|
| 278 |
+
/customer/orders:
|
| 279 |
+
get:
|
| 280 |
+
tags:
|
| 281 |
+
- orders-rest-controller
|
| 282 |
+
summary: getOrders
|
| 283 |
+
operationId: getOrdersUsingGET
|
| 284 |
+
parameters:
|
| 285 |
+
- name: name
|
| 286 |
+
in: query
|
| 287 |
+
schema:
|
| 288 |
+
type: string
|
| 289 |
+
responses:
|
| 290 |
+
"200":
|
| 291 |
+
description: OK
|
| 292 |
+
content:
|
| 293 |
+
'*/*':
|
| 294 |
+
schema:
|
| 295 |
+
type: array
|
| 296 |
+
items:
|
| 297 |
+
$ref: '#/components/schemas/OrderDTO'
|
| 298 |
+
"401":
|
| 299 |
+
description: Unauthorized
|
| 300 |
+
content: {}
|
| 301 |
+
"403":
|
| 302 |
+
description: Forbidden
|
| 303 |
+
content: {}
|
| 304 |
+
"404":
|
| 305 |
+
description: Not Found
|
| 306 |
+
content: {}
|
| 307 |
+
/customer/orders/{orderId}:
|
| 308 |
+
get:
|
| 309 |
+
tags:
|
| 310 |
+
- orders-rest-controller
|
| 311 |
+
summary: getOrder
|
| 312 |
+
operationId: getOrderUsingGET
|
| 313 |
+
parameters:
|
| 314 |
+
- name: name
|
| 315 |
+
in: query
|
| 316 |
+
schema:
|
| 317 |
+
type: string
|
| 318 |
+
- name: orderId
|
| 319 |
+
in: path
|
| 320 |
+
description: orderId
|
| 321 |
+
required: true
|
| 322 |
+
schema:
|
| 323 |
+
type: integer
|
| 324 |
+
format: int64
|
| 325 |
+
responses:
|
| 326 |
+
"200":
|
| 327 |
+
description: OK
|
| 328 |
+
content:
|
| 329 |
+
'*/*':
|
| 330 |
+
schema:
|
| 331 |
+
$ref: '#/components/schemas/OrderDTO'
|
| 332 |
+
"401":
|
| 333 |
+
description: Unauthorized
|
| 334 |
+
content: {}
|
| 335 |
+
"403":
|
| 336 |
+
description: Forbidden
|
| 337 |
+
content: {}
|
| 338 |
+
"404":
|
| 339 |
+
description: Not Found
|
| 340 |
+
content: {}
|
| 341 |
+
/products:
|
| 342 |
+
get:
|
| 343 |
+
tags:
|
| 344 |
+
- products-rest-controller
|
| 345 |
+
summary: getProducts
|
| 346 |
+
operationId: getProductsUsingGET
|
| 347 |
+
responses:
|
| 348 |
+
"200":
|
| 349 |
+
description: OK
|
| 350 |
+
content:
|
| 351 |
+
'*/*':
|
| 352 |
+
schema:
|
| 353 |
+
type: array
|
| 354 |
+
items:
|
| 355 |
+
$ref: '#/components/schemas/ProductDTO'
|
| 356 |
+
"401":
|
| 357 |
+
description: Unauthorized
|
| 358 |
+
content: {}
|
| 359 |
+
"403":
|
| 360 |
+
description: Forbidden
|
| 361 |
+
content: {}
|
| 362 |
+
"404":
|
| 363 |
+
description: Not Found
|
| 364 |
+
content: {}
|
| 365 |
+
/products/{productId}:
|
| 366 |
+
get:
|
| 367 |
+
tags:
|
| 368 |
+
- products-rest-controller
|
| 369 |
+
summary: getProduct
|
| 370 |
+
operationId: getProductUsingGET
|
| 371 |
+
parameters:
|
| 372 |
+
- name: productId
|
| 373 |
+
in: path
|
| 374 |
+
description: productId
|
| 375 |
+
required: true
|
| 376 |
+
schema:
|
| 377 |
+
type: integer
|
| 378 |
+
format: int64
|
| 379 |
+
responses:
|
| 380 |
+
"200":
|
| 381 |
+
description: OK
|
| 382 |
+
content:
|
| 383 |
+
'*/*':
|
| 384 |
+
schema:
|
| 385 |
+
$ref: '#/components/schemas/ProductDTO'
|
| 386 |
+
"401":
|
| 387 |
+
description: Unauthorized
|
| 388 |
+
content: {}
|
| 389 |
+
"403":
|
| 390 |
+
description: Forbidden
|
| 391 |
+
content: {}
|
| 392 |
+
"404":
|
| 393 |
+
description: Not Found
|
| 394 |
+
content: {}
|
| 395 |
+
/register:
|
| 396 |
+
post:
|
| 397 |
+
tags:
|
| 398 |
+
- customer-rest-controller
|
| 399 |
+
summary: createCustomer
|
| 400 |
+
operationId: createCustomerUsingPOST
|
| 401 |
+
requestBody:
|
| 402 |
+
description: user
|
| 403 |
+
content:
|
| 404 |
+
application/json:
|
| 405 |
+
schema:
|
| 406 |
+
$ref: '#/components/schemas/UserDTOReq'
|
| 407 |
+
required: true
|
| 408 |
+
responses:
|
| 409 |
+
"201":
|
| 410 |
+
description: Created
|
| 411 |
+
content:
|
| 412 |
+
'*/*':
|
| 413 |
+
schema:
|
| 414 |
+
$ref: '#/components/schemas/UserDTORes'
|
| 415 |
+
"401":
|
| 416 |
+
description: Unauthorized
|
| 417 |
+
content: {}
|
| 418 |
+
"403":
|
| 419 |
+
description: Forbidden
|
| 420 |
+
content: {}
|
| 421 |
+
"404":
|
| 422 |
+
description: Not Found
|
| 423 |
+
content: {}
|
| 424 |
+
x-codegen-request-body-name: user
|
| 425 |
+
components:
|
| 426 |
+
schemas:
|
| 427 |
+
CartDTO:
|
| 428 |
+
title: CartDTO
|
| 429 |
+
type: object
|
| 430 |
+
properties:
|
| 431 |
+
_links:
|
| 432 |
+
$ref: '#/components/schemas/Links'
|
| 433 |
+
cartItems:
|
| 434 |
+
type: array
|
| 435 |
+
items:
|
| 436 |
+
$ref: '#/components/schemas/CartItemDTORes'
|
| 437 |
+
deliveryCost:
|
| 438 |
+
type: integer
|
| 439 |
+
format: int32
|
| 440 |
+
deliveryIncluded:
|
| 441 |
+
type: boolean
|
| 442 |
+
empty:
|
| 443 |
+
type: boolean
|
| 444 |
+
productsCost:
|
| 445 |
+
type: number
|
| 446 |
+
format: double
|
| 447 |
+
totalCost:
|
| 448 |
+
type: number
|
| 449 |
+
format: double
|
| 450 |
+
totalItems:
|
| 451 |
+
type: integer
|
| 452 |
+
format: int32
|
| 453 |
+
user:
|
| 454 |
+
type: string
|
| 455 |
+
CartItemDTOReq:
|
| 456 |
+
title: CartItemDTOReq
|
| 457 |
+
type: object
|
| 458 |
+
properties:
|
| 459 |
+
_links:
|
| 460 |
+
type: array
|
| 461 |
+
items:
|
| 462 |
+
$ref: '#/components/schemas/Link'
|
| 463 |
+
productId:
|
| 464 |
+
type: integer
|
| 465 |
+
format: int64
|
| 466 |
+
quantity:
|
| 467 |
+
type: integer
|
| 468 |
+
format: int32
|
| 469 |
+
CartItemDTORes:
|
| 470 |
+
title: CartItemDTORes
|
| 471 |
+
type: object
|
| 472 |
+
properties:
|
| 473 |
+
_links:
|
| 474 |
+
$ref: '#/components/schemas/Links'
|
| 475 |
+
productId:
|
| 476 |
+
type: integer
|
| 477 |
+
format: int64
|
| 478 |
+
quantity:
|
| 479 |
+
type: integer
|
| 480 |
+
format: int32
|
| 481 |
+
ContactsDTOReq:
|
| 482 |
+
title: ContactsDTOReq
|
| 483 |
+
type: object
|
| 484 |
+
properties:
|
| 485 |
+
_links:
|
| 486 |
+
type: array
|
| 487 |
+
items:
|
| 488 |
+
$ref: '#/components/schemas/Link'
|
| 489 |
+
address:
|
| 490 |
+
maxLength: 100
|
| 491 |
+
minLength: 0
|
| 492 |
+
pattern: "^[^#$%^*()']*$"
|
| 493 |
+
type: string
|
| 494 |
+
phone:
|
| 495 |
+
maxLength: 20
|
| 496 |
+
minLength: 0
|
| 497 |
+
pattern: "^\\+[1-9][0-9]?[\\s]*\\(?\\d{3}\\)?[-\\s]?\\d{3}[-\\s]?\\d{2}[-\\\
|
| 498 |
+
s]?\\d{2}$"
|
| 499 |
+
type: string
|
| 500 |
+
ContactsDTORes:
|
| 501 |
+
title: ContactsDTORes
|
| 502 |
+
type: object
|
| 503 |
+
properties:
|
| 504 |
+
_links:
|
| 505 |
+
$ref: '#/components/schemas/Links'
|
| 506 |
+
address:
|
| 507 |
+
maxLength: 100
|
| 508 |
+
minLength: 0
|
| 509 |
+
pattern: "^[^#$%^*()']*$"
|
| 510 |
+
type: string
|
| 511 |
+
phone:
|
| 512 |
+
maxLength: 20
|
| 513 |
+
minLength: 0
|
| 514 |
+
pattern: "^\\+[1-9][0-9]?[\\s]*\\(?\\d{3}\\)?[-\\s]?\\d{3}[-\\s]?\\d{2}[-\\\
|
| 515 |
+
s]?\\d{2}$"
|
| 516 |
+
type: string
|
| 517 |
+
CreditCardDTO:
|
| 518 |
+
title: CreditCardDTO
|
| 519 |
+
type: object
|
| 520 |
+
properties:
|
| 521 |
+
ccNumber:
|
| 522 |
+
pattern: "\\b(?:\\d[ -]*?){13,16}\\b"
|
| 523 |
+
type: string
|
| 524 |
+
Link:
|
| 525 |
+
title: Link
|
| 526 |
+
type: object
|
| 527 |
+
properties:
|
| 528 |
+
deprecation:
|
| 529 |
+
type: string
|
| 530 |
+
href:
|
| 531 |
+
type: string
|
| 532 |
+
hreflang:
|
| 533 |
+
type: string
|
| 534 |
+
media:
|
| 535 |
+
type: string
|
| 536 |
+
name:
|
| 537 |
+
type: string
|
| 538 |
+
profile:
|
| 539 |
+
type: string
|
| 540 |
+
rel:
|
| 541 |
+
$ref: '#/components/schemas/LinkRelation'
|
| 542 |
+
title:
|
| 543 |
+
type: string
|
| 544 |
+
type:
|
| 545 |
+
type: string
|
| 546 |
+
LinkRelation:
|
| 547 |
+
title: LinkRelation
|
| 548 |
+
type: object
|
| 549 |
+
Links:
|
| 550 |
+
title: Links
|
| 551 |
+
type: object
|
| 552 |
+
properties:
|
| 553 |
+
empty:
|
| 554 |
+
type: boolean
|
| 555 |
+
OrderDTO:
|
| 556 |
+
title: OrderDTO
|
| 557 |
+
type: object
|
| 558 |
+
properties:
|
| 559 |
+
_links:
|
| 560 |
+
$ref: '#/components/schemas/Links'
|
| 561 |
+
billNumber:
|
| 562 |
+
type: integer
|
| 563 |
+
format: int32
|
| 564 |
+
dateCreated:
|
| 565 |
+
type: string
|
| 566 |
+
format: date-time
|
| 567 |
+
deliveryCost:
|
| 568 |
+
type: integer
|
| 569 |
+
format: int32
|
| 570 |
+
deliveryIncluded:
|
| 571 |
+
type: boolean
|
| 572 |
+
executed:
|
| 573 |
+
type: boolean
|
| 574 |
+
id:
|
| 575 |
+
type: integer
|
| 576 |
+
format: int64
|
| 577 |
+
payed:
|
| 578 |
+
type: boolean
|
| 579 |
+
productsCost:
|
| 580 |
+
type: number
|
| 581 |
+
format: double
|
| 582 |
+
totalCost:
|
| 583 |
+
type: number
|
| 584 |
+
format: double
|
| 585 |
+
userAccount:
|
| 586 |
+
type: string
|
| 587 |
+
ProductDTO:
|
| 588 |
+
title: ProductDTO
|
| 589 |
+
required:
|
| 590 |
+
- alcohol
|
| 591 |
+
- price
|
| 592 |
+
- volume
|
| 593 |
+
type: object
|
| 594 |
+
properties:
|
| 595 |
+
_links:
|
| 596 |
+
$ref: '#/components/schemas/Links'
|
| 597 |
+
age:
|
| 598 |
+
maximum: 2000
|
| 599 |
+
exclusiveMaximum: false
|
| 600 |
+
type: integer
|
| 601 |
+
format: int32
|
| 602 |
+
alcohol:
|
| 603 |
+
maximum: 96
|
| 604 |
+
exclusiveMaximum: false
|
| 605 |
+
minimum: 1
|
| 606 |
+
exclusiveMinimum: false
|
| 607 |
+
type: number
|
| 608 |
+
format: float
|
| 609 |
+
available:
|
| 610 |
+
type: boolean
|
| 611 |
+
description:
|
| 612 |
+
type: string
|
| 613 |
+
distillery:
|
| 614 |
+
type: string
|
| 615 |
+
name:
|
| 616 |
+
pattern: "^[^#$%^&*()']*$"
|
| 617 |
+
type: string
|
| 618 |
+
price:
|
| 619 |
+
type: number
|
| 620 |
+
format: double
|
| 621 |
+
productId:
|
| 622 |
+
type: integer
|
| 623 |
+
format: int64
|
| 624 |
+
volume:
|
| 625 |
+
type: integer
|
| 626 |
+
format: int32
|
| 627 |
+
UserDTOReq:
|
| 628 |
+
title: UserDTOReq
|
| 629 |
+
type: object
|
| 630 |
+
properties:
|
| 631 |
+
_links:
|
| 632 |
+
type: array
|
| 633 |
+
items:
|
| 634 |
+
$ref: '#/components/schemas/Link'
|
| 635 |
+
address:
|
| 636 |
+
maxLength: 100
|
| 637 |
+
minLength: 0
|
| 638 |
+
pattern: "^[^#$%^*()']*$"
|
| 639 |
+
type: string
|
| 640 |
+
email:
|
| 641 |
+
maxLength: 50
|
| 642 |
+
minLength: 0
|
| 643 |
+
pattern: "^[\\w-]+(\\.[\\w-]+)*@([\\w-]+\\.)+[a-zA-Z]+$"
|
| 644 |
+
type: string
|
| 645 |
+
name:
|
| 646 |
+
maxLength: 50
|
| 647 |
+
minLength: 0
|
| 648 |
+
pattern: "^[\\pL '-]+$"
|
| 649 |
+
type: string
|
| 650 |
+
password:
|
| 651 |
+
maxLength: 50
|
| 652 |
+
minLength: 6
|
| 653 |
+
pattern: "^[a-zA-Z0-9]+$"
|
| 654 |
+
type: string
|
| 655 |
+
phone:
|
| 656 |
+
maxLength: 20
|
| 657 |
+
minLength: 0
|
| 658 |
+
pattern: "^\\+[1-9][0-9]?[\\s]*\\(?\\d{3}\\)?[-\\s]?\\d{3}[-\\s]?\\d{2}[-\\\
|
| 659 |
+
s]?\\d{2}$"
|
| 660 |
+
type: string
|
| 661 |
+
UserDTORes:
|
| 662 |
+
title: UserDTORes
|
| 663 |
+
type: object
|
| 664 |
+
properties:
|
| 665 |
+
_links:
|
| 666 |
+
$ref: '#/components/schemas/Links'
|
| 667 |
+
address:
|
| 668 |
+
maxLength: 100
|
| 669 |
+
minLength: 0
|
| 670 |
+
pattern: "^[^#$%^*()']*$"
|
| 671 |
+
type: string
|
| 672 |
+
email:
|
| 673 |
+
maxLength: 50
|
| 674 |
+
minLength: 0
|
| 675 |
+
pattern: "^[\\w-]+(\\.[\\w-]+)*@([\\w-]+\\.)+[a-zA-Z]+$"
|
| 676 |
+
type: string
|
| 677 |
+
name:
|
| 678 |
+
maxLength: 50
|
| 679 |
+
minLength: 0
|
| 680 |
+
pattern: "^[\\pL '-]+$"
|
| 681 |
+
type: string
|
| 682 |
+
password:
|
| 683 |
+
maxLength: 50
|
| 684 |
+
minLength: 6
|
| 685 |
+
pattern: "^[a-zA-Z0-9]+$"
|
| 686 |
+
type: string
|
| 687 |
+
phone:
|
| 688 |
+
maxLength: 20
|
| 689 |
+
minLength: 0
|
| 690 |
+
pattern: "^\\+[1-9][0-9]?[\\s]*\\(?\\d{3}\\)?[-\\s]?\\d{3}[-\\s]?\\d{2}[-\\\
|
| 691 |
+
s]?\\d{2}$"
|
| 692 |
+
type: string
|
| 693 |
+
x-original-swagger-version: "2.0"
|
aratrl-openapi/ncs.yaml
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.1
|
| 2 |
+
info:
|
| 3 |
+
title: API for Numerical Case Study (NCS)
|
| 4 |
+
description: Examples of different numerical algorithms accessible via REST
|
| 5 |
+
version: "1.0"
|
| 6 |
+
servers:
|
| 7 |
+
- url: http://localhost:30102
|
| 8 |
+
tags:
|
| 9 |
+
- name: ncs-rest
|
| 10 |
+
description: Ncs Rest
|
| 11 |
+
paths:
|
| 12 |
+
/api/bessj/{n}/{x}:
|
| 13 |
+
get:
|
| 14 |
+
tags:
|
| 15 |
+
- ncs-rest
|
| 16 |
+
summary: bessj
|
| 17 |
+
operationId: bessjUsingGET
|
| 18 |
+
parameters:
|
| 19 |
+
- name: "n"
|
| 20 |
+
in: path
|
| 21 |
+
description: "n"
|
| 22 |
+
required: true
|
| 23 |
+
schema:
|
| 24 |
+
type: integer
|
| 25 |
+
format: int32
|
| 26 |
+
- name: x
|
| 27 |
+
in: path
|
| 28 |
+
description: x
|
| 29 |
+
required: true
|
| 30 |
+
schema:
|
| 31 |
+
type: number
|
| 32 |
+
format: double
|
| 33 |
+
responses:
|
| 34 |
+
"200":
|
| 35 |
+
description: OK
|
| 36 |
+
content:
|
| 37 |
+
application/json:
|
| 38 |
+
schema:
|
| 39 |
+
$ref: '#/components/schemas/Dto'
|
| 40 |
+
"401":
|
| 41 |
+
description: Unauthorized
|
| 42 |
+
content: {}
|
| 43 |
+
"403":
|
| 44 |
+
description: Forbidden
|
| 45 |
+
content: {}
|
| 46 |
+
"404":
|
| 47 |
+
description: Not Found
|
| 48 |
+
content: {}
|
| 49 |
+
deprecated: false
|
| 50 |
+
/api/expint/{n}/{x}:
|
| 51 |
+
get:
|
| 52 |
+
tags:
|
| 53 |
+
- ncs-rest
|
| 54 |
+
summary: expint
|
| 55 |
+
operationId: expintUsingGET
|
| 56 |
+
parameters:
|
| 57 |
+
- name: "n"
|
| 58 |
+
in: path
|
| 59 |
+
description: "n"
|
| 60 |
+
required: true
|
| 61 |
+
schema:
|
| 62 |
+
type: integer
|
| 63 |
+
format: int32
|
| 64 |
+
- name: x
|
| 65 |
+
in: path
|
| 66 |
+
description: x
|
| 67 |
+
required: true
|
| 68 |
+
schema:
|
| 69 |
+
type: number
|
| 70 |
+
format: double
|
| 71 |
+
responses:
|
| 72 |
+
"200":
|
| 73 |
+
description: OK
|
| 74 |
+
content:
|
| 75 |
+
application/json:
|
| 76 |
+
schema:
|
| 77 |
+
$ref: '#/components/schemas/Dto'
|
| 78 |
+
"401":
|
| 79 |
+
description: Unauthorized
|
| 80 |
+
content: {}
|
| 81 |
+
"403":
|
| 82 |
+
description: Forbidden
|
| 83 |
+
content: {}
|
| 84 |
+
"404":
|
| 85 |
+
description: Not Found
|
| 86 |
+
content: {}
|
| 87 |
+
deprecated: false
|
| 88 |
+
/api/fisher/{m}/{n}/{x}:
|
| 89 |
+
get:
|
| 90 |
+
tags:
|
| 91 |
+
- ncs-rest
|
| 92 |
+
summary: fisher
|
| 93 |
+
operationId: fisherUsingGET
|
| 94 |
+
parameters:
|
| 95 |
+
- name: m
|
| 96 |
+
in: path
|
| 97 |
+
description: m
|
| 98 |
+
required: true
|
| 99 |
+
schema:
|
| 100 |
+
type: integer
|
| 101 |
+
format: int32
|
| 102 |
+
- name: "n"
|
| 103 |
+
in: path
|
| 104 |
+
description: "n"
|
| 105 |
+
required: true
|
| 106 |
+
schema:
|
| 107 |
+
type: integer
|
| 108 |
+
format: int32
|
| 109 |
+
- name: x
|
| 110 |
+
in: path
|
| 111 |
+
description: x
|
| 112 |
+
required: true
|
| 113 |
+
schema:
|
| 114 |
+
type: number
|
| 115 |
+
format: double
|
| 116 |
+
responses:
|
| 117 |
+
"200":
|
| 118 |
+
description: OK
|
| 119 |
+
content:
|
| 120 |
+
application/json:
|
| 121 |
+
schema:
|
| 122 |
+
$ref: '#/components/schemas/Dto'
|
| 123 |
+
"401":
|
| 124 |
+
description: Unauthorized
|
| 125 |
+
content: {}
|
| 126 |
+
"403":
|
| 127 |
+
description: Forbidden
|
| 128 |
+
content: {}
|
| 129 |
+
"404":
|
| 130 |
+
description: Not Found
|
| 131 |
+
content: {}
|
| 132 |
+
deprecated: false
|
| 133 |
+
/api/gammq/{a}/{x}:
|
| 134 |
+
get:
|
| 135 |
+
tags:
|
| 136 |
+
- ncs-rest
|
| 137 |
+
summary: gammq
|
| 138 |
+
operationId: gammqUsingGET
|
| 139 |
+
parameters:
|
| 140 |
+
- name: a
|
| 141 |
+
in: path
|
| 142 |
+
description: a
|
| 143 |
+
required: true
|
| 144 |
+
schema:
|
| 145 |
+
type: number
|
| 146 |
+
format: double
|
| 147 |
+
- name: x
|
| 148 |
+
in: path
|
| 149 |
+
description: x
|
| 150 |
+
required: true
|
| 151 |
+
schema:
|
| 152 |
+
type: number
|
| 153 |
+
format: double
|
| 154 |
+
responses:
|
| 155 |
+
"200":
|
| 156 |
+
description: OK
|
| 157 |
+
content:
|
| 158 |
+
application/json:
|
| 159 |
+
schema:
|
| 160 |
+
$ref: '#/components/schemas/Dto'
|
| 161 |
+
"401":
|
| 162 |
+
description: Unauthorized
|
| 163 |
+
content: {}
|
| 164 |
+
"403":
|
| 165 |
+
description: Forbidden
|
| 166 |
+
content: {}
|
| 167 |
+
"404":
|
| 168 |
+
description: Not Found
|
| 169 |
+
content: {}
|
| 170 |
+
deprecated: false
|
| 171 |
+
/api/remainder/{a}/{b}:
|
| 172 |
+
get:
|
| 173 |
+
tags:
|
| 174 |
+
- ncs-rest
|
| 175 |
+
summary: remainder
|
| 176 |
+
operationId: remainderUsingGET
|
| 177 |
+
parameters:
|
| 178 |
+
- name: a
|
| 179 |
+
in: path
|
| 180 |
+
description: a
|
| 181 |
+
required: true
|
| 182 |
+
schema:
|
| 183 |
+
type: integer
|
| 184 |
+
format: int32
|
| 185 |
+
- name: b
|
| 186 |
+
in: path
|
| 187 |
+
description: b
|
| 188 |
+
required: true
|
| 189 |
+
schema:
|
| 190 |
+
type: integer
|
| 191 |
+
format: int32
|
| 192 |
+
responses:
|
| 193 |
+
"200":
|
| 194 |
+
description: OK
|
| 195 |
+
content:
|
| 196 |
+
application/json:
|
| 197 |
+
schema:
|
| 198 |
+
$ref: '#/components/schemas/Dto'
|
| 199 |
+
"401":
|
| 200 |
+
description: Unauthorized
|
| 201 |
+
content: {}
|
| 202 |
+
"403":
|
| 203 |
+
description: Forbidden
|
| 204 |
+
content: {}
|
| 205 |
+
"404":
|
| 206 |
+
description: Not Found
|
| 207 |
+
content: {}
|
| 208 |
+
deprecated: false
|
| 209 |
+
/api/triangle/{a}/{b}/{c}:
|
| 210 |
+
get:
|
| 211 |
+
tags:
|
| 212 |
+
- ncs-rest
|
| 213 |
+
summary: Check the triangle type of the given three edges
|
| 214 |
+
operationId: checkTriangleUsingGET
|
| 215 |
+
parameters:
|
| 216 |
+
- name: a
|
| 217 |
+
in: path
|
| 218 |
+
description: First edge
|
| 219 |
+
required: true
|
| 220 |
+
schema:
|
| 221 |
+
type: integer
|
| 222 |
+
format: int32
|
| 223 |
+
- name: b
|
| 224 |
+
in: path
|
| 225 |
+
description: Second edge
|
| 226 |
+
required: true
|
| 227 |
+
schema:
|
| 228 |
+
type: integer
|
| 229 |
+
format: int32
|
| 230 |
+
- name: c
|
| 231 |
+
in: path
|
| 232 |
+
description: Third edge
|
| 233 |
+
required: true
|
| 234 |
+
schema:
|
| 235 |
+
type: integer
|
| 236 |
+
format: int32
|
| 237 |
+
responses:
|
| 238 |
+
"200":
|
| 239 |
+
description: OK
|
| 240 |
+
content:
|
| 241 |
+
application/json:
|
| 242 |
+
schema:
|
| 243 |
+
$ref: '#/components/schemas/Dto'
|
| 244 |
+
"401":
|
| 245 |
+
description: Unauthorized
|
| 246 |
+
content: {}
|
| 247 |
+
"403":
|
| 248 |
+
description: Forbidden
|
| 249 |
+
content: {}
|
| 250 |
+
"404":
|
| 251 |
+
description: Not Found
|
| 252 |
+
content: {}
|
| 253 |
+
deprecated: false
|
| 254 |
+
components:
|
| 255 |
+
schemas:
|
| 256 |
+
Dto:
|
| 257 |
+
title: Dto
|
| 258 |
+
type: object
|
| 259 |
+
properties:
|
| 260 |
+
resultAsDouble:
|
| 261 |
+
type: number
|
| 262 |
+
format: double
|
| 263 |
+
resultAsInt:
|
| 264 |
+
type: integer
|
| 265 |
+
format: int32
|
| 266 |
+
x-original-swagger-version: "2.0"
|
aratrl-openapi/person.yaml
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
| 1 |
+
openapi: 3.0.1
|
| 2 |
+
info:
|
| 3 |
+
title: Quick start project
|
| 4 |
+
description: "Quick start project using Java, Spring boot and MongoDB"
|
| 5 |
+
contact:
|
| 6 |
+
name: Maxime Beugnet
|
| 7 |
+
url: https://github.com/MaBeuLux88
|
| 8 |
+
email: maxime.beugnet@gmail.com
|
| 9 |
+
license:
|
| 10 |
+
name: Apache License Version 2.0
|
| 11 |
+
url: https://www.apache.org/licenses/LICENSE-2.0
|
| 12 |
+
version: 1.0.0
|
| 13 |
+
servers:
|
| 14 |
+
- url: http://localhost:30111
|
| 15 |
+
tags:
|
| 16 |
+
- name: person-controller
|
| 17 |
+
description: Person Controller
|
| 18 |
+
paths:
|
| 19 |
+
/api/person:
|
| 20 |
+
put:
|
| 21 |
+
tags:
|
| 22 |
+
- person-controller
|
| 23 |
+
summary: putPerson
|
| 24 |
+
operationId: putPersonUsingPUT
|
| 25 |
+
requestBody:
|
| 26 |
+
description: person
|
| 27 |
+
content:
|
| 28 |
+
application/json:
|
| 29 |
+
schema:
|
| 30 |
+
$ref: '#/components/schemas/PersonReq'
|
| 31 |
+
required: true
|
| 32 |
+
responses:
|
| 33 |
+
"200":
|
| 34 |
+
description: OK
|
| 35 |
+
content:
|
| 36 |
+
'*/*':
|
| 37 |
+
schema:
|
| 38 |
+
$ref: '#/components/schemas/PersonRes'
|
| 39 |
+
"201":
|
| 40 |
+
description: Created
|
| 41 |
+
content: {}
|
| 42 |
+
"401":
|
| 43 |
+
description: Unauthorized
|
| 44 |
+
content: {}
|
| 45 |
+
"403":
|
| 46 |
+
description: Forbidden
|
| 47 |
+
content: {}
|
| 48 |
+
"404":
|
| 49 |
+
description: Not Found
|
| 50 |
+
content: {}
|
| 51 |
+
x-codegen-request-body-name: person
|
| 52 |
+
post:
|
| 53 |
+
tags:
|
| 54 |
+
- person-controller
|
| 55 |
+
summary: postPerson
|
| 56 |
+
operationId: postPersonUsingPOST
|
| 57 |
+
requestBody:
|
| 58 |
+
description: person
|
| 59 |
+
content:
|
| 60 |
+
application/json:
|
| 61 |
+
schema:
|
| 62 |
+
$ref: '#/components/schemas/PersonReq'
|
| 63 |
+
required: true
|
| 64 |
+
responses:
|
| 65 |
+
"201":
|
| 66 |
+
description: Created
|
| 67 |
+
content:
|
| 68 |
+
'*/*':
|
| 69 |
+
schema:
|
| 70 |
+
$ref: '#/components/schemas/PersonRes'
|
| 71 |
+
"401":
|
| 72 |
+
description: Unauthorized
|
| 73 |
+
content: {}
|
| 74 |
+
"403":
|
| 75 |
+
description: Forbidden
|
| 76 |
+
content: {}
|
| 77 |
+
"404":
|
| 78 |
+
description: Not Found
|
| 79 |
+
content: {}
|
| 80 |
+
x-codegen-request-body-name: person
|
| 81 |
+
/api/person/{id}:
|
| 82 |
+
get:
|
| 83 |
+
tags:
|
| 84 |
+
- person-controller
|
| 85 |
+
summary: getPerson
|
| 86 |
+
operationId: getPersonUsingGET
|
| 87 |
+
parameters:
|
| 88 |
+
- name: id
|
| 89 |
+
in: path
|
| 90 |
+
description: id
|
| 91 |
+
required: true
|
| 92 |
+
schema:
|
| 93 |
+
type: string
|
| 94 |
+
responses:
|
| 95 |
+
"200":
|
| 96 |
+
description: OK
|
| 97 |
+
content:
|
| 98 |
+
'*/*':
|
| 99 |
+
schema:
|
| 100 |
+
$ref: '#/components/schemas/PersonRes'
|
| 101 |
+
"401":
|
| 102 |
+
description: Unauthorized
|
| 103 |
+
content: {}
|
| 104 |
+
"403":
|
| 105 |
+
description: Forbidden
|
| 106 |
+
content: {}
|
| 107 |
+
"404":
|
| 108 |
+
description: Not Found
|
| 109 |
+
content: {}
|
| 110 |
+
delete:
|
| 111 |
+
tags:
|
| 112 |
+
- person-controller
|
| 113 |
+
summary: deletePerson
|
| 114 |
+
operationId: deletePersonUsingDELETE
|
| 115 |
+
parameters:
|
| 116 |
+
- name: id
|
| 117 |
+
in: path
|
| 118 |
+
description: id
|
| 119 |
+
required: true
|
| 120 |
+
schema:
|
| 121 |
+
type: string
|
| 122 |
+
responses:
|
| 123 |
+
"200":
|
| 124 |
+
description: OK
|
| 125 |
+
content:
|
| 126 |
+
'*/*':
|
| 127 |
+
schema:
|
| 128 |
+
type: integer
|
| 129 |
+
format: int64
|
| 130 |
+
"204":
|
| 131 |
+
description: No Content
|
| 132 |
+
content: {}
|
| 133 |
+
"401":
|
| 134 |
+
description: Unauthorized
|
| 135 |
+
content: {}
|
| 136 |
+
"403":
|
| 137 |
+
description: Forbidden
|
| 138 |
+
content: {}
|
| 139 |
+
/api/persons:
|
| 140 |
+
get:
|
| 141 |
+
tags:
|
| 142 |
+
- person-controller
|
| 143 |
+
summary: getPersons
|
| 144 |
+
operationId: getPersonsUsingGET
|
| 145 |
+
responses:
|
| 146 |
+
"200":
|
| 147 |
+
description: OK
|
| 148 |
+
content:
|
| 149 |
+
'*/*':
|
| 150 |
+
schema:
|
| 151 |
+
type: array
|
| 152 |
+
items:
|
| 153 |
+
$ref: '#/components/schemas/PersonRes'
|
| 154 |
+
"401":
|
| 155 |
+
description: Unauthorized
|
| 156 |
+
content: {}
|
| 157 |
+
"403":
|
| 158 |
+
description: Forbidden
|
| 159 |
+
content: {}
|
| 160 |
+
"404":
|
| 161 |
+
description: Not Found
|
| 162 |
+
content: {}
|
| 163 |
+
put:
|
| 164 |
+
tags:
|
| 165 |
+
- person-controller
|
| 166 |
+
summary: putPerson
|
| 167 |
+
operationId: putPersonUsingPUT_1
|
| 168 |
+
requestBody:
|
| 169 |
+
description: persons
|
| 170 |
+
content:
|
| 171 |
+
application/json:
|
| 172 |
+
schema:
|
| 173 |
+
type: array
|
| 174 |
+
items:
|
| 175 |
+
$ref: '#/components/schemas/PersonReq'
|
| 176 |
+
required: true
|
| 177 |
+
responses:
|
| 178 |
+
"200":
|
| 179 |
+
description: OK
|
| 180 |
+
content:
|
| 181 |
+
'*/*':
|
| 182 |
+
schema:
|
| 183 |
+
type: integer
|
| 184 |
+
format: int64
|
| 185 |
+
"201":
|
| 186 |
+
description: Created
|
| 187 |
+
content: {}
|
| 188 |
+
"401":
|
| 189 |
+
description: Unauthorized
|
| 190 |
+
content: {}
|
| 191 |
+
"403":
|
| 192 |
+
description: Forbidden
|
| 193 |
+
content: {}
|
| 194 |
+
"404":
|
| 195 |
+
description: Not Found
|
| 196 |
+
content: {}
|
| 197 |
+
x-codegen-request-body-name: persons
|
| 198 |
+
post:
|
| 199 |
+
tags:
|
| 200 |
+
- person-controller
|
| 201 |
+
summary: postPersons
|
| 202 |
+
operationId: postPersonsUsingPOST
|
| 203 |
+
requestBody:
|
| 204 |
+
description: persons
|
| 205 |
+
content:
|
| 206 |
+
application/json:
|
| 207 |
+
schema:
|
| 208 |
+
type: array
|
| 209 |
+
items:
|
| 210 |
+
$ref: '#/components/schemas/PersonReq'
|
| 211 |
+
required: true
|
| 212 |
+
responses:
|
| 213 |
+
"201":
|
| 214 |
+
description: Created
|
| 215 |
+
content:
|
| 216 |
+
'*/*':
|
| 217 |
+
schema:
|
| 218 |
+
type: array
|
| 219 |
+
items:
|
| 220 |
+
$ref: '#/components/schemas/PersonRes'
|
| 221 |
+
"401":
|
| 222 |
+
description: Unauthorized
|
| 223 |
+
content: {}
|
| 224 |
+
"403":
|
| 225 |
+
description: Forbidden
|
| 226 |
+
content: {}
|
| 227 |
+
"404":
|
| 228 |
+
description: Not Found
|
| 229 |
+
content: {}
|
| 230 |
+
x-codegen-request-body-name: persons
|
| 231 |
+
delete:
|
| 232 |
+
tags:
|
| 233 |
+
- person-controller
|
| 234 |
+
summary: deletePersons
|
| 235 |
+
operationId: deletePersonsUsingDELETE
|
| 236 |
+
responses:
|
| 237 |
+
"200":
|
| 238 |
+
description: OK
|
| 239 |
+
content:
|
| 240 |
+
'*/*':
|
| 241 |
+
schema:
|
| 242 |
+
type: integer
|
| 243 |
+
format: int64
|
| 244 |
+
"204":
|
| 245 |
+
description: No Content
|
| 246 |
+
content: {}
|
| 247 |
+
"401":
|
| 248 |
+
description: Unauthorized
|
| 249 |
+
content: {}
|
| 250 |
+
"403":
|
| 251 |
+
description: Forbidden
|
| 252 |
+
content: {}
|
| 253 |
+
/api/persons/averageAge:
|
| 254 |
+
get:
|
| 255 |
+
tags:
|
| 256 |
+
- person-controller
|
| 257 |
+
summary: averageAge
|
| 258 |
+
operationId: averageAgeUsingGET
|
| 259 |
+
responses:
|
| 260 |
+
"200":
|
| 261 |
+
description: OK
|
| 262 |
+
content:
|
| 263 |
+
'*/*':
|
| 264 |
+
schema:
|
| 265 |
+
type: number
|
| 266 |
+
format: double
|
| 267 |
+
"401":
|
| 268 |
+
description: Unauthorized
|
| 269 |
+
content: {}
|
| 270 |
+
"403":
|
| 271 |
+
description: Forbidden
|
| 272 |
+
content: {}
|
| 273 |
+
"404":
|
| 274 |
+
description: Not Found
|
| 275 |
+
content: {}
|
| 276 |
+
/api/persons/count:
|
| 277 |
+
get:
|
| 278 |
+
tags:
|
| 279 |
+
- person-controller
|
| 280 |
+
summary: getCount
|
| 281 |
+
operationId: getCountUsingGET
|
| 282 |
+
responses:
|
| 283 |
+
"200":
|
| 284 |
+
description: OK
|
| 285 |
+
content:
|
| 286 |
+
'*/*':
|
| 287 |
+
schema:
|
| 288 |
+
type: integer
|
| 289 |
+
format: int64
|
| 290 |
+
"401":
|
| 291 |
+
description: Unauthorized
|
| 292 |
+
content: {}
|
| 293 |
+
"403":
|
| 294 |
+
description: Forbidden
|
| 295 |
+
content: {}
|
| 296 |
+
"404":
|
| 297 |
+
description: Not Found
|
| 298 |
+
content: {}
|
| 299 |
+
/api/persons/{ids}:
|
| 300 |
+
get:
|
| 301 |
+
tags:
|
| 302 |
+
- person-controller
|
| 303 |
+
summary: getPersons
|
| 304 |
+
operationId: getPersonsUsingGET_1
|
| 305 |
+
parameters:
|
| 306 |
+
- name: ids
|
| 307 |
+
in: path
|
| 308 |
+
description: ids
|
| 309 |
+
required: true
|
| 310 |
+
schema:
|
| 311 |
+
type: string
|
| 312 |
+
responses:
|
| 313 |
+
"200":
|
| 314 |
+
description: OK
|
| 315 |
+
content:
|
| 316 |
+
'*/*':
|
| 317 |
+
schema:
|
| 318 |
+
type: array
|
| 319 |
+
items:
|
| 320 |
+
$ref: '#/components/schemas/PersonRes'
|
| 321 |
+
"401":
|
| 322 |
+
description: Unauthorized
|
| 323 |
+
content: {}
|
| 324 |
+
"403":
|
| 325 |
+
description: Forbidden
|
| 326 |
+
content: {}
|
| 327 |
+
"404":
|
| 328 |
+
description: Not Found
|
| 329 |
+
content: {}
|
| 330 |
+
delete:
|
| 331 |
+
tags:
|
| 332 |
+
- person-controller
|
| 333 |
+
summary: deletePersons
|
| 334 |
+
operationId: deletePersonsUsingDELETE_1
|
| 335 |
+
parameters:
|
| 336 |
+
- name: ids
|
| 337 |
+
in: path
|
| 338 |
+
description: ids
|
| 339 |
+
required: true
|
| 340 |
+
schema:
|
| 341 |
+
type: string
|
| 342 |
+
responses:
|
| 343 |
+
"200":
|
| 344 |
+
description: OK
|
| 345 |
+
content:
|
| 346 |
+
'*/*':
|
| 347 |
+
schema:
|
| 348 |
+
type: integer
|
| 349 |
+
format: int64
|
| 350 |
+
"204":
|
| 351 |
+
description: No Content
|
| 352 |
+
content: {}
|
| 353 |
+
"401":
|
| 354 |
+
description: Unauthorized
|
| 355 |
+
content: {}
|
| 356 |
+
"403":
|
| 357 |
+
description: Forbidden
|
| 358 |
+
content: {}
|
| 359 |
+
components:
|
| 360 |
+
schemas:
|
| 361 |
+
Address:
|
| 362 |
+
title: Address
|
| 363 |
+
type: object
|
| 364 |
+
properties:
|
| 365 |
+
city:
|
| 366 |
+
type: string
|
| 367 |
+
country:
|
| 368 |
+
type: string
|
| 369 |
+
number:
|
| 370 |
+
type: integer
|
| 371 |
+
format: int32
|
| 372 |
+
postcode:
|
| 373 |
+
type: string
|
| 374 |
+
street:
|
| 375 |
+
type: string
|
| 376 |
+
Car:
|
| 377 |
+
title: Car
|
| 378 |
+
type: object
|
| 379 |
+
properties:
|
| 380 |
+
brand:
|
| 381 |
+
type: string
|
| 382 |
+
maxSpeedKmH:
|
| 383 |
+
type: number
|
| 384 |
+
format: float
|
| 385 |
+
model:
|
| 386 |
+
type: string
|
| 387 |
+
ObjectIdReq:
|
| 388 |
+
title: ObjectIdReq
|
| 389 |
+
type: object
|
| 390 |
+
properties:
|
| 391 |
+
timestamp:
|
| 392 |
+
type: integer
|
| 393 |
+
format: int32
|
| 394 |
+
ObjectIdRes:
|
| 395 |
+
title: ObjectIdRes
|
| 396 |
+
type: object
|
| 397 |
+
properties:
|
| 398 |
+
date:
|
| 399 |
+
type: string
|
| 400 |
+
format: date-time
|
| 401 |
+
timestamp:
|
| 402 |
+
type: integer
|
| 403 |
+
format: int32
|
| 404 |
+
PersonReq:
|
| 405 |
+
title: PersonReq
|
| 406 |
+
type: object
|
| 407 |
+
properties:
|
| 408 |
+
address:
|
| 409 |
+
$ref: '#/components/schemas/Address'
|
| 410 |
+
age:
|
| 411 |
+
type: integer
|
| 412 |
+
format: int32
|
| 413 |
+
cars:
|
| 414 |
+
type: array
|
| 415 |
+
items:
|
| 416 |
+
$ref: '#/components/schemas/Car'
|
| 417 |
+
createdAt:
|
| 418 |
+
type: string
|
| 419 |
+
format: date-time
|
| 420 |
+
firstName:
|
| 421 |
+
type: string
|
| 422 |
+
id:
|
| 423 |
+
$ref: '#/components/schemas/ObjectIdReq'
|
| 424 |
+
insurance:
|
| 425 |
+
type: boolean
|
| 426 |
+
lastName:
|
| 427 |
+
type: string
|
| 428 |
+
PersonRes:
|
| 429 |
+
title: PersonRes
|
| 430 |
+
type: object
|
| 431 |
+
properties:
|
| 432 |
+
address:
|
| 433 |
+
$ref: '#/components/schemas/Address'
|
| 434 |
+
age:
|
| 435 |
+
type: integer
|
| 436 |
+
format: int32
|
| 437 |
+
cars:
|
| 438 |
+
type: array
|
| 439 |
+
items:
|
| 440 |
+
$ref: '#/components/schemas/Car'
|
| 441 |
+
createdAt:
|
| 442 |
+
type: string
|
| 443 |
+
format: date-time
|
| 444 |
+
firstName:
|
| 445 |
+
type: string
|
| 446 |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.1
|
| 2 |
+
info:
|
| 3 |
+
title: Project-Tracker-System
|
| 4 |
+
description: "Manage and track commits transactions by Employees and their Managers\
|
| 5 |
+
\ on a specific project.\n- Employees can be assigned to projects created and\
|
| 6 |
+
\ managed by their managers, can add a new commits to a specific project so manager\
|
| 7 |
+
\ can track its progression\n- Managers can create, edit & delete projects, also\
|
| 8 |
+
\ assign them to their employees and track them efficiently & easily\n- Admin\
|
| 9 |
+
\ manages all Employees as well as their credentials & departments\nFor more,\
|
| 10 |
+
\ you can check more on our GitHub repositories : \n- Selim Horri : https://github.com/SelimHorri?tab=repositories\
|
| 11 |
+
\ \n- Imen Toukebri : https://github.com/imen1012?tab=repositories \n- Bader Idoudi\
|
| 12 |
+
\ : https://github.com/Bader1996?tab=repositories\n"
|
| 13 |
+
contact:
|
| 14 |
+
name: "Selim Horri, Imen Touk, Badr Idoudi"
|
| 15 |
+
url: https://github.com/SelimHorri/Project-Tracking-System
|
| 16 |
+
email: springabcxyz@gmail.com
|
| 17 |
+
license:
|
| 18 |
+
name: Apache Licence version 2.0
|
| 19 |
+
url: https://apache.org/license.html
|
| 20 |
+
version: "1.0"
|
| 21 |
+
servers:
|
| 22 |
+
#- url: http://localhost:50118
|
| 23 |
+
- url: http://localhost:30118
|
| 24 |
+
tags:
|
| 25 |
+
- name: assignment-resource
|
| 26 |
+
description: Assignment Resource
|
| 27 |
+
- name: authentication-resource
|
| 28 |
+
description: Authentication Resource
|
| 29 |
+
- name: credential-resource
|
| 30 |
+
description: Credential Resource
|
| 31 |
+
- name: department-resource
|
| 32 |
+
description: Department Resource
|
| 33 |
+
- name: employee-resource
|
| 34 |
+
description: Employee Resource
|
| 35 |
+
- name: location-resource
|
| 36 |
+
description: Location Resource
|
| 37 |
+
- name: project-resource
|
| 38 |
+
description: Project Resource
|
| 39 |
+
paths:
|
| 40 |
+
/app/api/assignments:
|
| 41 |
+
get:
|
| 42 |
+
tags:
|
| 43 |
+
- assignment-resource
|
| 44 |
+
summary: findAll
|
| 45 |
+
operationId: findAllUsingGET
|
| 46 |
+
responses:
|
| 47 |
+
"200":
|
| 48 |
+
description: OK
|
| 49 |
+
content:
|
| 50 |
+
'*/*':
|
| 51 |
+
schema:
|
| 52 |
+
$ref: '#/components/schemas/DtoCollectionAssignment'
|
| 53 |
+
"401":
|
| 54 |
+
description: Unauthorized
|
| 55 |
+
content: {}
|
| 56 |
+
"403":
|
| 57 |
+
description: Forbidden
|
| 58 |
+
content: {}
|
| 59 |
+
"404":
|
| 60 |
+
description: Not Found
|
| 61 |
+
content: {}
|
| 62 |
+
deprecated: false
|
| 63 |
+
put:
|
| 64 |
+
tags:
|
| 65 |
+
- assignment-resource
|
| 66 |
+
summary: update
|
| 67 |
+
operationId: updateUsingPUT
|
| 68 |
+
requestBody:
|
| 69 |
+
description: assignment
|
| 70 |
+
content:
|
| 71 |
+
application/json:
|
| 72 |
+
schema:
|
| 73 |
+
$ref: '#/components/schemas/Assignment'
|
| 74 |
+
required: true
|
| 75 |
+
responses:
|
| 76 |
+
"200":
|
| 77 |
+
description: OK
|
| 78 |
+
content:
|
| 79 |
+
'*/*':
|
| 80 |
+
schema:
|
| 81 |
+
$ref: '#/components/schemas/Assignment'
|
| 82 |
+
"201":
|
| 83 |
+
description: Created
|
| 84 |
+
content: {}
|
| 85 |
+
"401":
|
| 86 |
+
description: Unauthorized
|
| 87 |
+
content: {}
|
| 88 |
+
"403":
|
| 89 |
+
description: Forbidden
|
| 90 |
+
content: {}
|
| 91 |
+
"404":
|
| 92 |
+
description: Not Found
|
| 93 |
+
content: {}
|
| 94 |
+
deprecated: false
|
| 95 |
+
x-codegen-request-body-name: assignment
|
| 96 |
+
post:
|
| 97 |
+
tags:
|
| 98 |
+
- assignment-resource
|
| 99 |
+
summary: save
|
| 100 |
+
operationId: saveUsingPOST
|
| 101 |
+
requestBody:
|
| 102 |
+
description: assignment
|
| 103 |
+
content:
|
| 104 |
+
application/json:
|
| 105 |
+
schema:
|
| 106 |
+
$ref: '#/components/schemas/Assignment'
|
| 107 |
+
required: true
|
| 108 |
+
responses:
|
| 109 |
+
"200":
|
| 110 |
+
description: OK
|
| 111 |
+
content:
|
| 112 |
+
'*/*':
|
| 113 |
+
schema:
|
| 114 |
+
$ref: '#/components/schemas/Assignment'
|
| 115 |
+
"201":
|
| 116 |
+
description: Created
|
| 117 |
+
content: {}
|
| 118 |
+
"401":
|
| 119 |
+
description: Unauthorized
|
| 120 |
+
content: {}
|
| 121 |
+
"403":
|
| 122 |
+
description: Forbidden
|
| 123 |
+
content: {}
|
| 124 |
+
"404":
|
| 125 |
+
description: Not Found
|
| 126 |
+
content: {}
|
| 127 |
+
deprecated: false
|
| 128 |
+
x-codegen-request-body-name: assignment
|
| 129 |
+
/app/api/assignments/:
|
| 130 |
+
get:
|
| 131 |
+
tags:
|
| 132 |
+
- assignment-resource
|
| 133 |
+
summary: findAll
|
| 134 |
+
operationId: findAllUsingGET_1
|
| 135 |
+
responses:
|
| 136 |
+
"200":
|
| 137 |
+
description: OK
|
| 138 |
+
content:
|
| 139 |
+
'*/*':
|
| 140 |
+
schema:
|
| 141 |
+
$ref: '#/components/schemas/DtoCollectionAssignment'
|
| 142 |
+
"401":
|
| 143 |
+
description: Unauthorized
|
| 144 |
+
content: {}
|
| 145 |
+
"403":
|
| 146 |
+
description: Forbidden
|
| 147 |
+
content: {}
|
| 148 |
+
"404":
|
| 149 |
+
description: Not Found
|
| 150 |
+
content: {}
|
| 151 |
+
deprecated: false
|
| 152 |
+
/app/api/assignments/data/project-commit/{employeeId}/{projectId}:
|
| 153 |
+
get:
|
| 154 |
+
tags:
|
| 155 |
+
- assignment-resource
|
| 156 |
+
summary: findByEmployeeIdAndProjectId
|
| 157 |
+
operationId: findByEmployeeIdAndProjectIdUsingGET
|
| 158 |
+
parameters:
|
| 159 |
+
- name: employeeId
|
| 160 |
+
in: path
|
| 161 |
+
description: employeeId
|
| 162 |
+
required: true
|
| 163 |
+
schema:
|
| 164 |
+
type: string
|
| 165 |
+
- name: projectId
|
| 166 |
+
in: path
|
| 167 |
+
description: projectId
|
| 168 |
+
required: true
|
| 169 |
+
schema:
|
| 170 |
+
type: string
|
| 171 |
+
responses:
|
| 172 |
+
"200":
|
| 173 |
+
description: OK
|
| 174 |
+
content:
|
| 175 |
+
'*/*':
|
| 176 |
+
schema:
|
| 177 |
+
$ref: '#/components/schemas/DtoCollectionProjectCommit'
|
| 178 |
+
"401":
|
| 179 |
+
description: Unauthorized
|
| 180 |
+
content: {}
|
| 181 |
+
"403":
|
| 182 |
+
description: Forbidden
|
| 183 |
+
content: {}
|
| 184 |
+
"404":
|
| 185 |
+
description: Not Found
|
| 186 |
+
content: {}
|
| 187 |
+
deprecated: false
|
| 188 |
+
/app/api/assignments/data/project-commit/{employeeId}/{projectId}/{commitDate}:
|
| 189 |
+
get:
|
| 190 |
+
tags:
|
| 191 |
+
- assignment-resource
|
| 192 |
+
summary: findByEmployeeIdAndProjectIdAndCommitDate
|
| 193 |
+
operationId: findByEmployeeIdAndProjectIdAndCommitDateUsingGET
|
| 194 |
+
parameters:
|
| 195 |
+
- name: commitDate
|
| 196 |
+
in: path
|
| 197 |
+
description: commitDate
|
| 198 |
+
required: true
|
| 199 |
+
schema:
|
| 200 |
+
type: string
|
| 201 |
+
- name: employeeId
|
| 202 |
+
in: path
|
| 203 |
+
description: employeeId
|
| 204 |
+
required: true
|
| 205 |
+
schema:
|
| 206 |
+
type: string
|
| 207 |
+
- name: projectId
|
| 208 |
+
in: path
|
| 209 |
+
description: projectId
|
| 210 |
+
required: true
|
| 211 |
+
schema:
|
| 212 |
+
type: string
|
| 213 |
+
responses:
|
| 214 |
+
"200":
|
| 215 |
+
description: OK
|
| 216 |
+
content:
|
| 217 |
+
'*/*':
|
| 218 |
+
schema:
|
| 219 |
+
$ref: '#/components/schemas/ProjectCommit'
|
| 220 |
+
"401":
|
| 221 |
+
description: Unauthorized
|
| 222 |
+
content: {}
|
| 223 |
+
"403":
|
| 224 |
+
description: Forbidden
|
| 225 |
+
content: {}
|
| 226 |
+
"404":
|
| 227 |
+
description: Not Found
|
| 228 |
+
content: {}
|
| 229 |
+
deprecated: false
|
| 230 |
+
/app/api/assignments/data/project-commit/{projectId}:
|
| 231 |
+
get:
|
| 232 |
+
tags:
|
| 233 |
+
- assignment-resource
|
| 234 |
+
summary: findByProjectId
|
| 235 |
+
operationId: findByProjectIdUsingGET
|
| 236 |
+
parameters:
|
| 237 |
+
- name: projectId
|
| 238 |
+
in: path
|
| 239 |
+
description: projectId
|
| 240 |
+
required: true
|
| 241 |
+
schema:
|
| 242 |
+
type: string
|
| 243 |
+
responses:
|
| 244 |
+
"200":
|
| 245 |
+
description: OK
|
| 246 |
+
content:
|
| 247 |
+
'*/*':
|
| 248 |
+
schema:
|
| 249 |
+
$ref: '#/components/schemas/DtoCollectionProjectCommit'
|
| 250 |
+
"401":
|
| 251 |
+
description: Unauthorized
|
| 252 |
+
content: {}
|
| 253 |
+
"403":
|
| 254 |
+
description: Forbidden
|
| 255 |
+
content: {}
|
| 256 |
+
"404":
|
| 257 |
+
description: Not Found
|
| 258 |
+
content: {}
|
| 259 |
+
deprecated: false
|
| 260 |
+
/app/api/assignments/delete/{employeeId}/{projectId}/{commitDate}:
|
| 261 |
+
delete:
|
| 262 |
+
tags:
|
| 263 |
+
- assignment-resource
|
| 264 |
+
summary: deleteById
|
| 265 |
+
operationId: deleteByIdUsingDELETE
|
| 266 |
+
parameters:
|
| 267 |
+
- name: commitDate
|
| 268 |
+
in: path
|
| 269 |
+
description: commitDate
|
| 270 |
+
required: true
|
| 271 |
+
schema:
|
| 272 |
+
type: string
|
| 273 |
+
- name: employeeId
|
| 274 |
+
in: path
|
| 275 |
+
description: employeeId
|
| 276 |
+
required: true
|
| 277 |
+
schema:
|
| 278 |
+
type: string
|
| 279 |
+
- name: projectId
|
| 280 |
+
in: path
|
| 281 |
+
description: projectId
|
| 282 |
+
required: true
|
| 283 |
+
schema:
|
| 284 |
+
type: string
|
| 285 |
+
responses:
|
| 286 |
+
"200":
|
| 287 |
+
description: OK
|
| 288 |
+
content:
|
| 289 |
+
'*/*':
|
| 290 |
+
schema:
|
| 291 |
+
type: object
|
| 292 |
+
"204":
|
| 293 |
+
description: No Content
|
| 294 |
+
content: {}
|
| 295 |
+
"401":
|
| 296 |
+
description: Unauthorized
|
| 297 |
+
content: {}
|
| 298 |
+
"403":
|
| 299 |
+
description: Forbidden
|
| 300 |
+
content: {}
|
| 301 |
+
deprecated: false
|
| 302 |
+
/app/api/assignments/save:
|
| 303 |
+
post:
|
| 304 |
+
tags:
|
| 305 |
+
- assignment-resource
|
| 306 |
+
summary: save
|
| 307 |
+
operationId: saveUsingPOST_1
|
| 308 |
+
requestBody:
|
| 309 |
+
description: assignment
|
| 310 |
+
content:
|
| 311 |
+
application/json:
|
| 312 |
+
schema:
|
| 313 |
+
$ref: '#/components/schemas/Assignment'
|
| 314 |
+
required: true
|
| 315 |
+
responses:
|
| 316 |
+
"200":
|
| 317 |
+
description: OK
|
| 318 |
+
content:
|
| 319 |
+
'*/*':
|
| 320 |
+
schema:
|
| 321 |
+
$ref: '#/components/schemas/Assignment'
|
| 322 |
+
"201":
|
| 323 |
+
description: Created
|
| 324 |
+
content: {}
|
| 325 |
+
"401":
|
| 326 |
+
description: Unauthorized
|
| 327 |
+
content: {}
|
| 328 |
+
"403":
|
| 329 |
+
description: Forbidden
|
| 330 |
+
content: {}
|
| 331 |
+
"404":
|
| 332 |
+
description: Not Found
|
| 333 |
+
content: {}
|
| 334 |
+
deprecated: false
|
| 335 |
+
x-codegen-request-body-name: assignment
|
| 336 |
+
/app/api/assignments/update:
|
| 337 |
+
put:
|
| 338 |
+
tags:
|
| 339 |
+
- assignment-resource
|
| 340 |
+
summary: update
|
| 341 |
+
operationId: updateUsingPUT_1
|
| 342 |
+
requestBody:
|
| 343 |
+
description: assignment
|
| 344 |
+
content:
|
| 345 |
+
application/json:
|
| 346 |
+
schema:
|
| 347 |
+
$ref: '#/components/schemas/Assignment'
|
| 348 |
+
required: true
|
| 349 |
+
responses:
|
| 350 |
+
"200":
|
| 351 |
+
description: OK
|
| 352 |
+
content:
|
| 353 |
+
'*/*':
|
| 354 |
+
schema:
|
| 355 |
+
$ref: '#/components/schemas/Assignment'
|
| 356 |
+
"201":
|
| 357 |
+
description: Created
|
| 358 |
+
content: {}
|
| 359 |
+
"401":
|
| 360 |
+
description: Unauthorized
|
| 361 |
+
content: {}
|
| 362 |
+
"403":
|
| 363 |
+
description: Forbidden
|
| 364 |
+
content: {}
|
| 365 |
+
"404":
|
| 366 |
+
description: Not Found
|
| 367 |
+
content: {}
|
| 368 |
+
deprecated: false
|
| 369 |
+
x-codegen-request-body-name: assignment
|
| 370 |
+
/app/api/assignments/{employeeId}/{projectId}:
|
| 371 |
+
get:
|
| 372 |
+
tags:
|
| 373 |
+
- assignment-resource
|
| 374 |
+
summary: findAllByEmployeeIdAndManagerId
|
| 375 |
+
operationId: findAllByEmployeeIdAndManagerIdUsingGET
|
| 376 |
+
parameters:
|
| 377 |
+
- name: employeeId
|
| 378 |
+
in: path
|
| 379 |
+
description: employeeId
|
| 380 |
+
required: true
|
| 381 |
+
schema:
|
| 382 |
+
type: string
|
| 383 |
+
- name: projectId
|
| 384 |
+
in: path
|
| 385 |
+
description: projectId
|
| 386 |
+
required: true
|
| 387 |
+
schema:
|
| 388 |
+
type: string
|
| 389 |
+
responses:
|
| 390 |
+
"200":
|
| 391 |
+
description: OK
|
| 392 |
+
content:
|
| 393 |
+
'*/*':
|
| 394 |
+
schema:
|
| 395 |
+
$ref: '#/components/schemas/DtoCollectionAssignment'
|
| 396 |
+
"401":
|
| 397 |
+
description: Unauthorized
|
| 398 |
+
content: {}
|
| 399 |
+
"403":
|
| 400 |
+
description: Forbidden
|
| 401 |
+
content: {}
|
| 402 |
+
"404":
|
| 403 |
+
description: Not Found
|
| 404 |
+
content: {}
|
| 405 |
+
deprecated: false
|
| 406 |
+
/app/api/assignments/{employeeId}/{projectId}/{commitDate}:
|
| 407 |
+
get:
|
| 408 |
+
tags:
|
| 409 |
+
- assignment-resource
|
| 410 |
+
summary: findById
|
| 411 |
+
operationId: findByIdUsingGET
|
| 412 |
+
parameters:
|
| 413 |
+
- name: commitDate
|
| 414 |
+
in: path
|
| 415 |
+
description: commitDate
|
| 416 |
+
required: true
|
| 417 |
+
schema:
|
| 418 |
+
type: string
|
| 419 |
+
- name: employeeId
|
| 420 |
+
in: path
|
| 421 |
+
description: employeeId
|
| 422 |
+
required: true
|
| 423 |
+
schema:
|
| 424 |
+
type: string
|
| 425 |
+
- name: projectId
|
| 426 |
+
in: path
|
| 427 |
+
description: projectId
|
| 428 |
+
required: true
|
| 429 |
+
schema:
|
| 430 |
+
type: string
|
| 431 |
+
responses:
|
| 432 |
+
"200":
|
| 433 |
+
description: OK
|
| 434 |
+
content:
|
| 435 |
+
'*/*':
|
| 436 |
+
schema:
|
| 437 |
+
$ref: '#/components/schemas/Assignment'
|
| 438 |
+
"401":
|
| 439 |
+
description: Unauthorized
|
| 440 |
+
content: {}
|
| 441 |
+
"403":
|
| 442 |
+
description: Forbidden
|
| 443 |
+
content: {}
|
| 444 |
+
"404":
|
| 445 |
+
description: Not Found
|
| 446 |
+
content: {}
|
| 447 |
+
deprecated: false
|
| 448 |
+
delete:
|
| 449 |
+
tags:
|
| 450 |
+
- assignment-resource
|
| 451 |
+
summary: deleteById
|
| 452 |
+
operationId: deleteByIdUsingDELETE_1
|
| 453 |
+
parameters:
|
| 454 |
+
- name: commitDate
|
| 455 |
+
in: path
|
| 456 |
+
description: commitDate
|
| 457 |
+
required: true
|
| 458 |
+
schema:
|
| 459 |
+
type: string
|
| 460 |
+
- name: employeeId
|
| 461 |
+
in: path
|
| 462 |
+
description: employeeId
|
| 463 |
+
required: true
|
| 464 |
+
schema:
|
| 465 |
+
type: string
|
| 466 |
+
- name: projectId
|
| 467 |
+
in: path
|
| 468 |
+
description: projectId
|
| 469 |
+
required: true
|
| 470 |
+
schema:
|
| 471 |
+
type: string
|
| 472 |
+
responses:
|
| 473 |
+
"200":
|
| 474 |
+
description: OK
|
| 475 |
+
content:
|
| 476 |
+
'*/*':
|
| 477 |
+
schema:
|
| 478 |
+
type: object
|
| 479 |
+
"204":
|
| 480 |
+
description: No Content
|
| 481 |
+
content: {}
|
| 482 |
+
"401":
|
| 483 |
+
description: Unauthorized
|
| 484 |
+
content: {}
|
| 485 |
+
"403":
|
| 486 |
+
description: Forbidden
|
| 487 |
+
content: {}
|
| 488 |
+
deprecated: false
|
| 489 |
+
/app/api/authenticate:
|
| 490 |
+
post:
|
| 491 |
+
tags:
|
| 492 |
+
- authentication-resource
|
| 493 |
+
summary: authenticate
|
| 494 |
+
operationId: authenticateUsingPOST
|
| 495 |
+
requestBody:
|
| 496 |
+
description: authenticationRequest
|
| 497 |
+
content:
|
| 498 |
+
application/json:
|
| 499 |
+
schema:
|
| 500 |
+
$ref: '#/components/schemas/AuthenticationRequest'
|
| 501 |
+
required: true
|
| 502 |
+
responses:
|
| 503 |
+
"200":
|
| 504 |
+
description: OK
|
| 505 |
+
content:
|
| 506 |
+
'*/*':
|
| 507 |
+
schema:
|
| 508 |
+
$ref: '#/components/schemas/AuthenticationResponse'
|
| 509 |
+
"201":
|
| 510 |
+
description: Created
|
| 511 |
+
content: {}
|
| 512 |
+
"401":
|
| 513 |
+
description: Unauthorized
|
| 514 |
+
content: {}
|
| 515 |
+
"403":
|
| 516 |
+
description: Forbidden
|
| 517 |
+
content: {}
|
| 518 |
+
"404":
|
| 519 |
+
description: Not Found
|
| 520 |
+
content: {}
|
| 521 |
+
deprecated: false
|
| 522 |
+
x-codegen-request-body-name: authenticationRequest
|
| 523 |
+
/app/api/authenticate/:
|
| 524 |
+
post:
|
| 525 |
+
tags:
|
| 526 |
+
- authentication-resource
|
| 527 |
+
summary: authenticate
|
| 528 |
+
operationId: authenticateUsingPOST_1
|
| 529 |
+
requestBody:
|
| 530 |
+
description: authenticationRequest
|
| 531 |
+
content:
|
| 532 |
+
application/json:
|
| 533 |
+
schema:
|
| 534 |
+
$ref: '#/components/schemas/AuthenticationRequest'
|
| 535 |
+
required: true
|
| 536 |
+
responses:
|
| 537 |
+
"200":
|
| 538 |
+
description: OK
|
| 539 |
+
content:
|
| 540 |
+
'*/*':
|
| 541 |
+
schema:
|
| 542 |
+
$ref: '#/components/schemas/AuthenticationResponse'
|
| 543 |
+
"201":
|
| 544 |
+
description: Created
|
| 545 |
+
content: {}
|
| 546 |
+
"401":
|
| 547 |
+
description: Unauthorized
|
| 548 |
+
content: {}
|
| 549 |
+
"403":
|
| 550 |
+
description: Forbidden
|
| 551 |
+
content: {}
|
| 552 |
+
"404":
|
| 553 |
+
description: Not Found
|
| 554 |
+
content: {}
|
| 555 |
+
deprecated: false
|
| 556 |
+
x-codegen-request-body-name: authenticationRequest
|
| 557 |
+
/app/api/credentials:
|
| 558 |
+
get:
|
| 559 |
+
tags:
|
| 560 |
+
- credential-resource
|
| 561 |
+
summary: findAll
|
| 562 |
+
operationId: findAllUsingGET_2
|
| 563 |
+
responses:
|
| 564 |
+
"200":
|
| 565 |
+
description: OK
|
| 566 |
+
content:
|
| 567 |
+
'*/*':
|
| 568 |
+
schema:
|
| 569 |
+
$ref: '#/components/schemas/DtoCollectionCredential'
|
| 570 |
+
"401":
|
| 571 |
+
description: Unauthorized
|
| 572 |
+
content: {}
|
| 573 |
+
"403":
|
| 574 |
+
description: Forbidden
|
| 575 |
+
content: {}
|
| 576 |
+
"404":
|
| 577 |
+
description: Not Found
|
| 578 |
+
content: {}
|
| 579 |
+
deprecated: false
|
| 580 |
+
put:
|
| 581 |
+
tags:
|
| 582 |
+
- credential-resource
|
| 583 |
+
summary: update
|
| 584 |
+
operationId: updateUsingPUT_2
|
| 585 |
+
requestBody:
|
| 586 |
+
description: credential
|
| 587 |
+
content:
|
| 588 |
+
application/json:
|
| 589 |
+
schema:
|
| 590 |
+
$ref: '#/components/schemas/Credential'
|
| 591 |
+
required: true
|
| 592 |
+
responses:
|
| 593 |
+
"200":
|
| 594 |
+
description: OK
|
| 595 |
+
content:
|
| 596 |
+
'*/*':
|
| 597 |
+
schema:
|
| 598 |
+
$ref: '#/components/schemas/Credential'
|
| 599 |
+
"201":
|
| 600 |
+
description: Created
|
| 601 |
+
content: {}
|
| 602 |
+
"401":
|
| 603 |
+
description: Unauthorized
|
| 604 |
+
content: {}
|
| 605 |
+
"403":
|
| 606 |
+
description: Forbidden
|
| 607 |
+
content: {}
|
| 608 |
+
"404":
|
| 609 |
+
description: Not Found
|
| 610 |
+
content: {}
|
| 611 |
+
deprecated: false
|
| 612 |
+
x-codegen-request-body-name: credential
|
| 613 |
+
post:
|
| 614 |
+
tags:
|
| 615 |
+
- credential-resource
|
| 616 |
+
summary: save
|
| 617 |
+
operationId: saveUsingPOST_2
|
| 618 |
+
requestBody:
|
| 619 |
+
description: credential
|
| 620 |
+
content:
|
| 621 |
+
application/json:
|
| 622 |
+
schema:
|
| 623 |
+
$ref: '#/components/schemas/Credential'
|
| 624 |
+
required: true
|
| 625 |
+
responses:
|
| 626 |
+
"200":
|
| 627 |
+
description: OK
|
| 628 |
+
content:
|
| 629 |
+
'*/*':
|
| 630 |
+
schema:
|
| 631 |
+
$ref: '#/components/schemas/Credential'
|
| 632 |
+
"201":
|
| 633 |
+
description: Created
|
| 634 |
+
content: {}
|
| 635 |
+
"401":
|
| 636 |
+
description: Unauthorized
|
| 637 |
+
content: {}
|
| 638 |
+
"403":
|
| 639 |
+
description: Forbidden
|
| 640 |
+
content: {}
|
| 641 |
+
"404":
|
| 642 |
+
description: Not Found
|
| 643 |
+
content: {}
|
| 644 |
+
deprecated: false
|
| 645 |
+
x-codegen-request-body-name: credential
|
| 646 |
+
delete:
|
| 647 |
+
tags:
|
| 648 |
+
- credential-resource
|
| 649 |
+
summary: deleteById
|
| 650 |
+
operationId: deleteByIdUsingDELETE_2
|
| 651 |
+
parameters:
|
| 652 |
+
- name: credentialId
|
| 653 |
+
in: query
|
| 654 |
+
description: credentialId
|
| 655 |
+
schema:
|
| 656 |
+
type: string
|
| 657 |
+
responses:
|
| 658 |
+
"200":
|
| 659 |
+
description: OK
|
| 660 |
+
content:
|
| 661 |
+
'*/*':
|
| 662 |
+
schema:
|
| 663 |
+
type: boolean
|
| 664 |
+
"204":
|
| 665 |
+
description: No Content
|
| 666 |
+
content: {}
|
| 667 |
+
"401":
|
| 668 |
+
description: Unauthorized
|
| 669 |
+
content: {}
|
| 670 |
+
"403":
|
| 671 |
+
description: Forbidden
|
| 672 |
+
content: {}
|
| 673 |
+
deprecated: false
|
| 674 |
+
/app/api/credentials/:
|
| 675 |
+
get:
|
| 676 |
+
tags:
|
| 677 |
+
- credential-resource
|
| 678 |
+
summary: findAll
|
| 679 |
+
operationId: findAllUsingGET_3
|
| 680 |
+
responses:
|
| 681 |
+
"200":
|
| 682 |
+
description: OK
|
| 683 |
+
content:
|
| 684 |
+
'*/*':
|
| 685 |
+
schema:
|
| 686 |
+
$ref: '#/components/schemas/DtoCollectionCredential'
|
| 687 |
+
"401":
|
| 688 |
+
description: Unauthorized
|
| 689 |
+
content: {}
|
| 690 |
+
"403":
|
| 691 |
+
description: Forbidden
|
| 692 |
+
content: {}
|
| 693 |
+
"404":
|
| 694 |
+
description: Not Found
|
| 695 |
+
content: {}
|
| 696 |
+
deprecated: false
|
| 697 |
+
/app/api/credentials/delete:
|
| 698 |
+
delete:
|
| 699 |
+
tags:
|
| 700 |
+
- credential-resource
|
| 701 |
+
summary: deleteById
|
| 702 |
+
operationId: deleteByIdUsingDELETE_3
|
| 703 |
+
parameters:
|
| 704 |
+
- name: credentialId
|
| 705 |
+
in: query
|
| 706 |
+
description: credentialId
|
| 707 |
+
schema:
|
| 708 |
+
type: string
|
| 709 |
+
responses:
|
| 710 |
+
"200":
|
| 711 |
+
description: OK
|
| 712 |
+
content:
|
| 713 |
+
'*/*':
|
| 714 |
+
schema:
|
| 715 |
+
type: boolean
|
| 716 |
+
"204":
|
| 717 |
+
description: No Content
|
| 718 |
+
content: {}
|
| 719 |
+
"401":
|
| 720 |
+
description: Unauthorized
|
| 721 |
+
content: {}
|
| 722 |
+
"403":
|
| 723 |
+
description: Forbidden
|
| 724 |
+
content: {}
|
| 725 |
+
deprecated: false
|
| 726 |
+
/app/api/credentials/save:
|
| 727 |
+
post:
|
| 728 |
+
tags:
|
| 729 |
+
- credential-resource
|
| 730 |
+
summary: save
|
| 731 |
+
operationId: saveUsingPOST_3
|
| 732 |
+
requestBody:
|
| 733 |
+
description: credential
|
| 734 |
+
content:
|
| 735 |
+
application/json:
|
| 736 |
+
schema:
|
| 737 |
+
$ref: '#/components/schemas/Credential'
|
| 738 |
+
required: true
|
| 739 |
+
responses:
|
| 740 |
+
"200":
|
| 741 |
+
description: OK
|
| 742 |
+
content:
|
| 743 |
+
'*/*':
|
| 744 |
+
schema:
|
| 745 |
+
$ref: '#/components/schemas/Credential'
|
| 746 |
+
"201":
|
| 747 |
+
description: Created
|
| 748 |
+
content: {}
|
| 749 |
+
"401":
|
| 750 |
+
description: Unauthorized
|
| 751 |
+
content: {}
|
| 752 |
+
"403":
|
| 753 |
+
description: Forbidden
|
| 754 |
+
content: {}
|
| 755 |
+
"404":
|
| 756 |
+
description: Not Found
|
| 757 |
+
content: {}
|
| 758 |
+
deprecated: false
|
| 759 |
+
x-codegen-request-body-name: credential
|
| 760 |
+
/app/api/credentials/update:
|
| 761 |
+
put:
|
| 762 |
+
tags:
|
| 763 |
+
- credential-resource
|
| 764 |
+
summary: update
|
| 765 |
+
operationId: updateUsingPUT_3
|
| 766 |
+
requestBody:
|
| 767 |
+
description: credential
|
| 768 |
+
content:
|
| 769 |
+
application/json:
|
| 770 |
+
schema:
|
| 771 |
+
$ref: '#/components/schemas/Credential'
|
| 772 |
+
required: true
|
| 773 |
+
responses:
|
| 774 |
+
"200":
|
| 775 |
+
description: OK
|
| 776 |
+
content:
|
| 777 |
+
'*/*':
|
| 778 |
+
schema:
|
| 779 |
+
$ref: '#/components/schemas/Credential'
|
| 780 |
+
"201":
|
| 781 |
+
description: Created
|
| 782 |
+
content: {}
|
| 783 |
+
"401":
|
| 784 |
+
description: Unauthorized
|
| 785 |
+
content: {}
|
| 786 |
+
"403":
|
| 787 |
+
description: Forbidden
|
| 788 |
+
content: {}
|
| 789 |
+
"404":
|
| 790 |
+
description: Not Found
|
| 791 |
+
content: {}
|
| 792 |
+
deprecated: false
|
| 793 |
+
x-codegen-request-body-name: credential
|
| 794 |
+
/app/api/credentials/username/{username}:
|
| 795 |
+
get:
|
| 796 |
+
tags:
|
| 797 |
+
- credential-resource
|
| 798 |
+
summary: findByUsername
|
| 799 |
+
operationId: findByUsernameUsingGET
|
| 800 |
+
parameters:
|
| 801 |
+
- name: username
|
| 802 |
+
in: path
|
| 803 |
+
description: username
|
| 804 |
+
required: true
|
| 805 |
+
schema:
|
| 806 |
+
type: string
|
| 807 |
+
responses:
|
| 808 |
+
"200":
|
| 809 |
+
description: OK
|
| 810 |
+
content:
|
| 811 |
+
'*/*':
|
| 812 |
+
schema:
|
| 813 |
+
$ref: '#/components/schemas/Credential'
|
| 814 |
+
"401":
|
| 815 |
+
description: Unauthorized
|
| 816 |
+
content: {}
|
| 817 |
+
"403":
|
| 818 |
+
description: Forbidden
|
| 819 |
+
content: {}
|
| 820 |
+
"404":
|
| 821 |
+
description: Not Found
|
| 822 |
+
content: {}
|
| 823 |
+
deprecated: false
|
| 824 |
+
delete:
|
| 825 |
+
tags:
|
| 826 |
+
- credential-resource
|
| 827 |
+
summary: deleteByUsername
|
| 828 |
+
operationId: deleteByUsernameUsingDELETE
|
| 829 |
+
parameters:
|
| 830 |
+
- name: username
|
| 831 |
+
in: path
|
| 832 |
+
description: username
|
| 833 |
+
required: true
|
| 834 |
+
schema:
|
| 835 |
+
type: string
|
| 836 |
+
responses:
|
| 837 |
+
"200":
|
| 838 |
+
description: OK
|
| 839 |
+
content:
|
| 840 |
+
'*/*':
|
| 841 |
+
schema:
|
| 842 |
+
type: boolean
|
| 843 |
+
"204":
|
| 844 |
+
description: No Content
|
| 845 |
+
content: {}
|
| 846 |
+
"401":
|
| 847 |
+
description: Unauthorized
|
| 848 |
+
content: {}
|
| 849 |
+
"403":
|
| 850 |
+
description: Forbidden
|
| 851 |
+
content: {}
|
| 852 |
+
deprecated: false
|
| 853 |
+
/app/api/credentials/{id}:
|
| 854 |
+
get:
|
| 855 |
+
tags:
|
| 856 |
+
- credential-resource
|
| 857 |
+
summary: findById
|
| 858 |
+
operationId: findByIdUsingGET_1
|
| 859 |
+
parameters:
|
| 860 |
+
- name: id
|
| 861 |
+
in: path
|
| 862 |
+
description: id
|
| 863 |
+
required: true
|
| 864 |
+
schema:
|
| 865 |
+
type: string
|
| 866 |
+
responses:
|
| 867 |
+
"200":
|
| 868 |
+
description: OK
|
| 869 |
+
content:
|
| 870 |
+
'*/*':
|
| 871 |
+
schema:
|
| 872 |
+
$ref: '#/components/schemas/Credential'
|
| 873 |
+
"401":
|
| 874 |
+
description: Unauthorized
|
| 875 |
+
content: {}
|
| 876 |
+
"403":
|
| 877 |
+
description: Forbidden
|
| 878 |
+
content: {}
|
| 879 |
+
"404":
|
| 880 |
+
description: Not Found
|
| 881 |
+
content: {}
|
| 882 |
+
deprecated: false
|
| 883 |
+
/app/api/departments:
|
| 884 |
+
get:
|
| 885 |
+
tags:
|
| 886 |
+
- department-resource
|
| 887 |
+
summary: findAll
|
| 888 |
+
operationId: findAllUsingGET_4
|
| 889 |
+
responses:
|
| 890 |
+
"200":
|
| 891 |
+
description: OK
|
| 892 |
+
content:
|
| 893 |
+
'*/*':
|
| 894 |
+
schema:
|
| 895 |
+
$ref: '#/components/schemas/DtoCollectionDepartment'
|
| 896 |
+
"401":
|
| 897 |
+
description: Unauthorized
|
| 898 |
+
content: {}
|
| 899 |
+
"403":
|
| 900 |
+
description: Forbidden
|
| 901 |
+
content: {}
|
| 902 |
+
"404":
|
| 903 |
+
description: Not Found
|
| 904 |
+
content: {}
|
| 905 |
+
deprecated: false
|
| 906 |
+
put:
|
| 907 |
+
tags:
|
| 908 |
+
- department-resource
|
| 909 |
+
summary: update
|
| 910 |
+
operationId: updateUsingPUT_4
|
| 911 |
+
requestBody:
|
| 912 |
+
description: department
|
| 913 |
+
content:
|
| 914 |
+
application/json:
|
| 915 |
+
schema:
|
| 916 |
+
$ref: '#/components/schemas/Department'
|
| 917 |
+
required: true
|
| 918 |
+
responses:
|
| 919 |
+
"200":
|
| 920 |
+
description: OK
|
| 921 |
+
content:
|
| 922 |
+
'*/*':
|
| 923 |
+
schema:
|
| 924 |
+
$ref: '#/components/schemas/Department'
|
| 925 |
+
"201":
|
| 926 |
+
description: Created
|
| 927 |
+
content: {}
|
| 928 |
+
"401":
|
| 929 |
+
description: Unauthorized
|
| 930 |
+
content: {}
|
| 931 |
+
"403":
|
| 932 |
+
description: Forbidden
|
| 933 |
+
content: {}
|
| 934 |
+
"404":
|
| 935 |
+
description: Not Found
|
| 936 |
+
content: {}
|
| 937 |
+
deprecated: false
|
| 938 |
+
x-codegen-request-body-name: department
|
| 939 |
+
post:
|
| 940 |
+
tags:
|
| 941 |
+
- department-resource
|
| 942 |
+
summary: save
|
| 943 |
+
operationId: saveUsingPOST_4
|
| 944 |
+
requestBody:
|
| 945 |
+
description: department
|
| 946 |
+
content:
|
| 947 |
+
application/json:
|
| 948 |
+
schema:
|
| 949 |
+
$ref: '#/components/schemas/Department'
|
| 950 |
+
required: true
|
| 951 |
+
responses:
|
| 952 |
+
"200":
|
| 953 |
+
description: OK
|
| 954 |
+
content:
|
| 955 |
+
'*/*':
|
| 956 |
+
schema:
|
| 957 |
+
$ref: '#/components/schemas/Department'
|
| 958 |
+
"201":
|
| 959 |
+
description: Created
|
| 960 |
+
content: {}
|
| 961 |
+
"401":
|
| 962 |
+
description: Unauthorized
|
| 963 |
+
content: {}
|
| 964 |
+
"403":
|
| 965 |
+
description: Forbidden
|
| 966 |
+
content: {}
|
| 967 |
+
"404":
|
| 968 |
+
description: Not Found
|
| 969 |
+
content: {}
|
| 970 |
+
deprecated: false
|
| 971 |
+
x-codegen-request-body-name: department
|
| 972 |
+
delete:
|
| 973 |
+
tags:
|
| 974 |
+
- department-resource
|
| 975 |
+
summary: deleteById
|
| 976 |
+
operationId: deleteByIdUsingDELETE_4
|
| 977 |
+
parameters:
|
| 978 |
+
- name: departmentId
|
| 979 |
+
in: query
|
| 980 |
+
description: departmentId
|
| 981 |
+
schema:
|
| 982 |
+
type: string
|
| 983 |
+
responses:
|
| 984 |
+
"200":
|
| 985 |
+
description: OK
|
| 986 |
+
content:
|
| 987 |
+
'*/*':
|
| 988 |
+
schema:
|
| 989 |
+
type: boolean
|
| 990 |
+
"204":
|
| 991 |
+
description: No Content
|
| 992 |
+
content: {}
|
| 993 |
+
"401":
|
| 994 |
+
description: Unauthorized
|
| 995 |
+
content: {}
|
| 996 |
+
"403":
|
| 997 |
+
description: Forbidden
|
| 998 |
+
content: {}
|
| 999 |
+
deprecated: false
|
| 1000 |
+
/app/api/departments/:
|
| 1001 |
+
get:
|
| 1002 |
+
tags:
|
| 1003 |
+
- department-resource
|
| 1004 |
+
summary: findAll
|
| 1005 |
+
operationId: findAllUsingGET_5
|
| 1006 |
+
responses:
|
| 1007 |
+
"200":
|
| 1008 |
+
description: OK
|
| 1009 |
+
content:
|
| 1010 |
+
'*/*':
|
| 1011 |
+
schema:
|
| 1012 |
+
$ref: '#/components/schemas/DtoCollectionDepartment'
|
| 1013 |
+
"401":
|
| 1014 |
+
description: Unauthorized
|
| 1015 |
+
content: {}
|
| 1016 |
+
"403":
|
| 1017 |
+
description: Forbidden
|
| 1018 |
+
content: {}
|
| 1019 |
+
"404":
|
| 1020 |
+
description: Not Found
|
| 1021 |
+
content: {}
|
| 1022 |
+
deprecated: false
|
| 1023 |
+
/app/api/departments/delete:
|
| 1024 |
+
delete:
|
| 1025 |
+
tags:
|
| 1026 |
+
- department-resource
|
| 1027 |
+
summary: deleteById
|
| 1028 |
+
operationId: deleteByIdUsingDELETE_5
|
| 1029 |
+
parameters:
|
| 1030 |
+
- name: departmentId
|
| 1031 |
+
in: query
|
| 1032 |
+
description: departmentId
|
| 1033 |
+
schema:
|
| 1034 |
+
type: string
|
| 1035 |
+
responses:
|
| 1036 |
+
"200":
|
| 1037 |
+
description: OK
|
| 1038 |
+
content:
|
| 1039 |
+
'*/*':
|
| 1040 |
+
schema:
|
| 1041 |
+
type: boolean
|
| 1042 |
+
"204":
|
| 1043 |
+
description: No Content
|
| 1044 |
+
content: {}
|
| 1045 |
+
"401":
|
| 1046 |
+
description: Unauthorized
|
| 1047 |
+
content: {}
|
| 1048 |
+
"403":
|
| 1049 |
+
description: Forbidden
|
| 1050 |
+
content: {}
|
| 1051 |
+
deprecated: false
|
| 1052 |
+
/app/api/departments/save:
|
| 1053 |
+
post:
|
| 1054 |
+
tags:
|
| 1055 |
+
- department-resource
|
| 1056 |
+
summary: save
|
| 1057 |
+
operationId: saveUsingPOST_5
|
| 1058 |
+
requestBody:
|
| 1059 |
+
description: department
|
| 1060 |
+
content:
|
| 1061 |
+
application/json:
|
| 1062 |
+
schema:
|
| 1063 |
+
$ref: '#/components/schemas/Department'
|
| 1064 |
+
required: true
|
| 1065 |
+
responses:
|
| 1066 |
+
"200":
|
| 1067 |
+
description: OK
|
| 1068 |
+
content:
|
| 1069 |
+
'*/*':
|
| 1070 |
+
schema:
|
| 1071 |
+
$ref: '#/components/schemas/Department'
|
| 1072 |
+
"201":
|
| 1073 |
+
description: Created
|
| 1074 |
+
content: {}
|
| 1075 |
+
"401":
|
| 1076 |
+
description: Unauthorized
|
| 1077 |
+
content: {}
|
| 1078 |
+
"403":
|
| 1079 |
+
description: Forbidden
|
| 1080 |
+
content: {}
|
| 1081 |
+
"404":
|
| 1082 |
+
description: Not Found
|
| 1083 |
+
content: {}
|
| 1084 |
+
deprecated: false
|
| 1085 |
+
x-codegen-request-body-name: department
|
| 1086 |
+
/app/api/departments/update:
|
| 1087 |
+
put:
|
| 1088 |
+
tags:
|
| 1089 |
+
- department-resource
|
| 1090 |
+
summary: update
|
| 1091 |
+
operationId: updateUsingPUT_5
|
| 1092 |
+
requestBody:
|
| 1093 |
+
description: department
|
| 1094 |
+
content:
|
| 1095 |
+
application/json:
|
| 1096 |
+
schema:
|
| 1097 |
+
$ref: '#/components/schemas/Department'
|
| 1098 |
+
required: true
|
| 1099 |
+
responses:
|
| 1100 |
+
"200":
|
| 1101 |
+
description: OK
|
| 1102 |
+
content:
|
| 1103 |
+
'*/*':
|
| 1104 |
+
schema:
|
| 1105 |
+
$ref: '#/components/schemas/Department'
|
| 1106 |
+
"201":
|
| 1107 |
+
description: Created
|
| 1108 |
+
content: {}
|
| 1109 |
+
"401":
|
| 1110 |
+
description: Unauthorized
|
| 1111 |
+
content: {}
|
| 1112 |
+
"403":
|
| 1113 |
+
description: Forbidden
|
| 1114 |
+
content: {}
|
| 1115 |
+
"404":
|
| 1116 |
+
description: Not Found
|
| 1117 |
+
content: {}
|
| 1118 |
+
deprecated: false
|
| 1119 |
+
x-codegen-request-body-name: department
|
| 1120 |
+
/app/api/departments/{id}:
|
| 1121 |
+
get:
|
| 1122 |
+
tags:
|
| 1123 |
+
- department-resource
|
| 1124 |
+
summary: findById
|
| 1125 |
+
operationId: findByIdUsingGET_2
|
| 1126 |
+
parameters:
|
| 1127 |
+
- name: id
|
| 1128 |
+
in: path
|
| 1129 |
+
description: id
|
| 1130 |
+
required: true
|
| 1131 |
+
schema:
|
| 1132 |
+
type: string
|
| 1133 |
+
responses:
|
| 1134 |
+
"200":
|
| 1135 |
+
description: OK
|
| 1136 |
+
content:
|
| 1137 |
+
'*/*':
|
| 1138 |
+
schema:
|
| 1139 |
+
$ref: '#/components/schemas/Department'
|
| 1140 |
+
"401":
|
| 1141 |
+
description: Unauthorized
|
| 1142 |
+
content: {}
|
| 1143 |
+
"403":
|
| 1144 |
+
description: Forbidden
|
| 1145 |
+
content: {}
|
| 1146 |
+
"404":
|
| 1147 |
+
description: Not Found
|
| 1148 |
+
content: {}
|
| 1149 |
+
deprecated: false
|
| 1150 |
+
/app/api/employees:
|
| 1151 |
+
get:
|
| 1152 |
+
tags:
|
| 1153 |
+
- employee-resource
|
| 1154 |
+
summary: findAll
|
| 1155 |
+
operationId: findAllUsingGET_6
|
| 1156 |
+
responses:
|
| 1157 |
+
"200":
|
| 1158 |
+
description: OK
|
| 1159 |
+
content:
|
| 1160 |
+
'*/*':
|
| 1161 |
+
schema:
|
| 1162 |
+
$ref: '#/components/schemas/DtoCollectionEmployee'
|
| 1163 |
+
"401":
|
| 1164 |
+
description: Unauthorized
|
| 1165 |
+
content: {}
|
| 1166 |
+
"403":
|
| 1167 |
+
description: Forbidden
|
| 1168 |
+
content: {}
|
| 1169 |
+
"404":
|
| 1170 |
+
description: Not Found
|
| 1171 |
+
content: {}
|
| 1172 |
+
deprecated: false
|
| 1173 |
+
put:
|
| 1174 |
+
tags:
|
| 1175 |
+
- employee-resource
|
| 1176 |
+
summary: update
|
| 1177 |
+
operationId: updateUsingPUT_6
|
| 1178 |
+
requestBody:
|
| 1179 |
+
description: employee
|
| 1180 |
+
content:
|
| 1181 |
+
application/json:
|
| 1182 |
+
schema:
|
| 1183 |
+
$ref: '#/components/schemas/Employee'
|
| 1184 |
+
required: true
|
| 1185 |
+
responses:
|
| 1186 |
+
"200":
|
| 1187 |
+
description: OK
|
| 1188 |
+
content:
|
| 1189 |
+
'*/*':
|
| 1190 |
+
schema:
|
| 1191 |
+
$ref: '#/components/schemas/Employee'
|
| 1192 |
+
"201":
|
| 1193 |
+
description: Created
|
| 1194 |
+
content: {}
|
| 1195 |
+
"401":
|
| 1196 |
+
description: Unauthorized
|
| 1197 |
+
content: {}
|
| 1198 |
+
"403":
|
| 1199 |
+
description: Forbidden
|
| 1200 |
+
content: {}
|
| 1201 |
+
"404":
|
| 1202 |
+
description: Not Found
|
| 1203 |
+
content: {}
|
| 1204 |
+
deprecated: false
|
| 1205 |
+
x-codegen-request-body-name: employee
|
| 1206 |
+
post:
|
| 1207 |
+
tags:
|
| 1208 |
+
- employee-resource
|
| 1209 |
+
summary: save
|
| 1210 |
+
operationId: saveUsingPOST_6
|
| 1211 |
+
requestBody:
|
| 1212 |
+
description: employee
|
| 1213 |
+
content:
|
| 1214 |
+
application/json:
|
| 1215 |
+
schema:
|
| 1216 |
+
$ref: '#/components/schemas/Employee'
|
| 1217 |
+
required: true
|
| 1218 |
+
responses:
|
| 1219 |
+
"200":
|
| 1220 |
+
description: OK
|
| 1221 |
+
content:
|
| 1222 |
+
'*/*':
|
| 1223 |
+
schema:
|
| 1224 |
+
$ref: '#/components/schemas/Employee'
|
| 1225 |
+
"201":
|
| 1226 |
+
description: Created
|
| 1227 |
+
content: {}
|
| 1228 |
+
"401":
|
| 1229 |
+
description: Unauthorized
|
| 1230 |
+
content: {}
|
| 1231 |
+
"403":
|
| 1232 |
+
description: Forbidden
|
| 1233 |
+
content: {}
|
| 1234 |
+
"404":
|
| 1235 |
+
description: Not Found
|
| 1236 |
+
content: {}
|
| 1237 |
+
deprecated: false
|
| 1238 |
+
x-codegen-request-body-name: employee
|
| 1239 |
+
delete:
|
| 1240 |
+
tags:
|
| 1241 |
+
- employee-resource
|
| 1242 |
+
summary: deleteById
|
| 1243 |
+
operationId: deleteByIdUsingDELETE_6
|
| 1244 |
+
parameters:
|
| 1245 |
+
- name: employeeId
|
| 1246 |
+
in: query
|
| 1247 |
+
description: employeeId
|
| 1248 |
+
schema:
|
| 1249 |
+
type: string
|
| 1250 |
+
responses:
|
| 1251 |
+
"200":
|
| 1252 |
+
description: OK
|
| 1253 |
+
content:
|
| 1254 |
+
'*/*':
|
| 1255 |
+
schema:
|
| 1256 |
+
type: boolean
|
| 1257 |
+
"204":
|
| 1258 |
+
description: No Content
|
| 1259 |
+
content: {}
|
| 1260 |
+
"401":
|
| 1261 |
+
description: Unauthorized
|
| 1262 |
+
content: {}
|
| 1263 |
+
"403":
|
| 1264 |
+
description: Forbidden
|
| 1265 |
+
content: {}
|
| 1266 |
+
deprecated: false
|
| 1267 |
+
/app/api/employees/:
|
| 1268 |
+
get:
|
| 1269 |
+
tags:
|
| 1270 |
+
- employee-resource
|
| 1271 |
+
summary: findAll
|
| 1272 |
+
operationId: findAllUsingGET_7
|
| 1273 |
+
responses:
|
| 1274 |
+
"200":
|
| 1275 |
+
description: OK
|
| 1276 |
+
content:
|
| 1277 |
+
'*/*':
|
| 1278 |
+
schema:
|
| 1279 |
+
$ref: '#/components/schemas/DtoCollectionEmployee'
|
| 1280 |
+
"401":
|
| 1281 |
+
description: Unauthorized
|
| 1282 |
+
content: {}
|
| 1283 |
+
"403":
|
| 1284 |
+
description: Forbidden
|
| 1285 |
+
content: {}
|
| 1286 |
+
"404":
|
| 1287 |
+
description: Not Found
|
| 1288 |
+
content: {}
|
| 1289 |
+
deprecated: false
|
| 1290 |
+
/app/api/employees/data/department/{departmentId}:
|
| 1291 |
+
get:
|
| 1292 |
+
tags:
|
| 1293 |
+
- employee-resource
|
| 1294 |
+
summary: findByDepartmentId
|
| 1295 |
+
operationId: findByDepartmentIdUsingGET
|
| 1296 |
+
parameters:
|
| 1297 |
+
- name: departmentId
|
| 1298 |
+
in: path
|
| 1299 |
+
description: departmentId
|
| 1300 |
+
required: true
|
| 1301 |
+
schema:
|
| 1302 |
+
type: string
|
| 1303 |
+
responses:
|
| 1304 |
+
"200":
|
| 1305 |
+
description: OK
|
| 1306 |
+
content:
|
| 1307 |
+
'*/*':
|
| 1308 |
+
schema:
|
| 1309 |
+
$ref: '#/components/schemas/DtoCollectionEmployee'
|
| 1310 |
+
"401":
|
| 1311 |
+
description: Unauthorized
|
| 1312 |
+
content: {}
|
| 1313 |
+
"403":
|
| 1314 |
+
description: Forbidden
|
| 1315 |
+
content: {}
|
| 1316 |
+
"404":
|
| 1317 |
+
description: Not Found
|
| 1318 |
+
content: {}
|
| 1319 |
+
deprecated: false
|
| 1320 |
+
/app/api/employees/data/employee-project-data/{employeeId}:
|
| 1321 |
+
get:
|
| 1322 |
+
tags:
|
| 1323 |
+
- employee-resource
|
| 1324 |
+
summary: findByEmployeeProjectDataEmployeeId
|
| 1325 |
+
operationId: findByEmployeeProjectDataEmployeeIdUsingGET
|
| 1326 |
+
parameters:
|
| 1327 |
+
- name: employeeId
|
| 1328 |
+
in: path
|
| 1329 |
+
description: employeeId
|
| 1330 |
+
required: true
|
| 1331 |
+
schema:
|
| 1332 |
+
type: string
|
| 1333 |
+
responses:
|
| 1334 |
+
"200":
|
| 1335 |
+
description: OK
|
| 1336 |
+
content:
|
| 1337 |
+
'*/*':
|
| 1338 |
+
schema:
|
| 1339 |
+
$ref: '#/components/schemas/DtoCollectionEmployeeProjectData'
|
| 1340 |
+
"401":
|
| 1341 |
+
description: Unauthorized
|
| 1342 |
+
content: {}
|
| 1343 |
+
"403":
|
| 1344 |
+
description: Forbidden
|
| 1345 |
+
content: {}
|
| 1346 |
+
"404":
|
| 1347 |
+
description: Not Found
|
| 1348 |
+
content: {}
|
| 1349 |
+
deprecated: false
|
| 1350 |
+
/app/api/employees/data/manager-project-data/{employeeId}:
|
| 1351 |
+
get:
|
| 1352 |
+
tags:
|
| 1353 |
+
- employee-resource
|
| 1354 |
+
summary: findManagerProjectDataByEmployeeId
|
| 1355 |
+
operationId: findManagerProjectDataByEmployeeIdUsingGET
|
| 1356 |
+
parameters:
|
| 1357 |
+
- name: employeeId
|
| 1358 |
+
in: path
|
| 1359 |
+
description: employeeId
|
| 1360 |
+
required: true
|
| 1361 |
+
schema:
|
| 1362 |
+
type: string
|
| 1363 |
+
responses:
|
| 1364 |
+
"200":
|
| 1365 |
+
description: OK
|
| 1366 |
+
content:
|
| 1367 |
+
'*/*':
|
| 1368 |
+
schema:
|
| 1369 |
+
$ref: '#/components/schemas/DtoCollectionManagerProjectData'
|
| 1370 |
+
"401":
|
| 1371 |
+
description: Unauthorized
|
| 1372 |
+
content: {}
|
| 1373 |
+
"403":
|
| 1374 |
+
description: Forbidden
|
| 1375 |
+
content: {}
|
| 1376 |
+
"404":
|
| 1377 |
+
description: Not Found
|
| 1378 |
+
content: {}
|
| 1379 |
+
deprecated: false
|
| 1380 |
+
/app/api/employees/delete:
|
| 1381 |
+
delete:
|
| 1382 |
+
tags:
|
| 1383 |
+
- employee-resource
|
| 1384 |
+
summary: deleteById
|
| 1385 |
+
operationId: deleteByIdUsingDELETE_7
|
| 1386 |
+
parameters:
|
| 1387 |
+
- name: employeeId
|
| 1388 |
+
in: query
|
| 1389 |
+
description: employeeId
|
| 1390 |
+
schema:
|
| 1391 |
+
type: string
|
| 1392 |
+
responses:
|
| 1393 |
+
"200":
|
| 1394 |
+
description: OK
|
| 1395 |
+
content:
|
| 1396 |
+
'*/*':
|
| 1397 |
+
schema:
|
| 1398 |
+
type: boolean
|
| 1399 |
+
"204":
|
| 1400 |
+
description: No Content
|
| 1401 |
+
content: {}
|
| 1402 |
+
"401":
|
| 1403 |
+
description: Unauthorized
|
| 1404 |
+
content: {}
|
| 1405 |
+
"403":
|
| 1406 |
+
description: Forbidden
|
| 1407 |
+
content: {}
|
| 1408 |
+
deprecated: false
|
| 1409 |
+
/app/api/employees/save:
|
| 1410 |
+
post:
|
| 1411 |
+
tags:
|
| 1412 |
+
- employee-resource
|
| 1413 |
+
summary: save
|
| 1414 |
+
operationId: saveUsingPOST_7
|
| 1415 |
+
requestBody:
|
| 1416 |
+
description: employee
|
| 1417 |
+
content:
|
| 1418 |
+
application/json:
|
| 1419 |
+
schema:
|
| 1420 |
+
$ref: '#/components/schemas/Employee'
|
| 1421 |
+
required: true
|
| 1422 |
+
responses:
|
| 1423 |
+
"200":
|
| 1424 |
+
description: OK
|
| 1425 |
+
content:
|
| 1426 |
+
'*/*':
|
| 1427 |
+
schema:
|
| 1428 |
+
$ref: '#/components/schemas/Employee'
|
| 1429 |
+
"201":
|
| 1430 |
+
description: Created
|
| 1431 |
+
content: {}
|
| 1432 |
+
"401":
|
| 1433 |
+
description: Unauthorized
|
| 1434 |
+
content: {}
|
| 1435 |
+
"403":
|
| 1436 |
+
description: Forbidden
|
| 1437 |
+
content: {}
|
| 1438 |
+
"404":
|
| 1439 |
+
description: Not Found
|
| 1440 |
+
content: {}
|
| 1441 |
+
deprecated: false
|
| 1442 |
+
x-codegen-request-body-name: employee
|
| 1443 |
+
/app/api/employees/update:
|
| 1444 |
+
put:
|
| 1445 |
+
tags:
|
| 1446 |
+
- employee-resource
|
| 1447 |
+
summary: update
|
| 1448 |
+
operationId: updateUsingPUT_7
|
| 1449 |
+
requestBody:
|
| 1450 |
+
description: employee
|
| 1451 |
+
content:
|
| 1452 |
+
application/json:
|
| 1453 |
+
schema:
|
| 1454 |
+
$ref: '#/components/schemas/Employee'
|
| 1455 |
+
required: true
|
| 1456 |
+
responses:
|
| 1457 |
+
"200":
|
| 1458 |
+
description: OK
|
| 1459 |
+
content:
|
| 1460 |
+
'*/*':
|
| 1461 |
+
schema:
|
| 1462 |
+
$ref: '#/components/schemas/Employee'
|
| 1463 |
+
"201":
|
| 1464 |
+
description: Created
|
| 1465 |
+
content: {}
|
| 1466 |
+
"401":
|
| 1467 |
+
description: Unauthorized
|
| 1468 |
+
content: {}
|
| 1469 |
+
"403":
|
| 1470 |
+
description: Forbidden
|
| 1471 |
+
content: {}
|
| 1472 |
+
"404":
|
| 1473 |
+
description: Not Found
|
| 1474 |
+
content: {}
|
| 1475 |
+
deprecated: false
|
| 1476 |
+
x-codegen-request-body-name: employee
|
| 1477 |
+
/app/api/employees/username/{username}:
|
| 1478 |
+
get:
|
| 1479 |
+
tags:
|
| 1480 |
+
- employee-resource
|
| 1481 |
+
summary: findByUsername
|
| 1482 |
+
operationId: findByUsernameUsingGET_1
|
| 1483 |
+
parameters:
|
| 1484 |
+
- name: username
|
| 1485 |
+
in: path
|
| 1486 |
+
description: username
|
| 1487 |
+
required: true
|
| 1488 |
+
schema:
|
| 1489 |
+
type: string
|
| 1490 |
+
responses:
|
| 1491 |
+
"200":
|
| 1492 |
+
description: OK
|
| 1493 |
+
content:
|
| 1494 |
+
'*/*':
|
| 1495 |
+
schema:
|
| 1496 |
+
$ref: '#/components/schemas/Employee'
|
| 1497 |
+
"401":
|
| 1498 |
+
description: Unauthorized
|
| 1499 |
+
content: {}
|
| 1500 |
+
"403":
|
| 1501 |
+
description: Forbidden
|
| 1502 |
+
content: {}
|
| 1503 |
+
"404":
|
| 1504 |
+
description: Not Found
|
| 1505 |
+
content: {}
|
| 1506 |
+
deprecated: false
|
| 1507 |
+
delete:
|
| 1508 |
+
tags:
|
| 1509 |
+
- employee-resource
|
| 1510 |
+
summary: deleteByUsername
|
| 1511 |
+
operationId: deleteByUsernameUsingDELETE_1
|
| 1512 |
+
parameters:
|
| 1513 |
+
- name: username
|
| 1514 |
+
in: path
|
| 1515 |
+
description: username
|
| 1516 |
+
required: true
|
| 1517 |
+
schema:
|
| 1518 |
+
type: string
|
| 1519 |
+
responses:
|
| 1520 |
+
"200":
|
| 1521 |
+
description: OK
|
| 1522 |
+
content:
|
| 1523 |
+
'*/*':
|
| 1524 |
+
schema:
|
| 1525 |
+
type: boolean
|
| 1526 |
+
"204":
|
| 1527 |
+
description: No Content
|
| 1528 |
+
content: {}
|
| 1529 |
+
"401":
|
| 1530 |
+
description: Unauthorized
|
| 1531 |
+
content: {}
|
| 1532 |
+
"403":
|
| 1533 |
+
description: Forbidden
|
| 1534 |
+
content: {}
|
| 1535 |
+
deprecated: false
|
| 1536 |
+
/app/api/employees/{id}:
|
| 1537 |
+
get:
|
| 1538 |
+
tags:
|
| 1539 |
+
- employee-resource
|
| 1540 |
+
summary: findById
|
| 1541 |
+
operationId: findByIdUsingGET_3
|
| 1542 |
+
parameters:
|
| 1543 |
+
- name: id
|
| 1544 |
+
in: path
|
| 1545 |
+
description: id
|
| 1546 |
+
required: true
|
| 1547 |
+
schema:
|
| 1548 |
+
type: string
|
| 1549 |
+
responses:
|
| 1550 |
+
"200":
|
| 1551 |
+
description: OK
|
| 1552 |
+
content:
|
| 1553 |
+
'*/*':
|
| 1554 |
+
schema:
|
| 1555 |
+
$ref: '#/components/schemas/Employee'
|
| 1556 |
+
"401":
|
| 1557 |
+
description: Unauthorized
|
| 1558 |
+
content: {}
|
| 1559 |
+
"403":
|
| 1560 |
+
description: Forbidden
|
| 1561 |
+
content: {}
|
| 1562 |
+
"404":
|
| 1563 |
+
description: Not Found
|
| 1564 |
+
content: {}
|
| 1565 |
+
deprecated: false
|
| 1566 |
+
/app/api/locations:
|
| 1567 |
+
get:
|
| 1568 |
+
tags:
|
| 1569 |
+
- location-resource
|
| 1570 |
+
summary: findAll
|
| 1571 |
+
operationId: findAllUsingGET_8
|
| 1572 |
+
responses:
|
| 1573 |
+
"200":
|
| 1574 |
+
description: OK
|
| 1575 |
+
content:
|
| 1576 |
+
'*/*':
|
| 1577 |
+
schema:
|
| 1578 |
+
$ref: '#/components/schemas/DtoCollectionLocation'
|
| 1579 |
+
"401":
|
| 1580 |
+
description: Unauthorized
|
| 1581 |
+
content: {}
|
| 1582 |
+
"403":
|
| 1583 |
+
description: Forbidden
|
| 1584 |
+
content: {}
|
| 1585 |
+
"404":
|
| 1586 |
+
description: Not Found
|
| 1587 |
+
content: {}
|
| 1588 |
+
deprecated: false
|
| 1589 |
+
put:
|
| 1590 |
+
tags:
|
| 1591 |
+
- location-resource
|
| 1592 |
+
summary: update
|
| 1593 |
+
operationId: updateUsingPUT_8
|
| 1594 |
+
requestBody:
|
| 1595 |
+
description: location
|
| 1596 |
+
content:
|
| 1597 |
+
application/json:
|
| 1598 |
+
schema:
|
| 1599 |
+
$ref: '#/components/schemas/Location'
|
| 1600 |
+
required: true
|
| 1601 |
+
responses:
|
| 1602 |
+
"200":
|
| 1603 |
+
description: OK
|
| 1604 |
+
content:
|
| 1605 |
+
'*/*':
|
| 1606 |
+
schema:
|
| 1607 |
+
$ref: '#/components/schemas/Location'
|
| 1608 |
+
"201":
|
| 1609 |
+
description: Created
|
| 1610 |
+
content: {}
|
| 1611 |
+
"401":
|
| 1612 |
+
description: Unauthorized
|
| 1613 |
+
content: {}
|
| 1614 |
+
"403":
|
| 1615 |
+
description: Forbidden
|
| 1616 |
+
content: {}
|
| 1617 |
+
"404":
|
| 1618 |
+
description: Not Found
|
| 1619 |
+
content: {}
|
| 1620 |
+
deprecated: false
|
| 1621 |
+
x-codegen-request-body-name: location
|
| 1622 |
+
post:
|
| 1623 |
+
tags:
|
| 1624 |
+
- location-resource
|
| 1625 |
+
summary: save
|
| 1626 |
+
operationId: saveUsingPOST_8
|
| 1627 |
+
requestBody:
|
| 1628 |
+
description: location
|
| 1629 |
+
content:
|
| 1630 |
+
application/json:
|
| 1631 |
+
schema:
|
| 1632 |
+
$ref: '#/components/schemas/Location'
|
| 1633 |
+
required: true
|
| 1634 |
+
responses:
|
| 1635 |
+
"200":
|
| 1636 |
+
description: OK
|
| 1637 |
+
content:
|
| 1638 |
+
'*/*':
|
| 1639 |
+
schema:
|
| 1640 |
+
$ref: '#/components/schemas/Location'
|
| 1641 |
+
"201":
|
| 1642 |
+
description: Created
|
| 1643 |
+
content: {}
|
| 1644 |
+
"401":
|
| 1645 |
+
description: Unauthorized
|
| 1646 |
+
content: {}
|
| 1647 |
+
"403":
|
| 1648 |
+
description: Forbidden
|
| 1649 |
+
content: {}
|
| 1650 |
+
"404":
|
| 1651 |
+
description: Not Found
|
| 1652 |
+
content: {}
|
| 1653 |
+
deprecated: false
|
| 1654 |
+
x-codegen-request-body-name: location
|
| 1655 |
+
delete:
|
| 1656 |
+
tags:
|
| 1657 |
+
- location-resource
|
| 1658 |
+
summary: deleteById
|
| 1659 |
+
operationId: deleteByIdUsingDELETE_8
|
| 1660 |
+
parameters:
|
| 1661 |
+
- name: locationId
|
| 1662 |
+
in: query
|
| 1663 |
+
description: locationId
|
| 1664 |
+
schema:
|
| 1665 |
+
type: string
|
| 1666 |
+
responses:
|
| 1667 |
+
"200":
|
| 1668 |
+
description: OK
|
| 1669 |
+
content: {}
|
| 1670 |
+
"204":
|
| 1671 |
+
description: No Content
|
| 1672 |
+
content: {}
|
| 1673 |
+
"401":
|
| 1674 |
+
description: Unauthorized
|
| 1675 |
+
content: {}
|
| 1676 |
+
"403":
|
| 1677 |
+
description: Forbidden
|
| 1678 |
+
content: {}
|
| 1679 |
+
deprecated: false
|
| 1680 |
+
/app/api/locations/:
|
| 1681 |
+
get:
|
| 1682 |
+
tags:
|
| 1683 |
+
- location-resource
|
| 1684 |
+
summary: findAll
|
| 1685 |
+
operationId: findAllUsingGET_9
|
| 1686 |
+
responses:
|
| 1687 |
+
"200":
|
| 1688 |
+
description: OK
|
| 1689 |
+
content:
|
| 1690 |
+
'*/*':
|
| 1691 |
+
schema:
|
| 1692 |
+
$ref: '#/components/schemas/DtoCollectionLocation'
|
| 1693 |
+
"401":
|
| 1694 |
+
description: Unauthorized
|
| 1695 |
+
content: {}
|
| 1696 |
+
"403":
|
| 1697 |
+
description: Forbidden
|
| 1698 |
+
content: {}
|
| 1699 |
+
"404":
|
| 1700 |
+
description: Not Found
|
| 1701 |
+
content: {}
|
| 1702 |
+
deprecated: false
|
| 1703 |
+
/app/api/locations/delete:
|
| 1704 |
+
delete:
|
| 1705 |
+
tags:
|
| 1706 |
+
- location-resource
|
| 1707 |
+
summary: deleteById
|
| 1708 |
+
operationId: deleteByIdUsingDELETE_9
|
| 1709 |
+
parameters:
|
| 1710 |
+
- name: locationId
|
| 1711 |
+
in: query
|
| 1712 |
+
description: locationId
|
| 1713 |
+
schema:
|
| 1714 |
+
type: string
|
| 1715 |
+
responses:
|
| 1716 |
+
"200":
|
| 1717 |
+
description: OK
|
| 1718 |
+
content: {}
|
| 1719 |
+
"204":
|
| 1720 |
+
description: No Content
|
| 1721 |
+
content: {}
|
| 1722 |
+
"401":
|
| 1723 |
+
description: Unauthorized
|
| 1724 |
+
content: {}
|
| 1725 |
+
"403":
|
| 1726 |
+
description: Forbidden
|
| 1727 |
+
content: {}
|
| 1728 |
+
deprecated: false
|
| 1729 |
+
/app/api/locations/save:
|
| 1730 |
+
post:
|
| 1731 |
+
tags:
|
| 1732 |
+
- location-resource
|
| 1733 |
+
summary: save
|
| 1734 |
+
operationId: saveUsingPOST_9
|
| 1735 |
+
requestBody:
|
| 1736 |
+
description: location
|
| 1737 |
+
content:
|
| 1738 |
+
application/json:
|
| 1739 |
+
schema:
|
| 1740 |
+
$ref: '#/components/schemas/Location'
|
| 1741 |
+
required: true
|
| 1742 |
+
responses:
|
| 1743 |
+
"200":
|
| 1744 |
+
description: OK
|
| 1745 |
+
content:
|
| 1746 |
+
'*/*':
|
| 1747 |
+
schema:
|
| 1748 |
+
$ref: '#/components/schemas/Location'
|
| 1749 |
+
"201":
|
| 1750 |
+
description: Created
|
| 1751 |
+
content: {}
|
| 1752 |
+
"401":
|
| 1753 |
+
description: Unauthorized
|
| 1754 |
+
content: {}
|
| 1755 |
+
"403":
|
| 1756 |
+
description: Forbidden
|
| 1757 |
+
content: {}
|
| 1758 |
+
"404":
|
| 1759 |
+
description: Not Found
|
| 1760 |
+
content: {}
|
| 1761 |
+
deprecated: false
|
| 1762 |
+
x-codegen-request-body-name: location
|
| 1763 |
+
/app/api/locations/update:
|
| 1764 |
+
put:
|
| 1765 |
+
tags:
|
| 1766 |
+
- location-resource
|
| 1767 |
+
summary: update
|
| 1768 |
+
operationId: updateUsingPUT_9
|
| 1769 |
+
requestBody:
|
| 1770 |
+
description: location
|
| 1771 |
+
content:
|
| 1772 |
+
application/json:
|
| 1773 |
+
schema:
|
| 1774 |
+
$ref: '#/components/schemas/Location'
|
| 1775 |
+
required: true
|
| 1776 |
+
responses:
|
| 1777 |
+
"200":
|
| 1778 |
+
description: OK
|
| 1779 |
+
content:
|
| 1780 |
+
'*/*':
|
| 1781 |
+
schema:
|
| 1782 |
+
$ref: '#/components/schemas/Location'
|
| 1783 |
+
"201":
|
| 1784 |
+
description: Created
|
| 1785 |
+
content: {}
|
| 1786 |
+
"401":
|
| 1787 |
+
description: Unauthorized
|
| 1788 |
+
content: {}
|
| 1789 |
+
"403":
|
| 1790 |
+
description: Forbidden
|
| 1791 |
+
content: {}
|
| 1792 |
+
"404":
|
| 1793 |
+
description: Not Found
|
| 1794 |
+
content: {}
|
| 1795 |
+
deprecated: false
|
| 1796 |
+
x-codegen-request-body-name: location
|
| 1797 |
+
/app/api/locations/{id}:
|
| 1798 |
+
get:
|
| 1799 |
+
tags:
|
| 1800 |
+
- location-resource
|
| 1801 |
+
summary: findById
|
| 1802 |
+
operationId: findByIdUsingGET_4
|
| 1803 |
+
parameters:
|
| 1804 |
+
- name: id
|
| 1805 |
+
in: path
|
| 1806 |
+
description: id
|
| 1807 |
+
required: true
|
| 1808 |
+
schema:
|
| 1809 |
+
type: string
|
| 1810 |
+
responses:
|
| 1811 |
+
"200":
|
| 1812 |
+
description: OK
|
| 1813 |
+
content:
|
| 1814 |
+
'*/*':
|
| 1815 |
+
schema:
|
| 1816 |
+
$ref: '#/components/schemas/Location'
|
| 1817 |
+
"401":
|
| 1818 |
+
description: Unauthorized
|
| 1819 |
+
content: {}
|
| 1820 |
+
"403":
|
| 1821 |
+
description: Forbidden
|
| 1822 |
+
content: {}
|
| 1823 |
+
"404":
|
| 1824 |
+
description: Not Found
|
| 1825 |
+
content: {}
|
| 1826 |
+
deprecated: false
|
| 1827 |
+
/app/api/projects:
|
| 1828 |
+
get:
|
| 1829 |
+
tags:
|
| 1830 |
+
- project-resource
|
| 1831 |
+
summary: findAll
|
| 1832 |
+
operationId: findAllUsingGET_10
|
| 1833 |
+
responses:
|
| 1834 |
+
"200":
|
| 1835 |
+
description: OK
|
| 1836 |
+
content:
|
| 1837 |
+
'*/*':
|
| 1838 |
+
schema:
|
| 1839 |
+
$ref: '#/components/schemas/DtoCollectionProject'
|
| 1840 |
+
"401":
|
| 1841 |
+
description: Unauthorized
|
| 1842 |
+
content: {}
|
| 1843 |
+
"403":
|
| 1844 |
+
description: Forbidden
|
| 1845 |
+
content: {}
|
| 1846 |
+
"404":
|
| 1847 |
+
description: Not Found
|
| 1848 |
+
content: {}
|
| 1849 |
+
deprecated: false
|
| 1850 |
+
put:
|
| 1851 |
+
tags:
|
| 1852 |
+
- project-resource
|
| 1853 |
+
summary: update
|
| 1854 |
+
operationId: updateUsingPUT_10
|
| 1855 |
+
requestBody:
|
| 1856 |
+
description: project
|
| 1857 |
+
content:
|
| 1858 |
+
application/json:
|
| 1859 |
+
schema:
|
| 1860 |
+
$ref: '#/components/schemas/Project'
|
| 1861 |
+
required: true
|
| 1862 |
+
responses:
|
| 1863 |
+
"200":
|
| 1864 |
+
description: OK
|
| 1865 |
+
content:
|
| 1866 |
+
'*/*':
|
| 1867 |
+
schema:
|
| 1868 |
+
$ref: '#/components/schemas/Project'
|
| 1869 |
+
"201":
|
| 1870 |
+
description: Created
|
| 1871 |
+
content: {}
|
| 1872 |
+
"401":
|
| 1873 |
+
description: Unauthorized
|
| 1874 |
+
content: {}
|
| 1875 |
+
"403":
|
| 1876 |
+
description: Forbidden
|
| 1877 |
+
content: {}
|
| 1878 |
+
"404":
|
| 1879 |
+
description: Not Found
|
| 1880 |
+
content: {}
|
| 1881 |
+
deprecated: false
|
| 1882 |
+
x-codegen-request-body-name: project
|
| 1883 |
+
post:
|
| 1884 |
+
tags:
|
| 1885 |
+
- project-resource
|
| 1886 |
+
summary: save
|
| 1887 |
+
operationId: saveUsingPOST_10
|
| 1888 |
+
requestBody:
|
| 1889 |
+
description: project
|
| 1890 |
+
content:
|
| 1891 |
+
application/json:
|
| 1892 |
+
schema:
|
| 1893 |
+
$ref: '#/components/schemas/Project'
|
| 1894 |
+
required: true
|
| 1895 |
+
responses:
|
| 1896 |
+
"200":
|
| 1897 |
+
description: OK
|
| 1898 |
+
content:
|
| 1899 |
+
'*/*':
|
| 1900 |
+
schema:
|
| 1901 |
+
$ref: '#/components/schemas/Project'
|
| 1902 |
+
"201":
|
| 1903 |
+
description: Created
|
| 1904 |
+
content: {}
|
| 1905 |
+
"401":
|
| 1906 |
+
description: Unauthorized
|
| 1907 |
+
content: {}
|
| 1908 |
+
"403":
|
| 1909 |
+
description: Forbidden
|
| 1910 |
+
content: {}
|
| 1911 |
+
"404":
|
| 1912 |
+
description: Not Found
|
| 1913 |
+
content: {}
|
| 1914 |
+
deprecated: false
|
| 1915 |
+
x-codegen-request-body-name: project
|
| 1916 |
+
delete:
|
| 1917 |
+
tags:
|
| 1918 |
+
- project-resource
|
| 1919 |
+
summary: deleteById
|
| 1920 |
+
operationId: deleteByIdUsingDELETE_10
|
| 1921 |
+
parameters:
|
| 1922 |
+
- name: projectId
|
| 1923 |
+
in: query
|
| 1924 |
+
description: projectId
|
| 1925 |
+
schema:
|
| 1926 |
+
type: string
|
| 1927 |
+
responses:
|
| 1928 |
+
"200":
|
| 1929 |
+
description: OK
|
| 1930 |
+
content: {}
|
| 1931 |
+
"204":
|
| 1932 |
+
description: No Content
|
| 1933 |
+
content: {}
|
| 1934 |
+
"401":
|
| 1935 |
+
description: Unauthorized
|
| 1936 |
+
content: {}
|
| 1937 |
+
"403":
|
| 1938 |
+
description: Forbidden
|
| 1939 |
+
content: {}
|
| 1940 |
+
deprecated: false
|
| 1941 |
+
/app/api/projects/:
|
| 1942 |
+
get:
|
| 1943 |
+
tags:
|
| 1944 |
+
- project-resource
|
| 1945 |
+
summary: findAll
|
| 1946 |
+
operationId: findAllUsingGET_11
|
| 1947 |
+
responses:
|
| 1948 |
+
"200":
|
| 1949 |
+
description: OK
|
| 1950 |
+
content:
|
| 1951 |
+
'*/*':
|
| 1952 |
+
schema:
|
| 1953 |
+
$ref: '#/components/schemas/DtoCollectionProject'
|
| 1954 |
+
"401":
|
| 1955 |
+
description: Unauthorized
|
| 1956 |
+
content: {}
|
| 1957 |
+
"403":
|
| 1958 |
+
description: Forbidden
|
| 1959 |
+
content: {}
|
| 1960 |
+
"404":
|
| 1961 |
+
description: Not Found
|
| 1962 |
+
content: {}
|
| 1963 |
+
deprecated: false
|
| 1964 |
+
/app/api/projects/delete:
|
| 1965 |
+
delete:
|
| 1966 |
+
tags:
|
| 1967 |
+
- project-resource
|
| 1968 |
+
summary: deleteById
|
| 1969 |
+
operationId: deleteByIdUsingDELETE_11
|
| 1970 |
+
parameters:
|
| 1971 |
+
- name: projectId
|
| 1972 |
+
in: query
|
| 1973 |
+
description: projectId
|
| 1974 |
+
schema:
|
| 1975 |
+
type: string
|
| 1976 |
+
responses:
|
| 1977 |
+
"200":
|
| 1978 |
+
description: OK
|
| 1979 |
+
content: {}
|
| 1980 |
+
"204":
|
| 1981 |
+
description: No Content
|
| 1982 |
+
content: {}
|
| 1983 |
+
"401":
|
| 1984 |
+
description: Unauthorized
|
| 1985 |
+
content: {}
|
| 1986 |
+
"403":
|
| 1987 |
+
description: Forbidden
|
| 1988 |
+
content: {}
|
| 1989 |
+
deprecated: false
|
| 1990 |
+
/app/api/projects/save:
|
| 1991 |
+
post:
|
| 1992 |
+
tags:
|
| 1993 |
+
- project-resource
|
| 1994 |
+
summary: save
|
| 1995 |
+
operationId: saveUsingPOST_11
|
| 1996 |
+
requestBody:
|
| 1997 |
+
description: project
|
| 1998 |
+
content:
|
| 1999 |
+
application/json:
|
| 2000 |
+
schema:
|
| 2001 |
+
$ref: '#/components/schemas/Project'
|
| 2002 |
+
required: true
|
| 2003 |
+
responses:
|
| 2004 |
+
"200":
|
| 2005 |
+
description: OK
|
| 2006 |
+
content:
|
| 2007 |
+
'*/*':
|
| 2008 |
+
schema:
|
| 2009 |
+
$ref: '#/components/schemas/Project'
|
| 2010 |
+
"201":
|
| 2011 |
+
description: Created
|
| 2012 |
+
content: {}
|
| 2013 |
+
"401":
|
| 2014 |
+
description: Unauthorized
|
| 2015 |
+
content: {}
|
| 2016 |
+
"403":
|
| 2017 |
+
description: Forbidden
|
| 2018 |
+
content: {}
|
| 2019 |
+
"404":
|
| 2020 |
+
description: Not Found
|
| 2021 |
+
content: {}
|
| 2022 |
+
deprecated: false
|
| 2023 |
+
x-codegen-request-body-name: project
|
| 2024 |
+
/app/api/projects/update:
|
| 2025 |
+
put:
|
| 2026 |
+
tags:
|
| 2027 |
+
- project-resource
|
| 2028 |
+
summary: update
|
| 2029 |
+
operationId: updateUsingPUT_11
|
| 2030 |
+
requestBody:
|
| 2031 |
+
description: project
|
| 2032 |
+
content:
|
| 2033 |
+
application/json:
|
| 2034 |
+
schema:
|
| 2035 |
+
$ref: '#/components/schemas/Project'
|
| 2036 |
+
required: true
|
| 2037 |
+
responses:
|
| 2038 |
+
"200":
|
| 2039 |
+
description: OK
|
| 2040 |
+
content:
|
| 2041 |
+
'*/*':
|
| 2042 |
+
schema:
|
| 2043 |
+
$ref: '#/components/schemas/Project'
|
| 2044 |
+
"201":
|
| 2045 |
+
description: Created
|
| 2046 |
+
content: {}
|
| 2047 |
+
"401":
|
| 2048 |
+
description: Unauthorized
|
| 2049 |
+
content: {}
|
| 2050 |
+
"403":
|
| 2051 |
+
description: Forbidden
|
| 2052 |
+
content: {}
|
| 2053 |
+
"404":
|
| 2054 |
+
description: Not Found
|
| 2055 |
+
content: {}
|
| 2056 |
+
deprecated: false
|
| 2057 |
+
x-codegen-request-body-name: project
|
| 2058 |
+
/app/api/projects/{id}:
|
| 2059 |
+
get:
|
| 2060 |
+
tags:
|
| 2061 |
+
- project-resource
|
| 2062 |
+
summary: findById
|
| 2063 |
+
operationId: findByIdUsingGET_5
|
| 2064 |
+
parameters:
|
| 2065 |
+
- name: id
|
| 2066 |
+
in: path
|
| 2067 |
+
description: id
|
| 2068 |
+
required: true
|
| 2069 |
+
schema:
|
| 2070 |
+
type: string
|
| 2071 |
+
responses:
|
| 2072 |
+
"200":
|
| 2073 |
+
description: OK
|
| 2074 |
+
content:
|
| 2075 |
+
'*/*':
|
| 2076 |
+
schema:
|
| 2077 |
+
$ref: '#/components/schemas/Project'
|
| 2078 |
+
"401":
|
| 2079 |
+
description: Unauthorized
|
| 2080 |
+
content: {}
|
| 2081 |
+
"403":
|
| 2082 |
+
description: Forbidden
|
| 2083 |
+
content: {}
|
| 2084 |
+
"404":
|
| 2085 |
+
description: Not Found
|
| 2086 |
+
content: {}
|
| 2087 |
+
deprecated: false
|
| 2088 |
+
components:
|
| 2089 |
+
schemas:
|
| 2090 |
+
Assignment:
|
| 2091 |
+
title: Assignment
|
| 2092 |
+
type: object
|
| 2093 |
+
properties:
|
| 2094 |
+
commitDate:
|
| 2095 |
+
type: string
|
| 2096 |
+
example: dd-MM-yyyyHH:mm:ss
|
| 2097 |
+
commitEmpDesc:
|
| 2098 |
+
type: string
|
| 2099 |
+
commitMgrDesc:
|
| 2100 |
+
type: string
|
| 2101 |
+
employee:
|
| 2102 |
+
$ref: '#/components/schemas/Employee'
|
| 2103 |
+
employeeId:
|
| 2104 |
+
type: integer
|
| 2105 |
+
format: int32
|
| 2106 |
+
project:
|
| 2107 |
+
$ref: '#/components/schemas/Project'
|
| 2108 |
+
projectId:
|
| 2109 |
+
type: integer
|
| 2110 |
+
format: int32
|
| 2111 |
+
AuthenticationRequest:
|
| 2112 |
+
title: AuthenticationRequest
|
| 2113 |
+
type: object
|
| 2114 |
+
properties:
|
| 2115 |
+
password:
|
| 2116 |
+
type: string
|
| 2117 |
+
username:
|
| 2118 |
+
type: string
|
| 2119 |
+
AuthenticationResponse:
|
| 2120 |
+
title: AuthenticationResponse
|
| 2121 |
+
type: object
|
| 2122 |
+
properties:
|
| 2123 |
+
isEligible:
|
| 2124 |
+
type: boolean
|
| 2125 |
+
username:
|
| 2126 |
+
type: string
|
| 2127 |
+
Credential:
|
| 2128 |
+
title: Credential
|
| 2129 |
+
type: object
|
| 2130 |
+
properties:
|
| 2131 |
+
credentialId:
|
| 2132 |
+
type: integer
|
| 2133 |
+
format: int32
|
| 2134 |
+
enabled:
|
| 2135 |
+
type: boolean
|
| 2136 |
+
password:
|
| 2137 |
+
type: string
|
| 2138 |
+
role:
|
| 2139 |
+
type: string
|
| 2140 |
+
username:
|
| 2141 |
+
type: string
|
| 2142 |
+
Department:
|
| 2143 |
+
title: Department
|
| 2144 |
+
type: object
|
| 2145 |
+
properties:
|
| 2146 |
+
departmentId:
|
| 2147 |
+
type: integer
|
| 2148 |
+
format: int32
|
| 2149 |
+
departmentName:
|
| 2150 |
+
type: string
|
| 2151 |
+
location:
|
| 2152 |
+
$ref: '#/components/schemas/Location'
|
| 2153 |
+
DtoCollectionAssignment:
|
| 2154 |
+
title: DtoCollectionAssignment
|
| 2155 |
+
type: object
|
| 2156 |
+
properties:
|
| 2157 |
+
collection:
|
| 2158 |
+
type: array
|
| 2159 |
+
items:
|
| 2160 |
+
$ref: '#/components/schemas/Assignment'
|
| 2161 |
+
DtoCollectionCredential:
|
| 2162 |
+
title: DtoCollectionCredential
|
| 2163 |
+
type: object
|
| 2164 |
+
properties:
|
| 2165 |
+
collection:
|
| 2166 |
+
type: array
|
| 2167 |
+
items:
|
| 2168 |
+
$ref: '#/components/schemas/Credential'
|
| 2169 |
+
DtoCollectionDepartment:
|
| 2170 |
+
title: DtoCollectionDepartment
|
| 2171 |
+
type: object
|
| 2172 |
+
properties:
|
| 2173 |
+
collection:
|
| 2174 |
+
type: array
|
| 2175 |
+
items:
|
| 2176 |
+
$ref: '#/components/schemas/Department'
|
| 2177 |
+
DtoCollectionEmployeeProjectData:
|
| 2178 |
+
title: DtoCollectionEmployeeProjectData
|
| 2179 |
+
type: object
|
| 2180 |
+
properties:
|
| 2181 |
+
collection:
|
| 2182 |
+
type: array
|
| 2183 |
+
items:
|
| 2184 |
+
$ref: '#/components/schemas/EmployeeProjectData'
|
| 2185 |
+
DtoCollectionEmployee:
|
| 2186 |
+
title: DtoCollectionEmployee
|
| 2187 |
+
type: object
|
| 2188 |
+
properties:
|
| 2189 |
+
collection:
|
| 2190 |
+
type: array
|
| 2191 |
+
items:
|
| 2192 |
+
$ref: '#/components/schemas/Employee'
|
| 2193 |
+
DtoCollectionLocation:
|
| 2194 |
+
title: DtoCollectionLocation
|
| 2195 |
+
type: object
|
| 2196 |
+
properties:
|
| 2197 |
+
collection:
|
| 2198 |
+
type: array
|
| 2199 |
+
items:
|
| 2200 |
+
$ref: '#/components/schemas/Location'
|
| 2201 |
+
DtoCollectionManagerProjectData:
|
| 2202 |
+
title: DtoCollectionManagerProjectData
|
| 2203 |
+
type: object
|
| 2204 |
+
properties:
|
| 2205 |
+
collection:
|
| 2206 |
+
type: array
|
| 2207 |
+
items:
|
| 2208 |
+
$ref: '#/components/schemas/ManagerProjectData'
|
| 2209 |
+
DtoCollectionProjectCommit:
|
| 2210 |
+
title: DtoCollectionProjectCommit
|
| 2211 |
+
type: object
|
| 2212 |
+
properties:
|
| 2213 |
+
collection:
|
| 2214 |
+
type: array
|
| 2215 |
+
items:
|
| 2216 |
+
$ref: '#/components/schemas/ProjectCommit'
|
| 2217 |
+
DtoCollectionProject:
|
| 2218 |
+
title: DtoCollectionProject
|
| 2219 |
+
type: object
|
| 2220 |
+
properties:
|
| 2221 |
+
collection:
|
| 2222 |
+
type: array
|
| 2223 |
+
items:
|
| 2224 |
+
$ref: '#/components/schemas/Project'
|
| 2225 |
+
Employee:
|
| 2226 |
+
title: Employee
|
| 2227 |
+
type: object
|
| 2228 |
+
properties:
|
| 2229 |
+
credential:
|
| 2230 |
+
$ref: '#/components/schemas/Credential'
|
| 2231 |
+
department:
|
| 2232 |
+
$ref: '#/components/schemas/Department'
|
| 2233 |
+
email:
|
| 2234 |
+
type: string
|
| 2235 |
+
employeeId:
|
| 2236 |
+
type: integer
|
| 2237 |
+
format: int32
|
| 2238 |
+
firstName:
|
| 2239 |
+
type: string
|
| 2240 |
+
hiredate:
|
| 2241 |
+
type: string
|
| 2242 |
+
example: dd-MM-yyyy
|
| 2243 |
+
job:
|
| 2244 |
+
type: string
|
| 2245 |
+
lastName:
|
| 2246 |
+
type: string
|
| 2247 |
+
phone:
|
| 2248 |
+
type: string
|
| 2249 |
+
salary:
|
| 2250 |
+
type: number
|
| 2251 |
+
format: double
|
| 2252 |
+
EmployeeProjectData:
|
| 2253 |
+
title: EmployeeProjectData
|
| 2254 |
+
type: object
|
| 2255 |
+
properties:
|
| 2256 |
+
endDate:
|
| 2257 |
+
type: string
|
| 2258 |
+
projectId:
|
| 2259 |
+
type: integer
|
| 2260 |
+
format: int32
|
| 2261 |
+
startDate:
|
| 2262 |
+
type: string
|
| 2263 |
+
status:
|
| 2264 |
+
type: string
|
| 2265 |
+
title:
|
| 2266 |
+
type: string
|
| 2267 |
+
Location:
|
| 2268 |
+
title: Location
|
| 2269 |
+
type: object
|
| 2270 |
+
properties:
|
| 2271 |
+
adr:
|
| 2272 |
+
type: string
|
| 2273 |
+
city:
|
| 2274 |
+
type: string
|
| 2275 |
+
locationId:
|
| 2276 |
+
type: integer
|
| 2277 |
+
format: int32
|
| 2278 |
+
postalCode:
|
| 2279 |
+
type: string
|
| 2280 |
+
ManagerProjectData:
|
| 2281 |
+
title: ManagerProjectData
|
| 2282 |
+
type: object
|
| 2283 |
+
properties:
|
| 2284 |
+
endDate:
|
| 2285 |
+
type: string
|
| 2286 |
+
projectId:
|
| 2287 |
+
type: integer
|
| 2288 |
+
format: int32
|
| 2289 |
+
startDate:
|
| 2290 |
+
type: string
|
| 2291 |
+
status:
|
| 2292 |
+
type: string
|
| 2293 |
+
title:
|
| 2294 |
+
type: string
|
| 2295 |
+
Project:
|
| 2296 |
+
title: Project
|
| 2297 |
+
type: object
|
| 2298 |
+
properties:
|
| 2299 |
+
endDate:
|
| 2300 |
+
type: string
|
| 2301 |
+
example: dd-MM-yyyy
|
| 2302 |
+
projectId:
|
| 2303 |
+
type: integer
|
| 2304 |
+
format: int32
|
| 2305 |
+
startDate:
|
| 2306 |
+
type: string
|
| 2307 |
+
example: dd-MM-yyyy
|
| 2308 |
+
status:
|
| 2309 |
+
type: string
|
| 2310 |
+
title:
|
| 2311 |
+
type: string
|
| 2312 |
+
ProjectCommit:
|
| 2313 |
+
title: ProjectCommit
|
| 2314 |
+
type: object
|
| 2315 |
+
properties:
|
| 2316 |
+
commitDate:
|
| 2317 |
+
type: string
|
| 2318 |
+
format: date-time
|
| 2319 |
+
commitEmpDesc:
|
| 2320 |
+
type: string
|
| 2321 |
+
commitMgrDesc:
|
| 2322 |
+
type: string
|
| 2323 |
+
employeeId:
|
| 2324 |
+
type: integer
|
| 2325 |
+
format: int32
|
| 2326 |
+
firstName:
|
| 2327 |
+
type: string
|
| 2328 |
+
lastName:
|
| 2329 |
+
type: string
|
| 2330 |
+
projectId:
|
| 2331 |
+
type: integer
|
| 2332 |
+
format: int32
|
| 2333 |
+
x-original-swagger-version: "2.0"
|
aratrl-openapi/restcountries.yaml
ADDED
|
@@ -0,0 +1,377 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.0
|
| 2 |
+
servers:
|
| 3 |
+
- url: 'http://localhost:50106/rest'
|
| 4 |
+
info:
|
| 5 |
+
description: 'REST countries API'
|
| 6 |
+
title: REST countries API
|
| 7 |
+
version: v2.0.5
|
| 8 |
+
paths:
|
| 9 |
+
/v1/all:
|
| 10 |
+
get:
|
| 11 |
+
operationId: v1All
|
| 12 |
+
responses:
|
| 13 |
+
'200':
|
| 14 |
+
description: Successful response
|
| 15 |
+
default:
|
| 16 |
+
description: Other responses
|
| 17 |
+
/v1/alpha/{alphacode}:
|
| 18 |
+
get:
|
| 19 |
+
operationId: v1Alphacode
|
| 20 |
+
parameters:
|
| 21 |
+
- name: alphacode
|
| 22 |
+
in: path
|
| 23 |
+
required: true
|
| 24 |
+
schema:
|
| 25 |
+
type: string
|
| 26 |
+
responses:
|
| 27 |
+
'200':
|
| 28 |
+
description: Successful response
|
| 29 |
+
default:
|
| 30 |
+
description: Other responses
|
| 31 |
+
/v1/alpha:
|
| 32 |
+
get:
|
| 33 |
+
operationId: v1Alphacodes
|
| 34 |
+
parameters:
|
| 35 |
+
- name: codes
|
| 36 |
+
in: query
|
| 37 |
+
required: true
|
| 38 |
+
schema:
|
| 39 |
+
type: string
|
| 40 |
+
responses:
|
| 41 |
+
'200':
|
| 42 |
+
description: Successful response
|
| 43 |
+
default:
|
| 44 |
+
description: Other responses
|
| 45 |
+
/v1/currency/{currency}:
|
| 46 |
+
get:
|
| 47 |
+
operationId: v1Currency
|
| 48 |
+
parameters:
|
| 49 |
+
- name: currency
|
| 50 |
+
in: path
|
| 51 |
+
required: true
|
| 52 |
+
schema:
|
| 53 |
+
type: string
|
| 54 |
+
responses:
|
| 55 |
+
'200':
|
| 56 |
+
description: Successful response
|
| 57 |
+
default:
|
| 58 |
+
description: Other responses
|
| 59 |
+
/v1/name/{name}:
|
| 60 |
+
get:
|
| 61 |
+
operationId: v1Name
|
| 62 |
+
parameters:
|
| 63 |
+
- name: name
|
| 64 |
+
in: path
|
| 65 |
+
required: true
|
| 66 |
+
schema:
|
| 67 |
+
type: string
|
| 68 |
+
- name: fullText
|
| 69 |
+
in: query
|
| 70 |
+
required: false
|
| 71 |
+
schema:
|
| 72 |
+
type: boolean
|
| 73 |
+
responses:
|
| 74 |
+
'200':
|
| 75 |
+
description: Successful response
|
| 76 |
+
default:
|
| 77 |
+
description: Other responses
|
| 78 |
+
/v1/callingcode/{callingcode}:
|
| 79 |
+
get:
|
| 80 |
+
operationId: v1Callingcode
|
| 81 |
+
parameters:
|
| 82 |
+
- name: callingcode
|
| 83 |
+
in: path
|
| 84 |
+
required: true
|
| 85 |
+
schema:
|
| 86 |
+
type: string
|
| 87 |
+
responses:
|
| 88 |
+
'200':
|
| 89 |
+
description: Successful response
|
| 90 |
+
default:
|
| 91 |
+
description: Other responses
|
| 92 |
+
/v1/capital/{capital}:
|
| 93 |
+
get:
|
| 94 |
+
operationId: v1Capital
|
| 95 |
+
parameters:
|
| 96 |
+
- name: capital
|
| 97 |
+
in: path
|
| 98 |
+
required: true
|
| 99 |
+
schema:
|
| 100 |
+
type: string
|
| 101 |
+
responses:
|
| 102 |
+
'200':
|
| 103 |
+
description: Successful response
|
| 104 |
+
default:
|
| 105 |
+
description: Other responses
|
| 106 |
+
/v1/region/{region}:
|
| 107 |
+
get:
|
| 108 |
+
operationId: v1Region
|
| 109 |
+
parameters:
|
| 110 |
+
- name: region
|
| 111 |
+
in: path
|
| 112 |
+
required: true
|
| 113 |
+
schema:
|
| 114 |
+
type: string
|
| 115 |
+
responses:
|
| 116 |
+
'200':
|
| 117 |
+
description: Successful response
|
| 118 |
+
default:
|
| 119 |
+
description: Other responses
|
| 120 |
+
/v1/subregion/{subregion}:
|
| 121 |
+
get:
|
| 122 |
+
operationId: v1Subregion
|
| 123 |
+
parameters:
|
| 124 |
+
- name: subregion
|
| 125 |
+
in: path
|
| 126 |
+
required: true
|
| 127 |
+
schema:
|
| 128 |
+
type: string
|
| 129 |
+
responses:
|
| 130 |
+
'200':
|
| 131 |
+
description: Successful response
|
| 132 |
+
default:
|
| 133 |
+
description: Other responses
|
| 134 |
+
/v1/lang/{lang}:
|
| 135 |
+
get:
|
| 136 |
+
operationId: v1Lang
|
| 137 |
+
parameters:
|
| 138 |
+
- name: lang
|
| 139 |
+
in: path
|
| 140 |
+
required: true
|
| 141 |
+
schema:
|
| 142 |
+
type: string
|
| 143 |
+
responses:
|
| 144 |
+
'200':
|
| 145 |
+
description: Successful response
|
| 146 |
+
default:
|
| 147 |
+
description: Other responses
|
| 148 |
+
/v2/all:
|
| 149 |
+
get:
|
| 150 |
+
operationId: v2All
|
| 151 |
+
parameters:
|
| 152 |
+
- name: fields
|
| 153 |
+
in: query
|
| 154 |
+
required: false
|
| 155 |
+
schema:
|
| 156 |
+
type: string
|
| 157 |
+
responses:
|
| 158 |
+
'200':
|
| 159 |
+
description: Successful response
|
| 160 |
+
default:
|
| 161 |
+
description: Other responses
|
| 162 |
+
/v2/alpha/{alphacode}:
|
| 163 |
+
get:
|
| 164 |
+
operationId: v2Alphacode
|
| 165 |
+
parameters:
|
| 166 |
+
- name: fields
|
| 167 |
+
in: query
|
| 168 |
+
required: false
|
| 169 |
+
schema:
|
| 170 |
+
type: string
|
| 171 |
+
- name: alphacode
|
| 172 |
+
in: path
|
| 173 |
+
required: true
|
| 174 |
+
schema:
|
| 175 |
+
type: string
|
| 176 |
+
responses:
|
| 177 |
+
'200':
|
| 178 |
+
description: Successful response
|
| 179 |
+
default:
|
| 180 |
+
description: Other responses
|
| 181 |
+
/v2/alpha:
|
| 182 |
+
get:
|
| 183 |
+
operationId: v2Alphacodes
|
| 184 |
+
parameters:
|
| 185 |
+
- name: fields
|
| 186 |
+
in: query
|
| 187 |
+
required: false
|
| 188 |
+
schema:
|
| 189 |
+
type: string
|
| 190 |
+
- name: codes
|
| 191 |
+
in: query
|
| 192 |
+
required: true
|
| 193 |
+
schema:
|
| 194 |
+
type: string
|
| 195 |
+
responses:
|
| 196 |
+
'200':
|
| 197 |
+
description: Successful response
|
| 198 |
+
default:
|
| 199 |
+
description: Other responses
|
| 200 |
+
/v2/currency/{currency}:
|
| 201 |
+
get:
|
| 202 |
+
operationId: v2Currency
|
| 203 |
+
parameters:
|
| 204 |
+
- name: fields
|
| 205 |
+
in: query
|
| 206 |
+
required: false
|
| 207 |
+
schema:
|
| 208 |
+
type: string
|
| 209 |
+
- name: currency
|
| 210 |
+
in: path
|
| 211 |
+
required: true
|
| 212 |
+
schema:
|
| 213 |
+
type: string
|
| 214 |
+
responses:
|
| 215 |
+
'200':
|
| 216 |
+
description: Successful response
|
| 217 |
+
default:
|
| 218 |
+
description: Other responses
|
| 219 |
+
/v2/name/{name}:
|
| 220 |
+
get:
|
| 221 |
+
operationId: v2Name
|
| 222 |
+
parameters:
|
| 223 |
+
- name: fields
|
| 224 |
+
in: query
|
| 225 |
+
required: false
|
| 226 |
+
schema:
|
| 227 |
+
type: string
|
| 228 |
+
- name: name
|
| 229 |
+
in: path
|
| 230 |
+
required: true
|
| 231 |
+
schema:
|
| 232 |
+
type: string
|
| 233 |
+
- name: fullText
|
| 234 |
+
in: query
|
| 235 |
+
required: false
|
| 236 |
+
schema:
|
| 237 |
+
type: boolean
|
| 238 |
+
responses:
|
| 239 |
+
'200':
|
| 240 |
+
description: Successful response
|
| 241 |
+
default:
|
| 242 |
+
description: Other responses
|
| 243 |
+
/v2/callingcode/{callingcode}:
|
| 244 |
+
get:
|
| 245 |
+
operationId: v2Callingcode
|
| 246 |
+
parameters:
|
| 247 |
+
- name: fields
|
| 248 |
+
in: query
|
| 249 |
+
required: false
|
| 250 |
+
schema:
|
| 251 |
+
type: string
|
| 252 |
+
- name: callingcode
|
| 253 |
+
in: path
|
| 254 |
+
required: true
|
| 255 |
+
schema:
|
| 256 |
+
type: string
|
| 257 |
+
responses:
|
| 258 |
+
'200':
|
| 259 |
+
description: Successful response
|
| 260 |
+
default:
|
| 261 |
+
description: Other responses
|
| 262 |
+
/v2/capital/{capital}:
|
| 263 |
+
get:
|
| 264 |
+
operationId: v2Capital
|
| 265 |
+
parameters:
|
| 266 |
+
- name: fields
|
| 267 |
+
in: query
|
| 268 |
+
required: false
|
| 269 |
+
schema:
|
| 270 |
+
type: string
|
| 271 |
+
- name: capital
|
| 272 |
+
in: path
|
| 273 |
+
required: true
|
| 274 |
+
schema:
|
| 275 |
+
type: string
|
| 276 |
+
responses:
|
| 277 |
+
'200':
|
| 278 |
+
description: Successful response
|
| 279 |
+
default:
|
| 280 |
+
description: Other responses
|
| 281 |
+
/v2/region/{region}:
|
| 282 |
+
get:
|
| 283 |
+
operationId: v2Region
|
| 284 |
+
parameters:
|
| 285 |
+
- name: fields
|
| 286 |
+
in: query
|
| 287 |
+
required: false
|
| 288 |
+
schema:
|
| 289 |
+
type: string
|
| 290 |
+
- name: region
|
| 291 |
+
in: path
|
| 292 |
+
required: true
|
| 293 |
+
schema:
|
| 294 |
+
type: string
|
| 295 |
+
responses:
|
| 296 |
+
'200':
|
| 297 |
+
description: Successful response
|
| 298 |
+
default:
|
| 299 |
+
description: Other responses
|
| 300 |
+
/v2/subregion/{subregion}:
|
| 301 |
+
get:
|
| 302 |
+
operationId: v2Subregion
|
| 303 |
+
parameters:
|
| 304 |
+
- name: fields
|
| 305 |
+
in: query
|
| 306 |
+
required: false
|
| 307 |
+
schema:
|
| 308 |
+
type: string
|
| 309 |
+
- name: subregion
|
| 310 |
+
in: path
|
| 311 |
+
required: true
|
| 312 |
+
schema:
|
| 313 |
+
type: string
|
| 314 |
+
responses:
|
| 315 |
+
'200':
|
| 316 |
+
description: Successful response
|
| 317 |
+
default:
|
| 318 |
+
description: Other responses
|
| 319 |
+
/v2/lang/{lang}:
|
| 320 |
+
get:
|
| 321 |
+
operationId: v2Lang
|
| 322 |
+
parameters:
|
| 323 |
+
- name: fields
|
| 324 |
+
in: query
|
| 325 |
+
required: false
|
| 326 |
+
schema:
|
| 327 |
+
type: string
|
| 328 |
+
- name: lang
|
| 329 |
+
in: path
|
| 330 |
+
required: true
|
| 331 |
+
schema:
|
| 332 |
+
type: string
|
| 333 |
+
responses:
|
| 334 |
+
'200':
|
| 335 |
+
description: Successful response
|
| 336 |
+
default:
|
| 337 |
+
description: Other responses
|
| 338 |
+
/v2/demonym/{demonym}:
|
| 339 |
+
get:
|
| 340 |
+
operationId: v2Demonym
|
| 341 |
+
parameters:
|
| 342 |
+
- name: fields
|
| 343 |
+
in: query
|
| 344 |
+
required: false
|
| 345 |
+
schema:
|
| 346 |
+
type: string
|
| 347 |
+
- name: demonym
|
| 348 |
+
in: path
|
| 349 |
+
required: true
|
| 350 |
+
schema:
|
| 351 |
+
type: string
|
| 352 |
+
responses:
|
| 353 |
+
'200':
|
| 354 |
+
description: Successful response
|
| 355 |
+
default:
|
| 356 |
+
description: Other responses
|
| 357 |
+
/v2/regionalbloc/{regionalbloc}:
|
| 358 |
+
get:
|
| 359 |
+
operationId: v2Regionalbloc
|
| 360 |
+
parameters:
|
| 361 |
+
- name: fields
|
| 362 |
+
in: query
|
| 363 |
+
required: false
|
| 364 |
+
schema:
|
| 365 |
+
type: string
|
| 366 |
+
- name: regionalbloc
|
| 367 |
+
in: path
|
| 368 |
+
required: true
|
| 369 |
+
schema:
|
| 370 |
+
type: string
|
| 371 |
+
responses:
|
| 372 |
+
'200':
|
| 373 |
+
description: Successful response
|
| 374 |
+
default:
|
| 375 |
+
description: Other responses
|
| 376 |
+
components:
|
| 377 |
+
schemas: { }
|
aratrl-openapi/scs.yaml
ADDED
|
@@ -0,0 +1,437 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.1
|
| 2 |
+
info:
|
| 3 |
+
title: API for String Case Study (SCS)
|
| 4 |
+
description: Examples of different string algorithms accessible via REST
|
| 5 |
+
version: "1.0"
|
| 6 |
+
servers:
|
| 7 |
+
- url: http://localhost:50108
|
| 8 |
+
tags:
|
| 9 |
+
- name: scs-rest
|
| 10 |
+
description: Scs Rest
|
| 11 |
+
paths:
|
| 12 |
+
/api/calc/{op}/{arg1}/{arg2}:
|
| 13 |
+
get:
|
| 14 |
+
tags:
|
| 15 |
+
- scs-rest
|
| 16 |
+
summary: calc
|
| 17 |
+
operationId: calcUsingGET
|
| 18 |
+
parameters:
|
| 19 |
+
- name: arg1
|
| 20 |
+
in: path
|
| 21 |
+
description: arg1
|
| 22 |
+
required: true
|
| 23 |
+
schema:
|
| 24 |
+
type: number
|
| 25 |
+
format: double
|
| 26 |
+
- name: arg2
|
| 27 |
+
in: path
|
| 28 |
+
description: arg2
|
| 29 |
+
required: true
|
| 30 |
+
schema:
|
| 31 |
+
type: number
|
| 32 |
+
format: double
|
| 33 |
+
- name: op
|
| 34 |
+
in: path
|
| 35 |
+
description: op
|
| 36 |
+
required: true
|
| 37 |
+
schema:
|
| 38 |
+
type: string
|
| 39 |
+
responses:
|
| 40 |
+
"200":
|
| 41 |
+
description: OK
|
| 42 |
+
content:
|
| 43 |
+
'*/*':
|
| 44 |
+
schema:
|
| 45 |
+
type: string
|
| 46 |
+
"401":
|
| 47 |
+
description: Unauthorized
|
| 48 |
+
content: {}
|
| 49 |
+
"403":
|
| 50 |
+
description: Forbidden
|
| 51 |
+
content: {}
|
| 52 |
+
"404":
|
| 53 |
+
description: Not Found
|
| 54 |
+
content: {}
|
| 55 |
+
deprecated: false
|
| 56 |
+
/api/cookie/{name}/{val}/{site}:
|
| 57 |
+
get:
|
| 58 |
+
tags:
|
| 59 |
+
- scs-rest
|
| 60 |
+
summary: cookie
|
| 61 |
+
operationId: cookieUsingGET
|
| 62 |
+
parameters:
|
| 63 |
+
- name: name
|
| 64 |
+
in: path
|
| 65 |
+
description: name
|
| 66 |
+
required: true
|
| 67 |
+
schema:
|
| 68 |
+
type: string
|
| 69 |
+
- name: site
|
| 70 |
+
in: path
|
| 71 |
+
description: site
|
| 72 |
+
required: true
|
| 73 |
+
schema:
|
| 74 |
+
type: string
|
| 75 |
+
- name: val
|
| 76 |
+
in: path
|
| 77 |
+
description: val
|
| 78 |
+
required: true
|
| 79 |
+
schema:
|
| 80 |
+
type: string
|
| 81 |
+
responses:
|
| 82 |
+
"200":
|
| 83 |
+
description: OK
|
| 84 |
+
content:
|
| 85 |
+
'*/*':
|
| 86 |
+
schema:
|
| 87 |
+
type: string
|
| 88 |
+
"401":
|
| 89 |
+
description: Unauthorized
|
| 90 |
+
content: {}
|
| 91 |
+
"403":
|
| 92 |
+
description: Forbidden
|
| 93 |
+
content: {}
|
| 94 |
+
"404":
|
| 95 |
+
description: Not Found
|
| 96 |
+
content: {}
|
| 97 |
+
deprecated: false
|
| 98 |
+
/api/costfuns/{i}/{s}:
|
| 99 |
+
get:
|
| 100 |
+
tags:
|
| 101 |
+
- scs-rest
|
| 102 |
+
summary: costfuns
|
| 103 |
+
operationId: costfunsUsingGET
|
| 104 |
+
parameters:
|
| 105 |
+
- name: i
|
| 106 |
+
in: path
|
| 107 |
+
description: i
|
| 108 |
+
required: true
|
| 109 |
+
schema:
|
| 110 |
+
type: integer
|
| 111 |
+
format: int32
|
| 112 |
+
- name: s
|
| 113 |
+
in: path
|
| 114 |
+
description: s
|
| 115 |
+
required: true
|
| 116 |
+
schema:
|
| 117 |
+
type: string
|
| 118 |
+
responses:
|
| 119 |
+
"200":
|
| 120 |
+
description: OK
|
| 121 |
+
content:
|
| 122 |
+
'*/*':
|
| 123 |
+
schema:
|
| 124 |
+
type: string
|
| 125 |
+
"401":
|
| 126 |
+
description: Unauthorized
|
| 127 |
+
content: {}
|
| 128 |
+
"403":
|
| 129 |
+
description: Forbidden
|
| 130 |
+
content: {}
|
| 131 |
+
"404":
|
| 132 |
+
description: Not Found
|
| 133 |
+
content: {}
|
| 134 |
+
deprecated: false
|
| 135 |
+
/api/dateparse/{dayname}/{monthname}:
|
| 136 |
+
get:
|
| 137 |
+
tags:
|
| 138 |
+
- scs-rest
|
| 139 |
+
summary: dateParse
|
| 140 |
+
operationId: dateParseUsingGET
|
| 141 |
+
parameters:
|
| 142 |
+
- name: dayname
|
| 143 |
+
in: path
|
| 144 |
+
description: dayname
|
| 145 |
+
required: true
|
| 146 |
+
schema:
|
| 147 |
+
type: string
|
| 148 |
+
- name: monthname
|
| 149 |
+
in: path
|
| 150 |
+
description: monthname
|
| 151 |
+
required: true
|
| 152 |
+
schema:
|
| 153 |
+
type: string
|
| 154 |
+
responses:
|
| 155 |
+
"200":
|
| 156 |
+
description: OK
|
| 157 |
+
content:
|
| 158 |
+
'*/*':
|
| 159 |
+
schema:
|
| 160 |
+
type: string
|
| 161 |
+
"401":
|
| 162 |
+
description: Unauthorized
|
| 163 |
+
content: {}
|
| 164 |
+
"403":
|
| 165 |
+
description: Forbidden
|
| 166 |
+
content: {}
|
| 167 |
+
"404":
|
| 168 |
+
description: Not Found
|
| 169 |
+
content: {}
|
| 170 |
+
deprecated: false
|
| 171 |
+
/api/filesuffix/{directory}/{file}:
|
| 172 |
+
get:
|
| 173 |
+
tags:
|
| 174 |
+
- scs-rest
|
| 175 |
+
summary: fileSuffix
|
| 176 |
+
operationId: fileSuffixUsingGET
|
| 177 |
+
parameters:
|
| 178 |
+
- name: directory
|
| 179 |
+
in: path
|
| 180 |
+
description: directory
|
| 181 |
+
required: true
|
| 182 |
+
schema:
|
| 183 |
+
type: string
|
| 184 |
+
- name: file
|
| 185 |
+
in: path
|
| 186 |
+
description: file
|
| 187 |
+
required: true
|
| 188 |
+
schema:
|
| 189 |
+
type: string
|
| 190 |
+
responses:
|
| 191 |
+
"200":
|
| 192 |
+
description: OK
|
| 193 |
+
content:
|
| 194 |
+
'*/*':
|
| 195 |
+
schema:
|
| 196 |
+
type: string
|
| 197 |
+
"401":
|
| 198 |
+
description: Unauthorized
|
| 199 |
+
content: {}
|
| 200 |
+
"403":
|
| 201 |
+
description: Forbidden
|
| 202 |
+
content: {}
|
| 203 |
+
"404":
|
| 204 |
+
description: Not Found
|
| 205 |
+
content: {}
|
| 206 |
+
deprecated: false
|
| 207 |
+
/api/notypevar/{i}/{s}:
|
| 208 |
+
get:
|
| 209 |
+
tags:
|
| 210 |
+
- scs-rest
|
| 211 |
+
summary: notyPevar
|
| 212 |
+
operationId: notyPevarUsingGET
|
| 213 |
+
parameters:
|
| 214 |
+
- name: i
|
| 215 |
+
in: path
|
| 216 |
+
description: i
|
| 217 |
+
required: true
|
| 218 |
+
schema:
|
| 219 |
+
type: integer
|
| 220 |
+
format: int32
|
| 221 |
+
- name: s
|
| 222 |
+
in: path
|
| 223 |
+
description: s
|
| 224 |
+
required: true
|
| 225 |
+
schema:
|
| 226 |
+
type: string
|
| 227 |
+
responses:
|
| 228 |
+
"200":
|
| 229 |
+
description: OK
|
| 230 |
+
content:
|
| 231 |
+
'*/*':
|
| 232 |
+
schema:
|
| 233 |
+
type: string
|
| 234 |
+
"401":
|
| 235 |
+
description: Unauthorized
|
| 236 |
+
content: {}
|
| 237 |
+
"403":
|
| 238 |
+
description: Forbidden
|
| 239 |
+
content: {}
|
| 240 |
+
"404":
|
| 241 |
+
description: Not Found
|
| 242 |
+
content: {}
|
| 243 |
+
deprecated: false
|
| 244 |
+
/api/ordered4/{w}/{x}/{z}/{y}:
|
| 245 |
+
get:
|
| 246 |
+
tags:
|
| 247 |
+
- scs-rest
|
| 248 |
+
summary: ordered4
|
| 249 |
+
operationId: ordered4UsingGET
|
| 250 |
+
parameters:
|
| 251 |
+
- name: w
|
| 252 |
+
in: path
|
| 253 |
+
description: w
|
| 254 |
+
required: true
|
| 255 |
+
schema:
|
| 256 |
+
type: string
|
| 257 |
+
- name: x
|
| 258 |
+
in: path
|
| 259 |
+
description: x
|
| 260 |
+
required: true
|
| 261 |
+
schema:
|
| 262 |
+
type: string
|
| 263 |
+
- name: "y"
|
| 264 |
+
in: path
|
| 265 |
+
description: "y"
|
| 266 |
+
required: true
|
| 267 |
+
schema:
|
| 268 |
+
type: string
|
| 269 |
+
- name: z
|
| 270 |
+
in: path
|
| 271 |
+
description: z
|
| 272 |
+
required: true
|
| 273 |
+
schema:
|
| 274 |
+
type: string
|
| 275 |
+
responses:
|
| 276 |
+
"200":
|
| 277 |
+
description: OK
|
| 278 |
+
content:
|
| 279 |
+
'*/*':
|
| 280 |
+
schema:
|
| 281 |
+
type: string
|
| 282 |
+
"401":
|
| 283 |
+
description: Unauthorized
|
| 284 |
+
content: {}
|
| 285 |
+
"403":
|
| 286 |
+
description: Forbidden
|
| 287 |
+
content: {}
|
| 288 |
+
"404":
|
| 289 |
+
description: Not Found
|
| 290 |
+
content: {}
|
| 291 |
+
deprecated: false
|
| 292 |
+
/api/pat/{txt}:
|
| 293 |
+
get:
|
| 294 |
+
tags:
|
| 295 |
+
- scs-rest
|
| 296 |
+
summary: regex
|
| 297 |
+
operationId: regexUsingGET
|
| 298 |
+
parameters:
|
| 299 |
+
- name: txt
|
| 300 |
+
in: path
|
| 301 |
+
description: txt
|
| 302 |
+
required: true
|
| 303 |
+
schema:
|
| 304 |
+
type: string
|
| 305 |
+
responses:
|
| 306 |
+
"200":
|
| 307 |
+
description: OK
|
| 308 |
+
content:
|
| 309 |
+
'*/*':
|
| 310 |
+
schema:
|
| 311 |
+
type: string
|
| 312 |
+
"401":
|
| 313 |
+
description: Unauthorized
|
| 314 |
+
content: {}
|
| 315 |
+
"403":
|
| 316 |
+
description: Forbidden
|
| 317 |
+
content: {}
|
| 318 |
+
"404":
|
| 319 |
+
description: Not Found
|
| 320 |
+
content: {}
|
| 321 |
+
deprecated: false
|
| 322 |
+
/api/pat/{txt}/{pat}:
|
| 323 |
+
get:
|
| 324 |
+
tags:
|
| 325 |
+
- scs-rest
|
| 326 |
+
summary: pat
|
| 327 |
+
operationId: patUsingGET
|
| 328 |
+
parameters:
|
| 329 |
+
- name: pat
|
| 330 |
+
in: path
|
| 331 |
+
description: pat
|
| 332 |
+
required: true
|
| 333 |
+
schema:
|
| 334 |
+
type: string
|
| 335 |
+
- name: txt
|
| 336 |
+
in: path
|
| 337 |
+
description: txt
|
| 338 |
+
required: true
|
| 339 |
+
schema:
|
| 340 |
+
type: string
|
| 341 |
+
responses:
|
| 342 |
+
"200":
|
| 343 |
+
description: OK
|
| 344 |
+
content:
|
| 345 |
+
'*/*':
|
| 346 |
+
schema:
|
| 347 |
+
type: string
|
| 348 |
+
"401":
|
| 349 |
+
description: Unauthorized
|
| 350 |
+
content: {}
|
| 351 |
+
"403":
|
| 352 |
+
description: Forbidden
|
| 353 |
+
content: {}
|
| 354 |
+
"404":
|
| 355 |
+
description: Not Found
|
| 356 |
+
content: {}
|
| 357 |
+
deprecated: false
|
| 358 |
+
/api/text2txt/{word1}/{word2}/{word3}:
|
| 359 |
+
get:
|
| 360 |
+
tags:
|
| 361 |
+
- scs-rest
|
| 362 |
+
summary: text2txt
|
| 363 |
+
operationId: text2txtUsingGET
|
| 364 |
+
parameters:
|
| 365 |
+
- name: word1
|
| 366 |
+
in: path
|
| 367 |
+
description: word1
|
| 368 |
+
required: true
|
| 369 |
+
schema:
|
| 370 |
+
type: string
|
| 371 |
+
- name: word2
|
| 372 |
+
in: path
|
| 373 |
+
description: word2
|
| 374 |
+
required: true
|
| 375 |
+
schema:
|
| 376 |
+
type: string
|
| 377 |
+
- name: word3
|
| 378 |
+
in: path
|
| 379 |
+
description: word3
|
| 380 |
+
required: true
|
| 381 |
+
schema:
|
| 382 |
+
type: string
|
| 383 |
+
responses:
|
| 384 |
+
"200":
|
| 385 |
+
description: OK
|
| 386 |
+
content:
|
| 387 |
+
'*/*':
|
| 388 |
+
schema:
|
| 389 |
+
type: string
|
| 390 |
+
"401":
|
| 391 |
+
description: Unauthorized
|
| 392 |
+
content: {}
|
| 393 |
+
"403":
|
| 394 |
+
description: Forbidden
|
| 395 |
+
content: {}
|
| 396 |
+
"404":
|
| 397 |
+
description: Not Found
|
| 398 |
+
content: {}
|
| 399 |
+
deprecated: false
|
| 400 |
+
/api/title/{sex}/{title}:
|
| 401 |
+
get:
|
| 402 |
+
tags:
|
| 403 |
+
- scs-rest
|
| 404 |
+
summary: title
|
| 405 |
+
operationId: titleUsingGET
|
| 406 |
+
parameters:
|
| 407 |
+
- name: sex
|
| 408 |
+
in: path
|
| 409 |
+
description: sex
|
| 410 |
+
required: true
|
| 411 |
+
schema:
|
| 412 |
+
type: string
|
| 413 |
+
- name: title
|
| 414 |
+
in: path
|
| 415 |
+
description: title
|
| 416 |
+
required: true
|
| 417 |
+
schema:
|
| 418 |
+
type: string
|
| 419 |
+
responses:
|
| 420 |
+
"200":
|
| 421 |
+
description: OK
|
| 422 |
+
content:
|
| 423 |
+
'*/*':
|
| 424 |
+
schema:
|
| 425 |
+
type: string
|
| 426 |
+
"401":
|
| 427 |
+
description: Unauthorized
|
| 428 |
+
content: {}
|
| 429 |
+
"403":
|
| 430 |
+
description: Forbidden
|
| 431 |
+
content: {}
|
| 432 |
+
"404":
|
| 433 |
+
description: Not Found
|
| 434 |
+
content: {}
|
| 435 |
+
deprecated: false
|
| 436 |
+
components: {}
|
| 437 |
+
x-original-swagger-version: "2.0"
|
aratrl-openapi/user.yaml
ADDED
|
@@ -0,0 +1,965 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
version: "1.0"
|
| 11 |
+
servers:
|
| 12 |
+
- url: http://localhost:30115
|
| 13 |
+
tags:
|
| 14 |
+
- name: basic-error-controller
|
| 15 |
+
description: Basic Error Controller
|
| 16 |
+
- name: login-rest-controller
|
| 17 |
+
description: Login Rest Controller
|
| 18 |
+
- name: rbac-rest-controller
|
| 19 |
+
description: RBAC Rest Controller
|
| 20 |
+
- name: register-rest-controller
|
| 21 |
+
description: Register Rest Controller
|
| 22 |
+
- name: user-rest-controller
|
| 23 |
+
description: User Rest Controller
|
| 24 |
+
paths:
|
| 25 |
+
/error:
|
| 26 |
+
get:
|
| 27 |
+
tags:
|
| 28 |
+
- basic-error-controller
|
| 29 |
+
summary: errorHtml
|
| 30 |
+
operationId: errorHtmlUsingGET
|
| 31 |
+
responses:
|
| 32 |
+
"200":
|
| 33 |
+
description: OK
|
| 34 |
+
content:
|
| 35 |
+
text/html:
|
| 36 |
+
schema:
|
| 37 |
+
$ref: '#/components/schemas/ModelAndView'
|
| 38 |
+
"401":
|
| 39 |
+
description: Unauthorized
|
| 40 |
+
content: {}
|
| 41 |
+
"403":
|
| 42 |
+
description: Forbidden
|
| 43 |
+
content: {}
|
| 44 |
+
"404":
|
| 45 |
+
description: Not Found
|
| 46 |
+
content: {}
|
| 47 |
+
deprecated: false
|
| 48 |
+
put:
|
| 49 |
+
tags:
|
| 50 |
+
- basic-error-controller
|
| 51 |
+
summary: errorHtml
|
| 52 |
+
operationId: errorHtmlUsingPUT
|
| 53 |
+
responses:
|
| 54 |
+
"200":
|
| 55 |
+
description: OK
|
| 56 |
+
content:
|
| 57 |
+
text/html:
|
| 58 |
+
schema:
|
| 59 |
+
$ref: '#/components/schemas/ModelAndView'
|
| 60 |
+
"201":
|
| 61 |
+
description: Created
|
| 62 |
+
content: {}
|
| 63 |
+
"401":
|
| 64 |
+
description: Unauthorized
|
| 65 |
+
content: {}
|
| 66 |
+
"403":
|
| 67 |
+
description: Forbidden
|
| 68 |
+
content: {}
|
| 69 |
+
"404":
|
| 70 |
+
description: Not Found
|
| 71 |
+
content: {}
|
| 72 |
+
deprecated: false
|
| 73 |
+
post:
|
| 74 |
+
tags:
|
| 75 |
+
- basic-error-controller
|
| 76 |
+
summary: errorHtml
|
| 77 |
+
operationId: errorHtmlUsingPOST
|
| 78 |
+
responses:
|
| 79 |
+
"200":
|
| 80 |
+
description: OK
|
| 81 |
+
content:
|
| 82 |
+
text/html:
|
| 83 |
+
schema:
|
| 84 |
+
$ref: '#/components/schemas/ModelAndView'
|
| 85 |
+
"201":
|
| 86 |
+
description: Created
|
| 87 |
+
content: {}
|
| 88 |
+
"401":
|
| 89 |
+
description: Unauthorized
|
| 90 |
+
content: {}
|
| 91 |
+
"403":
|
| 92 |
+
description: Forbidden
|
| 93 |
+
content: {}
|
| 94 |
+
"404":
|
| 95 |
+
description: Not Found
|
| 96 |
+
content: {}
|
| 97 |
+
deprecated: false
|
| 98 |
+
delete:
|
| 99 |
+
tags:
|
| 100 |
+
- basic-error-controller
|
| 101 |
+
summary: errorHtml
|
| 102 |
+
operationId: errorHtmlUsingDELETE
|
| 103 |
+
responses:
|
| 104 |
+
"200":
|
| 105 |
+
description: OK
|
| 106 |
+
content:
|
| 107 |
+
text/html:
|
| 108 |
+
schema:
|
| 109 |
+
$ref: '#/components/schemas/ModelAndView'
|
| 110 |
+
"204":
|
| 111 |
+
description: No Content
|
| 112 |
+
content: {}
|
| 113 |
+
"401":
|
| 114 |
+
description: Unauthorized
|
| 115 |
+
content: {}
|
| 116 |
+
"403":
|
| 117 |
+
description: Forbidden
|
| 118 |
+
content: {}
|
| 119 |
+
deprecated: false
|
| 120 |
+
head:
|
| 121 |
+
tags:
|
| 122 |
+
- basic-error-controller
|
| 123 |
+
summary: errorHtml
|
| 124 |
+
operationId: errorHtmlUsingHEAD
|
| 125 |
+
responses:
|
| 126 |
+
"200":
|
| 127 |
+
description: OK
|
| 128 |
+
content:
|
| 129 |
+
text/html:
|
| 130 |
+
schema:
|
| 131 |
+
$ref: '#/components/schemas/ModelAndView'
|
| 132 |
+
"204":
|
| 133 |
+
description: No Content
|
| 134 |
+
content: {}
|
| 135 |
+
"401":
|
| 136 |
+
description: Unauthorized
|
| 137 |
+
content: {}
|
| 138 |
+
"403":
|
| 139 |
+
description: Forbidden
|
| 140 |
+
content: {}
|
| 141 |
+
deprecated: false
|
| 142 |
+
patch:
|
| 143 |
+
tags:
|
| 144 |
+
- basic-error-controller
|
| 145 |
+
summary: errorHtml
|
| 146 |
+
operationId: errorHtmlUsingPATCH
|
| 147 |
+
responses:
|
| 148 |
+
"200":
|
| 149 |
+
description: OK
|
| 150 |
+
content:
|
| 151 |
+
text/html:
|
| 152 |
+
schema:
|
| 153 |
+
$ref: '#/components/schemas/ModelAndView'
|
| 154 |
+
"204":
|
| 155 |
+
description: No Content
|
| 156 |
+
content: {}
|
| 157 |
+
"401":
|
| 158 |
+
description: Unauthorized
|
| 159 |
+
content: {}
|
| 160 |
+
"403":
|
| 161 |
+
description: Forbidden
|
| 162 |
+
content: {}
|
| 163 |
+
deprecated: false
|
| 164 |
+
/login:
|
| 165 |
+
post:
|
| 166 |
+
tags:
|
| 167 |
+
- login-rest-controller
|
| 168 |
+
summary: login
|
| 169 |
+
operationId: loginUsingPOST
|
| 170 |
+
requestBody:
|
| 171 |
+
description: loginRequestDTO
|
| 172 |
+
content:
|
| 173 |
+
application/json:
|
| 174 |
+
schema:
|
| 175 |
+
$ref: '#/components/schemas/LoginRequestDTO'
|
| 176 |
+
required: true
|
| 177 |
+
responses:
|
| 178 |
+
"200":
|
| 179 |
+
description: OK
|
| 180 |
+
content:
|
| 181 |
+
'*/*':
|
| 182 |
+
schema:
|
| 183 |
+
$ref: '#/components/schemas/UserDTO'
|
| 184 |
+
"201":
|
| 185 |
+
description: Created
|
| 186 |
+
content: {}
|
| 187 |
+
"401":
|
| 188 |
+
description: Unauthorized
|
| 189 |
+
content: {}
|
| 190 |
+
"403":
|
| 191 |
+
description: Forbidden
|
| 192 |
+
content: {}
|
| 193 |
+
"404":
|
| 194 |
+
description: Not Found
|
| 195 |
+
content: {}
|
| 196 |
+
deprecated: false
|
| 197 |
+
x-codegen-request-body-name: loginRequestDTO
|
| 198 |
+
/users:
|
| 199 |
+
get:
|
| 200 |
+
tags:
|
| 201 |
+
- user-rest-controller
|
| 202 |
+
summary: getUserPresentationList
|
| 203 |
+
operationId: getUserPresentationListUsingGET
|
| 204 |
+
responses:
|
| 205 |
+
"200":
|
| 206 |
+
description: OK
|
| 207 |
+
content:
|
| 208 |
+
'*/*':
|
| 209 |
+
schema:
|
| 210 |
+
$ref: '#/components/schemas/UserListDTO'
|
| 211 |
+
"401":
|
| 212 |
+
description: Unauthorized
|
| 213 |
+
content: {}
|
| 214 |
+
"403":
|
| 215 |
+
description: Forbidden
|
| 216 |
+
content: {}
|
| 217 |
+
"404":
|
| 218 |
+
description: Not Found
|
| 219 |
+
content: {}
|
| 220 |
+
deprecated: false
|
| 221 |
+
post:
|
| 222 |
+
tags:
|
| 223 |
+
- user-rest-controller
|
| 224 |
+
summary: createUser
|
| 225 |
+
operationId: createUserUsingPOST
|
| 226 |
+
requestBody:
|
| 227 |
+
description: createOrUpdateUserDTO
|
| 228 |
+
content:
|
| 229 |
+
application/json:
|
| 230 |
+
schema:
|
| 231 |
+
$ref: '#/components/schemas/CreateOrUpdateUserDTO'
|
| 232 |
+
required: true
|
| 233 |
+
responses:
|
| 234 |
+
"200":
|
| 235 |
+
description: OK
|
| 236 |
+
content:
|
| 237 |
+
'*/*':
|
| 238 |
+
schema:
|
| 239 |
+
$ref: '#/components/schemas/UserDTO'
|
| 240 |
+
"201":
|
| 241 |
+
description: Created
|
| 242 |
+
content: {}
|
| 243 |
+
"401":
|
| 244 |
+
description: Unauthorized
|
| 245 |
+
content: {}
|
| 246 |
+
"403":
|
| 247 |
+
description: Forbidden
|
| 248 |
+
content: {}
|
| 249 |
+
"404":
|
| 250 |
+
description: Not Found
|
| 251 |
+
content: {}
|
| 252 |
+
deprecated: false
|
| 253 |
+
x-codegen-request-body-name: createOrUpdateUserDTO
|
| 254 |
+
/users/rbac/permissions:
|
| 255 |
+
get:
|
| 256 |
+
tags:
|
| 257 |
+
- rbac-rest-controller
|
| 258 |
+
summary: getPermissionPresentationList
|
| 259 |
+
operationId: getPermissionPresentationListUsingGET
|
| 260 |
+
responses:
|
| 261 |
+
"200":
|
| 262 |
+
description: OK
|
| 263 |
+
content:
|
| 264 |
+
'*/*':
|
| 265 |
+
schema:
|
| 266 |
+
type: array
|
| 267 |
+
items:
|
| 268 |
+
$ref: '#/components/schemas/PermissionDTO'
|
| 269 |
+
"401":
|
| 270 |
+
description: Unauthorized
|
| 271 |
+
content: {}
|
| 272 |
+
"403":
|
| 273 |
+
description: Forbidden
|
| 274 |
+
content: {}
|
| 275 |
+
"404":
|
| 276 |
+
description: Not Found
|
| 277 |
+
content: {}
|
| 278 |
+
deprecated: false
|
| 279 |
+
/users/rbac/roles:
|
| 280 |
+
get:
|
| 281 |
+
tags:
|
| 282 |
+
- rbac-rest-controller
|
| 283 |
+
summary: getRolePresentationList
|
| 284 |
+
operationId: getRolePresentationListUsingGET
|
| 285 |
+
responses:
|
| 286 |
+
"200":
|
| 287 |
+
description: OK
|
| 288 |
+
content:
|
| 289 |
+
'*/*':
|
| 290 |
+
schema:
|
| 291 |
+
type: array
|
| 292 |
+
items:
|
| 293 |
+
$ref: '#/components/schemas/RoleDTO'
|
| 294 |
+
"401":
|
| 295 |
+
description: Unauthorized
|
| 296 |
+
content: {}
|
| 297 |
+
"403":
|
| 298 |
+
description: Forbidden
|
| 299 |
+
content: {}
|
| 300 |
+
"404":
|
| 301 |
+
description: Not Found
|
| 302 |
+
content: {}
|
| 303 |
+
deprecated: false
|
| 304 |
+
post:
|
| 305 |
+
tags:
|
| 306 |
+
- rbac-rest-controller
|
| 307 |
+
summary: createRole
|
| 308 |
+
operationId: createRoleUsingPOST
|
| 309 |
+
requestBody:
|
| 310 |
+
description: role
|
| 311 |
+
content:
|
| 312 |
+
application/json:
|
| 313 |
+
schema:
|
| 314 |
+
type: string
|
| 315 |
+
required: true
|
| 316 |
+
responses:
|
| 317 |
+
"200":
|
| 318 |
+
description: OK
|
| 319 |
+
content:
|
| 320 |
+
'*/*':
|
| 321 |
+
schema:
|
| 322 |
+
$ref: '#/components/schemas/RoleDTO'
|
| 323 |
+
"201":
|
| 324 |
+
description: Created
|
| 325 |
+
content: {}
|
| 326 |
+
"401":
|
| 327 |
+
description: Unauthorized
|
| 328 |
+
content: {}
|
| 329 |
+
"403":
|
| 330 |
+
description: Forbidden
|
| 331 |
+
content: {}
|
| 332 |
+
"404":
|
| 333 |
+
description: Not Found
|
| 334 |
+
content: {}
|
| 335 |
+
deprecated: false
|
| 336 |
+
x-codegen-request-body-name: role
|
| 337 |
+
/users/rbac/roles/{roleId}:
|
| 338 |
+
get:
|
| 339 |
+
tags:
|
| 340 |
+
- rbac-rest-controller
|
| 341 |
+
summary: getRoleById
|
| 342 |
+
operationId: getRoleByIdUsingGET
|
| 343 |
+
parameters:
|
| 344 |
+
- name: roleId
|
| 345 |
+
in: path
|
| 346 |
+
description: roleId
|
| 347 |
+
required: true
|
| 348 |
+
schema:
|
| 349 |
+
type: integer
|
| 350 |
+
format: int64
|
| 351 |
+
responses:
|
| 352 |
+
"200":
|
| 353 |
+
description: OK
|
| 354 |
+
content:
|
| 355 |
+
'*/*':
|
| 356 |
+
schema:
|
| 357 |
+
$ref: '#/components/schemas/RoleDTO'
|
| 358 |
+
"401":
|
| 359 |
+
description: Unauthorized
|
| 360 |
+
content: {}
|
| 361 |
+
"403":
|
| 362 |
+
description: Forbidden
|
| 363 |
+
content: {}
|
| 364 |
+
"404":
|
| 365 |
+
description: Not Found
|
| 366 |
+
content: {}
|
| 367 |
+
deprecated: false
|
| 368 |
+
delete:
|
| 369 |
+
tags:
|
| 370 |
+
- rbac-rest-controller
|
| 371 |
+
summary: deleteRoleById
|
| 372 |
+
operationId: deleteRoleByIdUsingDELETE
|
| 373 |
+
parameters:
|
| 374 |
+
- name: roleId
|
| 375 |
+
in: path
|
| 376 |
+
description: roleId
|
| 377 |
+
required: true
|
| 378 |
+
schema:
|
| 379 |
+
type: integer
|
| 380 |
+
format: int64
|
| 381 |
+
responses:
|
| 382 |
+
"200":
|
| 383 |
+
description: OK
|
| 384 |
+
content:
|
| 385 |
+
'*/*':
|
| 386 |
+
schema:
|
| 387 |
+
type: object
|
| 388 |
+
"204":
|
| 389 |
+
description: No Content
|
| 390 |
+
content: {}
|
| 391 |
+
"401":
|
| 392 |
+
description: Unauthorized
|
| 393 |
+
content: {}
|
| 394 |
+
"403":
|
| 395 |
+
description: Forbidden
|
| 396 |
+
content: {}
|
| 397 |
+
deprecated: false
|
| 398 |
+
/users/rbac/roles/{roleId}/permissions/{permissionKey}:
|
| 399 |
+
post:
|
| 400 |
+
tags:
|
| 401 |
+
- rbac-rest-controller
|
| 402 |
+
summary: addPermissionOnRole
|
| 403 |
+
operationId: addPermissionOnRoleUsingPOST
|
| 404 |
+
parameters:
|
| 405 |
+
- name: permissionKey
|
| 406 |
+
in: path
|
| 407 |
+
description: permissionKey
|
| 408 |
+
required: true
|
| 409 |
+
schema:
|
| 410 |
+
type: string
|
| 411 |
+
- name: roleId
|
| 412 |
+
in: path
|
| 413 |
+
description: roleId
|
| 414 |
+
required: true
|
| 415 |
+
schema:
|
| 416 |
+
type: integer
|
| 417 |
+
format: int64
|
| 418 |
+
responses:
|
| 419 |
+
"200":
|
| 420 |
+
description: OK
|
| 421 |
+
content:
|
| 422 |
+
'*/*':
|
| 423 |
+
schema:
|
| 424 |
+
$ref: '#/components/schemas/RoleDTO'
|
| 425 |
+
"201":
|
| 426 |
+
description: Created
|
| 427 |
+
content: {}
|
| 428 |
+
"401":
|
| 429 |
+
description: Unauthorized
|
| 430 |
+
content: {}
|
| 431 |
+
"403":
|
| 432 |
+
description: Forbidden
|
| 433 |
+
content: {}
|
| 434 |
+
"404":
|
| 435 |
+
description: Not Found
|
| 436 |
+
content: {}
|
| 437 |
+
deprecated: false
|
| 438 |
+
delete:
|
| 439 |
+
tags:
|
| 440 |
+
- rbac-rest-controller
|
| 441 |
+
summary: removePermissionOnRole
|
| 442 |
+
operationId: removePermissionOnRoleUsingDELETE
|
| 443 |
+
parameters:
|
| 444 |
+
- name: permissionKey
|
| 445 |
+
in: path
|
| 446 |
+
description: permissionKey
|
| 447 |
+
required: true
|
| 448 |
+
schema:
|
| 449 |
+
type: string
|
| 450 |
+
- name: roleId
|
| 451 |
+
in: path
|
| 452 |
+
description: roleId
|
| 453 |
+
required: true
|
| 454 |
+
schema:
|
| 455 |
+
type: integer
|
| 456 |
+
format: int64
|
| 457 |
+
responses:
|
| 458 |
+
"200":
|
| 459 |
+
description: OK
|
| 460 |
+
content:
|
| 461 |
+
'*/*':
|
| 462 |
+
schema:
|
| 463 |
+
$ref: '#/components/schemas/RoleDTO'
|
| 464 |
+
"204":
|
| 465 |
+
description: No Content
|
| 466 |
+
content: {}
|
| 467 |
+
"401":
|
| 468 |
+
description: Unauthorized
|
| 469 |
+
content: {}
|
| 470 |
+
"403":
|
| 471 |
+
description: Forbidden
|
| 472 |
+
content: {}
|
| 473 |
+
deprecated: false
|
| 474 |
+
/users/register:
|
| 475 |
+
post:
|
| 476 |
+
tags:
|
| 477 |
+
- register-rest-controller
|
| 478 |
+
summary: registerNewUserAccount
|
| 479 |
+
operationId: registerNewUserAccountUsingPOST
|
| 480 |
+
requestBody:
|
| 481 |
+
description: registerUserAccountDTO
|
| 482 |
+
content:
|
| 483 |
+
application/json:
|
| 484 |
+
schema:
|
| 485 |
+
$ref: '#/components/schemas/RegisterUserAccountDTO'
|
| 486 |
+
required: true
|
| 487 |
+
responses:
|
| 488 |
+
"200":
|
| 489 |
+
description: OK
|
| 490 |
+
content:
|
| 491 |
+
'*/*':
|
| 492 |
+
schema:
|
| 493 |
+
$ref: '#/components/schemas/UserDTO'
|
| 494 |
+
"201":
|
| 495 |
+
description: Created
|
| 496 |
+
content: {}
|
| 497 |
+
"401":
|
| 498 |
+
description: Unauthorized
|
| 499 |
+
content: {}
|
| 500 |
+
"403":
|
| 501 |
+
description: Forbidden
|
| 502 |
+
content: {}
|
| 503 |
+
"404":
|
| 504 |
+
description: Not Found
|
| 505 |
+
content: {}
|
| 506 |
+
deprecated: false
|
| 507 |
+
x-codegen-request-body-name: registerUserAccountDTO
|
| 508 |
+
/users/{id}:
|
| 509 |
+
get:
|
| 510 |
+
tags:
|
| 511 |
+
- user-rest-controller
|
| 512 |
+
summary: getUserById
|
| 513 |
+
operationId: getUserByIdUsingGET
|
| 514 |
+
parameters:
|
| 515 |
+
- name: id
|
| 516 |
+
in: path
|
| 517 |
+
description: id
|
| 518 |
+
required: true
|
| 519 |
+
schema:
|
| 520 |
+
type: integer
|
| 521 |
+
format: int64
|
| 522 |
+
responses:
|
| 523 |
+
"200":
|
| 524 |
+
description: OK
|
| 525 |
+
content:
|
| 526 |
+
'*/*':
|
| 527 |
+
schema:
|
| 528 |
+
$ref: '#/components/schemas/UserDTO'
|
| 529 |
+
"401":
|
| 530 |
+
description: Unauthorized
|
| 531 |
+
content: {}
|
| 532 |
+
"403":
|
| 533 |
+
description: Forbidden
|
| 534 |
+
content: {}
|
| 535 |
+
"404":
|
| 536 |
+
description: Not Found
|
| 537 |
+
content: {}
|
| 538 |
+
deprecated: false
|
| 539 |
+
put:
|
| 540 |
+
tags:
|
| 541 |
+
- user-rest-controller
|
| 542 |
+
summary: updateUser
|
| 543 |
+
operationId: updateUserUsingPUT
|
| 544 |
+
parameters:
|
| 545 |
+
- name: id
|
| 546 |
+
in: path
|
| 547 |
+
description: id
|
| 548 |
+
required: true
|
| 549 |
+
schema:
|
| 550 |
+
type: integer
|
| 551 |
+
format: int64
|
| 552 |
+
requestBody:
|
| 553 |
+
description: updateUserDTO
|
| 554 |
+
content:
|
| 555 |
+
application/json:
|
| 556 |
+
schema:
|
| 557 |
+
$ref: '#/components/schemas/CreateOrUpdateUserDTO'
|
| 558 |
+
required: true
|
| 559 |
+
responses:
|
| 560 |
+
"200":
|
| 561 |
+
description: OK
|
| 562 |
+
content:
|
| 563 |
+
'*/*':
|
| 564 |
+
schema:
|
| 565 |
+
$ref: '#/components/schemas/UserDTO'
|
| 566 |
+
"201":
|
| 567 |
+
description: Created
|
| 568 |
+
content: {}
|
| 569 |
+
"401":
|
| 570 |
+
description: Unauthorized
|
| 571 |
+
content: {}
|
| 572 |
+
"403":
|
| 573 |
+
description: Forbidden
|
| 574 |
+
content: {}
|
| 575 |
+
"404":
|
| 576 |
+
description: Not Found
|
| 577 |
+
content: {}
|
| 578 |
+
deprecated: false
|
| 579 |
+
x-codegen-request-body-name: updateUserDTO
|
| 580 |
+
delete:
|
| 581 |
+
tags:
|
| 582 |
+
- user-rest-controller
|
| 583 |
+
summary: deleteById
|
| 584 |
+
operationId: deleteByIdUsingDELETE
|
| 585 |
+
parameters:
|
| 586 |
+
- name: id
|
| 587 |
+
in: path
|
| 588 |
+
description: id
|
| 589 |
+
required: true
|
| 590 |
+
schema:
|
| 591 |
+
type: integer
|
| 592 |
+
format: int64
|
| 593 |
+
responses:
|
| 594 |
+
"200":
|
| 595 |
+
description: OK
|
| 596 |
+
content:
|
| 597 |
+
'*/*':
|
| 598 |
+
schema:
|
| 599 |
+
type: object
|
| 600 |
+
"204":
|
| 601 |
+
description: No Content
|
| 602 |
+
content: {}
|
| 603 |
+
"401":
|
| 604 |
+
description: Unauthorized
|
| 605 |
+
content: {}
|
| 606 |
+
"403":
|
| 607 |
+
description: Forbidden
|
| 608 |
+
content: {}
|
| 609 |
+
deprecated: false
|
| 610 |
+
/users/{id}/roles/{roleId}:
|
| 611 |
+
post:
|
| 612 |
+
tags:
|
| 613 |
+
- user-rest-controller
|
| 614 |
+
summary: addRole
|
| 615 |
+
operationId: addRoleUsingPOST
|
| 616 |
+
parameters:
|
| 617 |
+
- name: id
|
| 618 |
+
in: path
|
| 619 |
+
description: id
|
| 620 |
+
required: true
|
| 621 |
+
schema:
|
| 622 |
+
type: integer
|
| 623 |
+
format: int64
|
| 624 |
+
- name: roleId
|
| 625 |
+
in: path
|
| 626 |
+
description: roleId
|
| 627 |
+
required: true
|
| 628 |
+
schema:
|
| 629 |
+
type: integer
|
| 630 |
+
format: int64
|
| 631 |
+
responses:
|
| 632 |
+
"200":
|
| 633 |
+
description: OK
|
| 634 |
+
content:
|
| 635 |
+
'*/*':
|
| 636 |
+
schema:
|
| 637 |
+
$ref: '#/components/schemas/UserDTO'
|
| 638 |
+
"201":
|
| 639 |
+
description: Created
|
| 640 |
+
content: {}
|
| 641 |
+
"401":
|
| 642 |
+
description: Unauthorized
|
| 643 |
+
content: {}
|
| 644 |
+
"403":
|
| 645 |
+
description: Forbidden
|
| 646 |
+
content: {}
|
| 647 |
+
"404":
|
| 648 |
+
description: Not Found
|
| 649 |
+
content: {}
|
| 650 |
+
deprecated: false
|
| 651 |
+
delete:
|
| 652 |
+
tags:
|
| 653 |
+
- user-rest-controller
|
| 654 |
+
summary: removeRole
|
| 655 |
+
operationId: removeRoleUsingDELETE
|
| 656 |
+
parameters:
|
| 657 |
+
- name: id
|
| 658 |
+
in: path
|
| 659 |
+
description: id
|
| 660 |
+
required: true
|
| 661 |
+
schema:
|
| 662 |
+
type: integer
|
| 663 |
+
format: int64
|
| 664 |
+
- name: roleId
|
| 665 |
+
in: path
|
| 666 |
+
description: roleId
|
| 667 |
+
required: true
|
| 668 |
+
schema:
|
| 669 |
+
type: integer
|
| 670 |
+
format: int64
|
| 671 |
+
responses:
|
| 672 |
+
"200":
|
| 673 |
+
description: OK
|
| 674 |
+
content:
|
| 675 |
+
'*/*':
|
| 676 |
+
schema:
|
| 677 |
+
$ref: '#/components/schemas/UserDTO'
|
| 678 |
+
"204":
|
| 679 |
+
description: No Content
|
| 680 |
+
content: {}
|
| 681 |
+
"401":
|
| 682 |
+
description: Unauthorized
|
| 683 |
+
content: {}
|
| 684 |
+
"403":
|
| 685 |
+
description: Forbidden
|
| 686 |
+
content: {}
|
| 687 |
+
deprecated: false
|
| 688 |
+
components:
|
| 689 |
+
schemas:
|
| 690 |
+
AddressDTO:
|
| 691 |
+
title: AddressDTO
|
| 692 |
+
type: object
|
| 693 |
+
properties:
|
| 694 |
+
address:
|
| 695 |
+
type: string
|
| 696 |
+
address2:
|
| 697 |
+
type: string
|
| 698 |
+
city:
|
| 699 |
+
type: string
|
| 700 |
+
country:
|
| 701 |
+
type: string
|
| 702 |
+
zipCode:
|
| 703 |
+
type: string
|
| 704 |
+
ContactDTO:
|
| 705 |
+
title: ContactDTO
|
| 706 |
+
type: object
|
| 707 |
+
properties:
|
| 708 |
+
contactNote:
|
| 709 |
+
type: string
|
| 710 |
+
email:
|
| 711 |
+
type: string
|
| 712 |
+
facebook:
|
| 713 |
+
type: string
|
| 714 |
+
linkedin:
|
| 715 |
+
type: string
|
| 716 |
+
phone:
|
| 717 |
+
type: string
|
| 718 |
+
skype:
|
| 719 |
+
type: string
|
| 720 |
+
website:
|
| 721 |
+
type: string
|
| 722 |
+
CreateOrUpdateUserDTO:
|
| 723 |
+
title: CreateOrUpdateUserDTO
|
| 724 |
+
type: object
|
| 725 |
+
properties:
|
| 726 |
+
address:
|
| 727 |
+
type: string
|
| 728 |
+
address2:
|
| 729 |
+
type: string
|
| 730 |
+
birthDate:
|
| 731 |
+
type: string
|
| 732 |
+
format: date
|
| 733 |
+
city:
|
| 734 |
+
type: string
|
| 735 |
+
contactNote:
|
| 736 |
+
type: string
|
| 737 |
+
country:
|
| 738 |
+
type: string
|
| 739 |
+
email:
|
| 740 |
+
type: string
|
| 741 |
+
enabled:
|
| 742 |
+
type: boolean
|
| 743 |
+
facebook:
|
| 744 |
+
type: string
|
| 745 |
+
gender:
|
| 746 |
+
type: string
|
| 747 |
+
linkedin:
|
| 748 |
+
type: string
|
| 749 |
+
mobile:
|
| 750 |
+
type: string
|
| 751 |
+
name:
|
| 752 |
+
type: string
|
| 753 |
+
note:
|
| 754 |
+
type: string
|
| 755 |
+
password:
|
| 756 |
+
type: string
|
| 757 |
+
secured:
|
| 758 |
+
type: boolean
|
| 759 |
+
skype:
|
| 760 |
+
type: string
|
| 761 |
+
surname:
|
| 762 |
+
type: string
|
| 763 |
+
username:
|
| 764 |
+
type: string
|
| 765 |
+
website:
|
| 766 |
+
type: string
|
| 767 |
+
zipCode:
|
| 768 |
+
type: string
|
| 769 |
+
LoginRequestDTO:
|
| 770 |
+
title: LoginRequestDTO
|
| 771 |
+
type: object
|
| 772 |
+
properties:
|
| 773 |
+
password:
|
| 774 |
+
type: string
|
| 775 |
+
username:
|
| 776 |
+
type: string
|
| 777 |
+
ModelAndView:
|
| 778 |
+
title: ModelAndView
|
| 779 |
+
type: object
|
| 780 |
+
properties:
|
| 781 |
+
empty:
|
| 782 |
+
type: boolean
|
| 783 |
+
model:
|
| 784 |
+
type: object
|
| 785 |
+
properties: {}
|
| 786 |
+
modelMap:
|
| 787 |
+
type: object
|
| 788 |
+
additionalProperties:
|
| 789 |
+
type: object
|
| 790 |
+
properties: {}
|
| 791 |
+
reference:
|
| 792 |
+
type: boolean
|
| 793 |
+
status:
|
| 794 |
+
type: string
|
| 795 |
+
enum:
|
| 796 |
+
- 100 CONTINUE
|
| 797 |
+
- 101 SWITCHING_PROTOCOLS
|
| 798 |
+
- 102 PROCESSING
|
| 799 |
+
- 103 CHECKPOINT
|
| 800 |
+
- 200 OK
|
| 801 |
+
- 201 CREATED
|
| 802 |
+
- 202 ACCEPTED
|
| 803 |
+
- 203 NON_AUTHORITATIVE_INFORMATION
|
| 804 |
+
- 204 NO_CONTENT
|
| 805 |
+
- 205 RESET_CONTENT
|
| 806 |
+
- 206 PARTIAL_CONTENT
|
| 807 |
+
- 207 MULTI_STATUS
|
| 808 |
+
- 208 ALREADY_REPORTED
|
| 809 |
+
- 226 IM_USED
|
| 810 |
+
- 300 MULTIPLE_CHOICES
|
| 811 |
+
- 301 MOVED_PERMANENTLY
|
| 812 |
+
- 302 FOUND
|
| 813 |
+
- 302 MOVED_TEMPORARILY
|
| 814 |
+
- 303 SEE_OTHER
|
| 815 |
+
- 304 NOT_MODIFIED
|
| 816 |
+
- 305 USE_PROXY
|
| 817 |
+
- 307 TEMPORARY_REDIRECT
|
| 818 |
+
- 308 PERMANENT_REDIRECT
|
| 819 |
+
- 400 BAD_REQUEST
|
| 820 |
+
- 401 UNAUTHORIZED
|
| 821 |
+
- 402 PAYMENT_REQUIRED
|
| 822 |
+
- 403 FORBIDDEN
|
| 823 |
+
- 404 NOT_FOUND
|
| 824 |
+
- 405 METHOD_NOT_ALLOWED
|
| 825 |
+
- 406 NOT_ACCEPTABLE
|
| 826 |
+
- 407 PROXY_AUTHENTICATION_REQUIRED
|
| 827 |
+
- 408 REQUEST_TIMEOUT
|
| 828 |
+
- 409 CONFLICT
|
| 829 |
+
- 410 GONE
|
| 830 |
+
- 411 LENGTH_REQUIRED
|
| 831 |
+
- 412 PRECONDITION_FAILED
|
| 832 |
+
- 413 PAYLOAD_TOO_LARGE
|
| 833 |
+
- 413 REQUEST_ENTITY_TOO_LARGE
|
| 834 |
+
- 414 URI_TOO_LONG
|
| 835 |
+
- 414 REQUEST_URI_TOO_LONG
|
| 836 |
+
- 415 UNSUPPORTED_MEDIA_TYPE
|
| 837 |
+
- 416 REQUESTED_RANGE_NOT_SATISFIABLE
|
| 838 |
+
- 417 EXPECTATION_FAILED
|
| 839 |
+
- 418 I_AM_A_TEAPOT
|
| 840 |
+
- 419 INSUFFICIENT_SPACE_ON_RESOURCE
|
| 841 |
+
- 420 METHOD_FAILURE
|
| 842 |
+
- 421 DESTINATION_LOCKED
|
| 843 |
+
- 422 UNPROCESSABLE_ENTITY
|
| 844 |
+
- 423 LOCKED
|
| 845 |
+
- 424 FAILED_DEPENDENCY
|
| 846 |
+
- 425 TOO_EARLY
|
| 847 |
+
- 426 UPGRADE_REQUIRED
|
| 848 |
+
- 428 PRECONDITION_REQUIRED
|
| 849 |
+
- 429 TOO_MANY_REQUESTS
|
| 850 |
+
- 431 REQUEST_HEADER_FIELDS_TOO_LARGE
|
| 851 |
+
- 451 UNAVAILABLE_FOR_LEGAL_REASONS
|
| 852 |
+
- 500 INTERNAL_SERVER_ERROR
|
| 853 |
+
- 501 NOT_IMPLEMENTED
|
| 854 |
+
- 502 BAD_GATEWAY
|
| 855 |
+
- 503 SERVICE_UNAVAILABLE
|
| 856 |
+
- 504 GATEWAY_TIMEOUT
|
| 857 |
+
- 505 HTTP_VERSION_NOT_SUPPORTED
|
| 858 |
+
- 506 VARIANT_ALSO_NEGOTIATES
|
| 859 |
+
- 507 INSUFFICIENT_STORAGE
|
| 860 |
+
- 508 LOOP_DETECTED
|
| 861 |
+
- 509 BANDWIDTH_LIMIT_EXCEEDED
|
| 862 |
+
- 510 NOT_EXTENDED
|
| 863 |
+
- 511 NETWORK_AUTHENTICATION_REQUIRED
|
| 864 |
+
view:
|
| 865 |
+
$ref: '#/components/schemas/View'
|
| 866 |
+
viewName:
|
| 867 |
+
type: string
|
| 868 |
+
PermissionDTO:
|
| 869 |
+
title: PermissionDTO
|
| 870 |
+
type: object
|
| 871 |
+
properties:
|
| 872 |
+
id:
|
| 873 |
+
type: integer
|
| 874 |
+
format: int64
|
| 875 |
+
permission:
|
| 876 |
+
type: string
|
| 877 |
+
RegisterUserAccountDTO:
|
| 878 |
+
title: RegisterUserAccountDTO
|
| 879 |
+
type: object
|
| 880 |
+
properties:
|
| 881 |
+
email:
|
| 882 |
+
type: string
|
| 883 |
+
gender:
|
| 884 |
+
type: string
|
| 885 |
+
name:
|
| 886 |
+
type: string
|
| 887 |
+
password:
|
| 888 |
+
type: string
|
| 889 |
+
surname:
|
| 890 |
+
type: string
|
| 891 |
+
username:
|
| 892 |
+
type: string
|
| 893 |
+
RoleDTO:
|
| 894 |
+
title: RoleDTO
|
| 895 |
+
type: object
|
| 896 |
+
properties:
|
| 897 |
+
id:
|
| 898 |
+
type: integer
|
| 899 |
+
format: int64
|
| 900 |
+
permissions:
|
| 901 |
+
type: array
|
| 902 |
+
items:
|
| 903 |
+
$ref: '#/components/schemas/PermissionDTO'
|
| 904 |
+
role:
|
| 905 |
+
type: string
|
| 906 |
+
UserDTO:
|
| 907 |
+
title: UserDTO
|
| 908 |
+
type: object
|
| 909 |
+
properties:
|
| 910 |
+
addressDTO:
|
| 911 |
+
$ref: '#/components/schemas/AddressDTO'
|
| 912 |
+
birthDate:
|
| 913 |
+
type: string
|
| 914 |
+
format: date
|
| 915 |
+
contactDTO:
|
| 916 |
+
$ref: '#/components/schemas/ContactDTO'
|
| 917 |
+
creationDt:
|
| 918 |
+
type: string
|
| 919 |
+
format: date-time
|
| 920 |
+
enabled:
|
| 921 |
+
type: boolean
|
| 922 |
+
gender:
|
| 923 |
+
type: string
|
| 924 |
+
id:
|
| 925 |
+
type: integer
|
| 926 |
+
format: int64
|
| 927 |
+
loginDt:
|
| 928 |
+
type: string
|
| 929 |
+
format: date-time
|
| 930 |
+
name:
|
| 931 |
+
type: string
|
| 932 |
+
note:
|
| 933 |
+
type: string
|
| 934 |
+
permissions:
|
| 935 |
+
type: array
|
| 936 |
+
items:
|
| 937 |
+
type: string
|
| 938 |
+
roles:
|
| 939 |
+
type: array
|
| 940 |
+
items:
|
| 941 |
+
type: string
|
| 942 |
+
secured:
|
| 943 |
+
type: boolean
|
| 944 |
+
surname:
|
| 945 |
+
type: string
|
| 946 |
+
updatedDt:
|
| 947 |
+
type: string
|
| 948 |
+
format: date-time
|
| 949 |
+
username:
|
| 950 |
+
type: string
|
| 951 |
+
UserListDTO:
|
| 952 |
+
title: UserListDTO
|
| 953 |
+
type: object
|
| 954 |
+
properties:
|
| 955 |
+
userList:
|
| 956 |
+
type: array
|
| 957 |
+
items:
|
| 958 |
+
$ref: '#/components/schemas/UserDTO'
|
| 959 |
+
View:
|
| 960 |
+
title: View
|
| 961 |
+
type: object
|
| 962 |
+
properties:
|
| 963 |
+
contentType:
|
| 964 |
+
type: string
|
| 965 |
+
x-original-swagger-version: "2.0"
|
aratrl-service/jdk11/market/.gitignore
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
!.idea
|
| 2 |
+
.idea/*
|
| 3 |
+
!.idea/codeStyles
|
| 4 |
+
*.iml
|
| 5 |
+
.gradle
|
| 6 |
+
build
|
| 7 |
+
classes
|
| 8 |
+
*/out
|
| 9 |
+
.classpath
|
| 10 |
+
.project
|
| 11 |
+
.settings
|
| 12 |
+
*/bin
|
| 13 |
+
*.orig
|
| 14 |
+
.attach_pid*
|
| 15 |
+
java_pid*.hprof
|
| 16 |
+
.DS_Store
|
| 17 |
+
!.mvn/wrapper/maven-wrapper.jar
|
aratrl-service/jdk11/market/.idea/codeStyles/Project.xml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<component name="ProjectCodeStyleConfiguration">
|
| 2 |
+
<code_scheme name="Project" version="173">
|
| 3 |
+
<HTMLCodeStyleSettings>
|
| 4 |
+
<option name="HTML_TEXT_WRAP" value="0" />
|
| 5 |
+
<option name="HTML_ALIGN_TEXT" value="true" />
|
| 6 |
+
<option name="HTML_KEEP_WHITESPACES_INSIDE" value="span,pre,textarea,script" />
|
| 7 |
+
</HTMLCodeStyleSettings>
|
| 8 |
+
<JavaCodeStyleSettings>
|
| 9 |
+
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="10" />
|
| 10 |
+
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="10" />
|
| 11 |
+
</JavaCodeStyleSettings>
|
| 12 |
+
<codeStyleSettings language="HTML">
|
| 13 |
+
<indentOptions>
|
| 14 |
+
<option name="USE_TAB_CHARACTER" value="true" />
|
| 15 |
+
</indentOptions>
|
| 16 |
+
</codeStyleSettings>
|
| 17 |
+
<codeStyleSettings language="JAVA">
|
| 18 |
+
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
|
| 19 |
+
<indentOptions>
|
| 20 |
+
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
| 21 |
+
<option name="USE_TAB_CHARACTER" value="true" />
|
| 22 |
+
<option name="SMART_TABS" value="true" />
|
| 23 |
+
</indentOptions>
|
| 24 |
+
</codeStyleSettings>
|
| 25 |
+
<codeStyleSettings language="XML">
|
| 26 |
+
<indentOptions>
|
| 27 |
+
<option name="USE_TAB_CHARACTER" value="true" />
|
| 28 |
+
</indentOptions>
|
| 29 |
+
</codeStyleSettings>
|
| 30 |
+
</code_scheme>
|
| 31 |
+
</component>
|
aratrl-service/jdk11/market/.idea/codeStyles/codeStyleConfig.xml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<component name="ProjectCodeStyleConfiguration">
|
| 2 |
+
<state>
|
| 3 |
+
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
|
| 4 |
+
</state>
|
| 5 |
+
</component>
|
aratrl-service/jdk11/market/.mvn/wrapper/MavenWrapperDownloader.java
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2007-present the original author or authors.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* https://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
*/
|
| 16 |
+
import java.net.*;
|
| 17 |
+
import java.io.*;
|
| 18 |
+
import java.nio.channels.*;
|
| 19 |
+
import java.util.Properties;
|
| 20 |
+
|
| 21 |
+
public class MavenWrapperDownloader {
|
| 22 |
+
|
| 23 |
+
private static final String WRAPPER_VERSION = "0.5.6";
|
| 24 |
+
/**
|
| 25 |
+
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
|
| 26 |
+
*/
|
| 27 |
+
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
|
| 28 |
+
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
|
| 32 |
+
* use instead of the default one.
|
| 33 |
+
*/
|
| 34 |
+
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
|
| 35 |
+
".mvn/wrapper/maven-wrapper.properties";
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Path where the maven-wrapper.jar will be saved to.
|
| 39 |
+
*/
|
| 40 |
+
private static final String MAVEN_WRAPPER_JAR_PATH =
|
| 41 |
+
".mvn/wrapper/maven-wrapper.jar";
|
| 42 |
+
|
| 43 |
+
/**
|
| 44 |
+
* Name of the property which should be used to override the default download url for the wrapper.
|
| 45 |
+
*/
|
| 46 |
+
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
|
| 47 |
+
|
| 48 |
+
public static void main(String args[]) {
|
| 49 |
+
System.out.println("- Downloader started");
|
| 50 |
+
File baseDirectory = new File(args[0]);
|
| 51 |
+
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
|
| 52 |
+
|
| 53 |
+
// If the maven-wrapper.properties exists, read it and check if it contains a custom
|
| 54 |
+
// wrapperUrl parameter.
|
| 55 |
+
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
|
| 56 |
+
String url = DEFAULT_DOWNLOAD_URL;
|
| 57 |
+
if(mavenWrapperPropertyFile.exists()) {
|
| 58 |
+
FileInputStream mavenWrapperPropertyFileInputStream = null;
|
| 59 |
+
try {
|
| 60 |
+
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
|
| 61 |
+
Properties mavenWrapperProperties = new Properties();
|
| 62 |
+
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
|
| 63 |
+
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
|
| 64 |
+
} catch (IOException e) {
|
| 65 |
+
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
|
| 66 |
+
} finally {
|
| 67 |
+
try {
|
| 68 |
+
if(mavenWrapperPropertyFileInputStream != null) {
|
| 69 |
+
mavenWrapperPropertyFileInputStream.close();
|
| 70 |
+
}
|
| 71 |
+
} catch (IOException e) {
|
| 72 |
+
// Ignore ...
|
| 73 |
+
}
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
System.out.println("- Downloading from: " + url);
|
| 77 |
+
|
| 78 |
+
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
|
| 79 |
+
if(!outputFile.getParentFile().exists()) {
|
| 80 |
+
if(!outputFile.getParentFile().mkdirs()) {
|
| 81 |
+
System.out.println(
|
| 82 |
+
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
|
| 86 |
+
try {
|
| 87 |
+
downloadFileFromURL(url, outputFile);
|
| 88 |
+
System.out.println("Done");
|
| 89 |
+
System.exit(0);
|
| 90 |
+
} catch (Throwable e) {
|
| 91 |
+
System.out.println("- Error downloading");
|
| 92 |
+
e.printStackTrace();
|
| 93 |
+
System.exit(1);
|
| 94 |
+
}
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
|
| 98 |
+
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
|
| 99 |
+
String username = System.getenv("MVNW_USERNAME");
|
| 100 |
+
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
|
| 101 |
+
Authenticator.setDefault(new Authenticator() {
|
| 102 |
+
@Override
|
| 103 |
+
protected PasswordAuthentication getPasswordAuthentication() {
|
| 104 |
+
return new PasswordAuthentication(username, password);
|
| 105 |
+
}
|
| 106 |
+
});
|
| 107 |
+
}
|
| 108 |
+
URL website = new URL(urlString);
|
| 109 |
+
ReadableByteChannel rbc;
|
| 110 |
+
rbc = Channels.newChannel(website.openStream());
|
| 111 |
+
FileOutputStream fos = new FileOutputStream(destination);
|
| 112 |
+
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
|
| 113 |
+
fos.close();
|
| 114 |
+
rbc.close();
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
}
|
aratrl-service/jdk11/market/.mvn/wrapper/maven-wrapper.jar
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f37e00f4a503f19cfb1b8100b1f251f241cd1981524761bb9454037cb97589d
|
| 3 |
+
size 50710
|
aratrl-service/jdk11/market/.mvn/wrapper/maven-wrapper.properties
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
|
| 2 |
+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
|
aratrl-service/jdk11/market/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2020 Aleksey Lukyanets
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
aratrl-service/jdk11/market/README.adoc
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
= Simple internet-market
|
| 2 |
+
|
| 3 |
+
image:https://api.codacy.com/project/badge/Grade/8c0bd51bdba44e04bd2cbbfd7f643e9f[link=https://www.codacy.com/manual/aleksey-lukyanets/market?utm_source=github.com&utm_medium=referral&utm_content=aleksey-lukyanets/market&utm_campaign=Badge_Grade]
|
| 4 |
+
image:https://api.codacy.com/project/badge/Coverage/8c0bd51bdba44e04bd2cbbfd7f643e9f[link=https://www.codacy.com/manual/aleksey-lukyanets/market?utm_source=github.com&utm_medium=referral&utm_content=aleksey-lukyanets/market&utm_campaign=Badge_Coverage]
|
| 5 |
+
image:https://github.com/aleksey-lukyanets/market/workflows/build/badge.svg[link]
|
| 6 |
+
|
| 7 |
+
This project was started in 2014 as a study for Spring and related web technologies,
|
| 8 |
+
partly modernized in 2020-21. Since around 2014 professionally I am focused on backend development,
|
| 9 |
+
a modernization/maintenance of this project continues occasionally.
|
| 10 |
+
This is not a perfectly finished project, so it may contain bugs, imperfection and some mess.
|
| 11 |
+
|
| 12 |
+
== Technologies
|
| 13 |
+
|
| 14 |
+
* servlet: ``Spring MVC`` ``Thymeleaf`` ``jQuery`` ``Spring Security``
|
| 15 |
+
* data: ``Spring Data JPA`` ``H2`` ``Hibernate``
|
| 16 |
+
* RESTful service: ``Spring MVC`` ``Spring HATEOAS``
|
| 17 |
+
* tests: ``JUnit`` ``Hamcrest`` ``Mockito`` ``JSONPath``
|
| 18 |
+
|
| 19 |
+
== How to
|
| 20 |
+
|
| 21 |
+
The project is divided to modules and includes two applications:
|
| 22 |
+
|
| 23 |
+
* a web-application, module ``market-web``
|
| 24 |
+
* a RESTful service, module ``market-rest``
|
| 25 |
+
|
| 26 |
+
Each of the two could be run separately by executing the following Maven command
|
| 27 |
+
against specific module from the root directory of the project:
|
| 28 |
+
|
| 29 |
+
``./mvnw spring-boot:run -pl <module-name, e.g. market-web>``
|
| 30 |
+
|
| 31 |
+
You may also use ``mvn`` in case you prefer standalone Maven.
|
| 32 |
+
|
| 33 |
+
[%header,cols=".^2,.^3,.^3",width=90%]
|
| 34 |
+
|===
|
| 35 |
+
| |Web application |RESTful service
|
| 36 |
+
|*module* |market-web |market-rest
|
| 37 |
+
|*Java version* 2+^|11
|
| 38 |
+
|*built packages* 2+^|https://github.com/aleksey-lukyanets/market/packages/
|
| 39 |
+
|*main class* |``WebApplication.java`` |``RestApplication.java``
|
| 40 |
+
|*default port* |8080 |8081
|
| 41 |
+
|*basic URL* |``localhost:8080`` |``localhost:8081/products``
|
| 42 |
+
|*user login* 2+|``admin/password`` ``ivan.petrov@yandex.ru/petrov``
|
| 43 |
+
|*logs* 2+|``logs/``
|
| 44 |
+
|*H2 console* |``localhost:8080/h2-console/`` |``localhost:8081/h2-console/``
|
| 45 |
+
|*Swagger UI* |- |``localhost:8081/swagger-ui/#/``
|
| 46 |
+
|===
|
| 47 |
+
|
| 48 |
+
== Functionality
|
| 49 |
+
|
| 50 |
+
* Visual representation of the product range
|
| 51 |
+
* Customer's shopping cart
|
| 52 |
+
** selecting a product: add, delete, change a quantity
|
| 53 |
+
** viewing the contents of the cart
|
| 54 |
+
** placing an order
|
| 55 |
+
** storing in the database a shopping cart of a registered customer
|
| 56 |
+
* Market control panel
|
| 57 |
+
** products and categories: add, edit, delete
|
| 58 |
+
** viewing information about placed orders
|
| 59 |
+
** managing the availability of goods in stock
|
| 60 |
+
** transfer orders from the "in progress" state to the "executed" state
|
| 61 |
+
* Secured access to the application
|
| 62 |
+
** registration and authorization of customers
|
| 63 |
+
** restricted access to the control panel
|
| 64 |
+
* Double check of form content: client-side and server-side
|
| 65 |
+
|
| 66 |
+
== Databases
|
| 67 |
+
|
| 68 |
+
By default applications use in-memory H2 database.
|
| 69 |
+
Run application with Spring profile ``prod`` to connect to a standalone database (PostreSQL)
|
| 70 |
+
with market/market username and password.
|
| 71 |
+
|
| 72 |
+
== Legacy branches
|
| 73 |
+
|
| 74 |
+
``jsp-2021`` - status with web views based on JSP and Apache Tiles, before moving to Thymeleaf
|
| 75 |
+
|
| 76 |
+
``good-old-2014`` - status for 2014
|
| 77 |
+
|
| 78 |
+
== Links
|
| 79 |
+
|
| 80 |
+
For project description in Russian from good old 2014 refer to ``README_RU.md``
|
aratrl-service/jdk11/market/README_RU.md
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[](https://www.codacy.com/manual/aleksey-lukyanets/market?utm_source=github.com&utm_medium=referral&utm_content=aleksey-lukyanets/market&utm_campaign=Badge_Grade)
|
| 2 |
+
[](https://www.codacy.com/manual/aleksey-lukyanets/market?utm_source=github.com&utm_medium=referral&utm_content=aleksey-lukyanets/market&utm_campaign=Badge_Coverage)
|
| 3 |
+

|
| 4 |
+
|
| 5 |
+
<h2>Технологии</h2>
|
| 6 |
+
|
| 7 |
+
<ul class="discharged">
|
| 8 |
+
<li>сервлет: Spring MVC, JavaServer Pages, Arache Tiles</li>
|
| 9 |
+
<li>авторизация пользователей: Spring Security</li>
|
| 10 |
+
<li>доступ к данным: Hibernate, Spring Data JPA</li>
|
| 11 |
+
<li>веб-служба в стиле REST</li>
|
| 12 |
+
<li>тесты: Spring Test, JUnit, Hamcrest, JSONPath;</li>
|
| 13 |
+
<li>веб-интерфейс: jQuery, jQuery Validate Plugin, Bootstrap</li>
|
| 14 |
+
<li>база данных: PostgreSQL</li>
|
| 15 |
+
<li>контейнер сервлетов: Apache Tomcat</li>
|
| 16 |
+
</ul>
|
| 17 |
+
|
| 18 |
+
<h2>Функционал магазина</h2>
|
| 19 |
+
|
| 20 |
+
<ol class="discharged">
|
| 21 |
+
<li>Наглядное представление ассортимента товаров</li>
|
| 22 |
+
<li>Корзина покупателя
|
| 23 |
+
<ul>
|
| 24 |
+
<li>выбор товаров: добавление, удаление, изменение количества</li>
|
| 25 |
+
<li>просмотр содержимого корзины</li>
|
| 26 |
+
<li>оформление заказа</li>
|
| 27 |
+
<li>хранение корзины зарегистрированного покупателя в базе данных</li>
|
| 28 |
+
</ul>
|
| 29 |
+
</li>
|
| 30 |
+
<li>Панель управления магазином
|
| 31 |
+
<ul>
|
| 32 |
+
<li>товары и категории: добавление, редактирование, удаление</li>
|
| 33 |
+
<li>просмотр информации о размещённых заказах</li>
|
| 34 |
+
<li>управление наличием товаров на складе</li>
|
| 35 |
+
<li>перевод заказов из состояния "в исполнении" в состояние "исполнен"</li>
|
| 36 |
+
</ul>
|
| 37 |
+
</li>
|
| 38 |
+
<li>Безопасный доступ к приложению
|
| 39 |
+
<ul>
|
| 40 |
+
<li>регистрация и авторизация пользователей</li>
|
| 41 |
+
<li>ограничение доступа к панели управления</li>
|
| 42 |
+
</ul>
|
| 43 |
+
</li>
|
| 44 |
+
<li>Двойная проверка содержимого форм: на стороне клиента и на стороне сервера</li>
|
| 45 |
+
</ol>
|
| 46 |
+
|
| 47 |
+
<h2>Оформление заказа</h2>
|
| 48 |
+
|
| 49 |
+
<p>Ниже приведена диаграмма процесса оформления заказа, на которую нанесены
|
| 50 |
+
элементы данных и доступные покупателю действия.</p>
|
| 51 |
+
<center>
|
| 52 |
+
<a href="http://46.101.111.55:8080/resources/img/checkout-flow.png">
|
| 53 |
+
<img src="http://46.101.111.55:8080/resources/img/checkout-flow.png"
|
| 54 |
+
alt="процесс оформления заказа"/>
|
| 55 |
+
</a>
|
| 56 |
+
</center>
|
| 57 |
+
<br>
|
| 58 |
+
|
| 59 |
+
<h2>Веб-служба REST</h2>
|
| 60 |
+
|
| 61 |
+
<p>Помимо гипертекстового интерфейса магазин представляет веб-службу, через которую
|
| 62 |
+
доступен функционал магазина. Описание веб-службы находится на странице
|
| 63 |
+
<a href="<c:url value='/rest-api' />">REST API</a>.</p>
|
| 64 |
+
|
| 65 |
+
<h2>Сортировка, фильтрация, разбивка на страницы</h2>
|
| 66 |
+
|
| 67 |
+
<p>Приложение предоставляет возможность просматривать ресурсы удобным пользователю способом.</p>
|
| 68 |
+
<p>Не нарушая принципов стиля REST, критерии передаются в параметрах URI. Например,
|
| 69 |
+
в панели управления магазином так выглядит запрос отображения таблицы всех имеющихся
|
| 70 |
+
в наличии товаров, с сортировкой по возрастанию цены и 5 товаров на странице:
|
| 71 |
+
<code><b>/admin/storage</b> ? available=true & direct=asc & size=5</code>
|
| 72 |
+
(без пробелов).</p>
|
| 73 |
+
<p>Операции сортировки, фильтрации и постраничного отображения выделены в отдельную
|
| 74 |
+
иерархию классов в пакете <code>market.sorting</code>, которая объединяет
|
| 75 |
+
методы изменения значений опций, формирования запроса к БД (<code>PageRequest</code>
|
| 76 |
+
Spring Data) и добавления всех необходимых данных к модели <code>Model</code> Spring MVC.</p>
|
| 77 |
+
|
| 78 |
+
<h2>Валидация форм</h2>
|
| 79 |
+
|
| 80 |
+
<p>Проверка данных всех форм пользовательского и административного интерфейса выполняется
|
| 81 |
+
дважды: на стороне пользователя и на стороне сервера.</p>
|
| 82 |
+
<ul class="discharged">
|
| 83 |
+
<li>Проверка на стороне пользователя осуществляется с использованием jQuery Validate Plugin,
|
| 84 |
+
который проверяет данные в момент ввода средствами JavaSript. Для посимвольной проверки строки применены
|
| 85 |
+
регулярные выражения (regex). Визуализация дополнена классами Bootstrap.</li>
|
| 86 |
+
<li>Проверка на стороне сервера выполняется с использованием пакетов <code>javax.validation</code> и
|
| 87 |
+
<code>org.springframework.validation</code>.</li>
|
| 88 |
+
</ul>
|
| 89 |
+
<p>Такой подход к валидации форм делает процесс проверки данных комфортным
|
| 90 |
+
для пользователя и вместе с тем гарантирует выполнение проверки при отключённом
|
| 91 |
+
JavaScript в браузере пользователя.</p>
|
| 92 |
+
|
| 93 |
+
<h2>Обработка исключений</h2>
|
| 94 |
+
|
| 95 |
+
<p>В приложении реализована централизованная обработка исключений классом
|
| 96 |
+
<code>market.controller.SpringExceptionHandler</code> с аннотацией
|
| 97 |
+
<code>@ControllerAdvice</code>, предоставленной Spring.</p>
|
| 98 |
+
<p>Помимо объединения обработчиков в единый класс, такой подход позволяет
|
| 99 |
+
вынести проверку авторизации клиентов веб-сервиса из реализации контроллеров:
|
| 100 |
+
права пользователя проверяются перехватчиком
|
| 101 |
+
<code>market.interceptor.RestUserCheckInterceptor</code> и в случае неудачной
|
| 102 |
+
аутентификации исключение <code>RestNotAuthenticatedException</code> передаётся
|
| 103 |
+
обработчику в обход контроллеров, с последующим возвратом клиенту HTTP-состояния
|
| 104 |
+
<code>401 Unauthorized</code> (вместо перенаправления на страницу входа, как в случае
|
| 105 |
+
гипертекстового интерфейса магазина). При удачной аутентификации запрос
|
| 106 |
+
передаётся соответствующему контроллеру.</p>
|
| 107 |
+
|
| 108 |
+
<h2>Модель базы данных</h2>
|
| 109 |
+
|
| 110 |
+
<p>База данных приложения состоит из 13 связанных таблиц, отображаемых средствами Hibernate в 14 классов.</p>
|
| 111 |
+
|
| 112 |
+
<center>
|
| 113 |
+
<a href="http://46.101.111.55:8080/resources/img/database-model.png">
|
| 114 |
+
<img src="http://46.101.111.55:8080/resources/img/database-model.png"
|
| 115 |
+
width="500" alt="схема базы данных"/>
|
| 116 |
+
</a>
|
| 117 |
+
</center>
|
| 118 |
+
<br>
|
| 119 |
+
<p>Слой доступа к данным на первоначальном этапе разработки был представлен классами DAO,
|
| 120 |
+
а с введением функций разбивки на страницы и сортировки реализован
|
| 121 |
+
с помощью репозитория Spring Data JPA.</p>
|
| 122 |
+
|
| 123 |
+
<h2>Пользовательские классы Spring</h2>
|
| 124 |
+
|
| 125 |
+
<p>Функционал фреймворков Spring MVC и Spring Security расширен следующими классами:</p>
|
| 126 |
+
<ul class="discharged">
|
| 127 |
+
<li><code>UserDetailsServiceImpl</code> реализует интерфейс <code>UserDetailsService</code>
|
| 128 |
+
и обеспечивает извлечение профиля пользователя из базы данных;</li>
|
| 129 |
+
<li><code>CustomAuthenticationSuccessHandler</code> реализует интерфейс
|
| 130 |
+
<code>AuthenticationSuccessHandler</code> и обрабатывает событие успешной аутентификации пользователя;</li>
|
| 131 |
+
<li><code>SpringExceptionHandler</code> осуществляет централизованную обработку исключений;</li>
|
| 132 |
+
<li><code>SessionCartInterceptor</code> реализует интерфейс <code>HandlerInterceptorAdapter</code>
|
| 133 |
+
и проверяет до обработки запроса контроллерами, существует ли в модели атрибут корзины покупателя;
|
| 134 |
+
п��и отсутствии создатся новая корзина; такое решение позволяет централизовать создание корзины,
|
| 135 |
+
в том числе для случая, когда браузер пользователя не принимает cookies и поэтому
|
| 136 |
+
не поддерживает хранение параметров сессии;</li>
|
| 137 |
+
<li><code>RestUserCheckInterceptor</code> реализует интерфейс <code>HandlerInterceptorAdapter</code>
|
| 138 |
+
и используется для проверки прав пользователя при доступе к веб-службе.</li>
|
| 139 |
+
</ul>
|
| 140 |
+
|
| 141 |
+
<h1>Веб-служба REST</h1>
|
| 142 |
+
|
| 143 |
+
<p>REST-интерфейс приложения предоставляет доступ к ресурсам магазина: позволяет
|
| 144 |
+
регистрировать покупателей, изменять их контактные данные, запрашивать
|
| 145 |
+
сведения о товарах, добавлять товары в корзину и оформлять заказы.</p>
|
| 146 |
+
<p>Обмен данными между клиентом и веб-службой магазина осуществляется в формате JSON,
|
| 147 |
+
аутентификация выполняется средствами Basic Authentication.</p>
|
| 148 |
+
<p>В соответствии со стилем REST, взаимодействие между клиентом и сервером лишено
|
| 149 |
+
сеансового состояния, поэтому веб-служба магазина не предоставляет гостевую
|
| 150 |
+
корзину: информация о товарах доступна всем клиентам, но заказ может быть
|
| 151 |
+
собран и оформлен только зарегистрированным пользователем.</p>
|
| 152 |
+
<p>Ниже приводится интерфейс веб-службы и примеры взаимодействия.</p>
|
| 153 |
+
|
| 154 |
+
<h2>Взаимодействие с веб-службой</h2>
|
| 155 |
+
|
| 156 |
+
<p>Доступ к ресурсам магазина можно получить с использованием любого HTTP-клиента,
|
| 157 |
+
поддерживающего Basic-аутентификацию, например RESTClient для Mozilla Firefox.</p>
|
| 158 |
+
<p>Так обращение к ресурсу <code>http://46.101.111.55:8080/rest/products</code>
|
| 159 |
+
возвращает список всех товаров:</p>
|
| 160 |
+
<pre style="width: 95%;">[<br/> {<br/> "productId": 1,<br/> "distillery": "Ardbeg",<br/> "name": "Ten",<br/> "price": 4030,<br/> "links": [{<br/> "rel": "self",<br/> "href": "http://46.101.111.55:8080/rest/products/1"}]<br/> },<br/> {<br/> "productId": 2,<br/> "distillery": "Balvenie",<br/> "name": "12 y.o. Doublewood",<br/> "price": 4100,<br/> "links": [{<br/> "rel": "self",<br/> "href": "http://46.101.111.55:8080/rest/products/2" }]<br/> }<br/> <br/> ...<br/>]</pre>
|
| 161 |
+
<p>Сведения об отдельном товаре доступны по его идентификатору.
|
| 162 |
+
Ресурс <code>/products/2</code>:</p>
|
| 163 |
+
<pre style="width: 85%;">{<br/> "id": 2,<br/> "distillery": "Balvenie",<br/> "name": "12 y.o. Doublewood",<br/> "price": 4100,<br/> "age": 12,<br/> "volume": 700,<br/> "alcohol": 40,<br/> "description": "Помимо стандартных бочек выдерживается в бочках<br/> из-под хереса. Гармоничный аромат свежего мёда, ванили,<br/> воска, дуба и цветочной пыльцы с сухой горчинкой.",<br/> "inStock": true<br/>}</pre>
|
| 164 |
+
|
| 165 |
+
<br>
|
| 166 |
+
<h5>Регистрация покупателя</h5>
|
| 167 |
+
|
| 168 |
+
<p>Регистрация нового покупателя осуществляется отправкой запроса <code>POST /signup</code>:</p>
|
| 169 |
+
<pre style="width: 75%;">заголовок: Content-Type: application/json; charset=UTF-8<br>тело: {<br> "email": "ivan.petrov@yandex.ru",<br> "name": "Иван Петров",<br> "password": "Иван Петров",<br> "phone": "+7 123 456 67 89",<br> "address": "ул. Итальянская, д. 7"<br> }</pre>
|
| 170 |
+
<p>Ответ приложения при успешном создании аккаунта: <code>200 Ok</code>.</p>
|
| 171 |
+
<p>Если покупатель с указанным адресом электронной почты уже существует в магазине,
|
| 172 |
+
либо если возникли нарушения при валидации переданных данных, клиенту будет возвращено
|
| 173 |
+
HTTP-состояние <code>406 Not Acceptable</code> с соответствующими пояснениями.</p>
|
| 174 |
+
<p>Например, об ошибке в имени <code>"name": "name@#$%^"</code>
|
| 175 |
+
сервер уведомит ответом:</p>
|
| 176 |
+
<pre style="width: 95%;">{<br> "fieldErrors":<br> [{<br> "field": "name",<br> "message": "В имени допустимы только буквы, пробел, дефис и апостроф."<br> }]<br>}</pre>
|
| 177 |
+
<p>Получить или изменить контактные данные можно обращением к ресурсу соответственно
|
| 178 |
+
<code>/customer/contacts</code> запросами GET или PUT.</p>
|
| 179 |
+
|
| 180 |
+
<br>
|
| 181 |
+
<h5>Формирование заказа</h5>
|
| 182 |
+
|
| 183 |
+
<p>Зарегистрированный покупатель может добавить товар в корзину запросом <code>PUT /cart</code>:</p>
|
| 184 |
+
<pre style="width: 95%;">заголовок: Content-Type: application/json; charset=UTF-8<br> Authorization: Basic aXZhbi5wZXRyb3ZAeWFuZGV4LnJ10nBldHJvdg==<br>тело: {"productId": 2, "quantity": 1}</pre>
|
| 185 |
+
<p>В ответе приложение вернёт изменённую корзину:</p>
|
| 186 |
+
<pre style="width: 95%;">заголовок: Status Code: 200 Ok<br> Content-Type: application/json; charset=UTF-8<br>тело: {<br> "user": "ivan.petrov@yandex.ru",<br> "items":<br> [<br> {<br> "productId": 2,<br> "quantity": 1,<br> "links": [{<br> "rel": "self",<br> "href": "http://46.101.111.55:8080/rest/products/2" }]<br> }<br> ],<br> "totalItems": 1,<br> "productsCost": 4100,<br> "deliveryCost": 400,<br> "deliveryIncluded": true,<br> "totalCost": 4500,<br> "links":<br> [<br> {<br> "rel": "Customer contacts",<br> "href": "http://46.101.111.55:8080/rest/customer/contacts"<br> },<br> {<br> "rel": "Payment",<br> "href": "http://46.101.111.55:8080/rest/cart/payment"<br> }<br> ]<br> }</pre>
|
| 187 |
+
<p>Опция доставки может быть изменена запросом <code>PUT /cart/delivery/{boolean}</code>.</p>
|
| 188 |
+
<br>
|
| 189 |
+
<p>Для оформления заказа следует отправить номер банковской карты, с которой
|
| 190 |
+
будет оплачен заказ, запросом <code>POST /cart/payment</code>:</p>
|
| 191 |
+
<pre style="width: 95%;">заголовок: Content-Type: application/json; charset=UTF-8<br> Authorization: Basic aXZhbi5wZXRyb3ZAeWFuZGV4LnJ10nBldHJvdg==<br>тело: {"number": "4444 3333 2222 1111"}</pre>
|
| 192 |
+
<p>Приложение вернёт подтверждение об оплате и приёме заказа:</p>
|
| 193 |
+
<pre style="width: 95%;">заголовок: Status Code: 201 Created<br> Location: http://46.101.111.55:8080/rest/customer/orders/13<br> Content-Type: application/json; charset=UTF-8<br>тело: {<br> "id": 13,<br> "user": "ivan.petrov@yandex.ru",<br> "billNumber": 525553712,<br> "dateCreated": 1397559589798,<br> "productsCost": 4100,<br> "deliveryCost": 400,<br> "deliveryIncluded": true,<br> "totalCost": 4500,<br> "payed": true,<br> "executed": false<br> }</pre>
|
| 194 |
+
<p>Получить перечень всех оставленных покупателем заказов можно обратившись к ресурсу
|
| 195 |
+
<code>/customer/orders</code>.</p>
|
| 196 |
+
<br>
|
| 197 |
+
|
| 198 |
+
<h2>Операции с ресурсами</h2>
|
| 199 |
+
|
| 200 |
+
<h4>Сведения о товарах</h4>
|
| 201 |
+
<table class="table table-marked">
|
| 202 |
+
<thead>
|
| 203 |
+
<tr>
|
| 204 |
+
<th width="200">ресурс</th>
|
| 205 |
+
<th width="170">описание</th>
|
| 206 |
+
<th>статусы ответа</th>
|
| 207 |
+
</tr>
|
| 208 |
+
</thead>
|
| 209 |
+
<tbody>
|
| 210 |
+
<tr>
|
| 211 |
+
<td>GET /products</td>
|
| 212 |
+
<td>Возвращает перечень всех товаров магазина</td>
|
| 213 |
+
<td>200</td>
|
| 214 |
+
</tr>
|
| 215 |
+
<tr>
|
| 216 |
+
<td>GET /products/:id</td>
|
| 217 |
+
<td>Возвращает товар с указанным id</td>
|
| 218 |
+
<td>200 — товар возвращён в теле ответа,<br>
|
| 219 |
+
404 — товара с таким id не существует</td>
|
| 220 |
+
</tr>
|
| 221 |
+
</tbody>
|
| 222 |
+
</table>
|
| 223 |
+
|
| 224 |
+
<h4>Корзина покупателя (требует авторизации)</h4>
|
| 225 |
+
<table class="table table-marked">
|
| 226 |
+
<thead>
|
| 227 |
+
<tr>
|
| 228 |
+
<th width="200">ресурс</th>
|
| 229 |
+
<th width="170">описание</th>
|
| 230 |
+
<th>статусы ответа</th>
|
| 231 |
+
</tr>
|
| 232 |
+
</thead>
|
| 233 |
+
<tbody>
|
| 234 |
+
<tr>
|
| 235 |
+
<td>GET /cart</td>
|
| 236 |
+
<td>Возвращает корзину покупателя</td>
|
| 237 |
+
<td>200</td>
|
| 238 |
+
</tr>
|
| 239 |
+
<tr>
|
| 240 |
+
<td>PUT /cart</td>
|
| 241 |
+
<td>Добавляет товар в корзину</td>
|
| 242 |
+
<td>200 — товар добавлен, обновлённая корзина находится в теле ответа,<br>
|
| 243 |
+
406 — товара с запрошенным id не существует; пояснения в теле ответа</td>
|
| 244 |
+
</tr>
|
| 245 |
+
<tr>
|
| 246 |
+
<td>DELETE /cart</td>
|
| 247 |
+
<td>Удаляет из корзины все товары</td>
|
| 248 |
+
<td>200 — корзина очищена, обновлённая корзина находится в теле ответа</td>
|
| 249 |
+
</tr>
|
| 250 |
+
<tr>
|
| 251 |
+
<td>PUT /cart/delivery/:boolean</td>
|
| 252 |
+
<td>Включает в заказ доставку</td>
|
| 253 |
+
<td>200 — опция доставки изменена, обновлённая корзина находится в теле ответа</td>
|
| 254 |
+
</tr>
|
| 255 |
+
<tr>
|
| 256 |
+
<td>POST /cart/payment</td>
|
| 257 |
+
<td>Подтверждает заказ и оплачивает его картой с указанным номером</td>
|
| 258 |
+
<td>201 — заказ оплачен и принят, ссылка на заказ находится в заголовке, детали заказа — в теле ответа,<br>
|
| 259 |
+
406 — некорректный формат номера карты, либо корзина пуста; пояснения в теле ответа</td>
|
| 260 |
+
</tr>
|
| 261 |
+
</tbody>
|
| 262 |
+
</table>
|
| 263 |
+
|
| 264 |
+
<h4>Регистрация нового покупателя</h4>
|
| 265 |
+
<table class="table table-marked">
|
| 266 |
+
<thead>
|
| 267 |
+
<tr>
|
| 268 |
+
<th width="200">ресурс</th>
|
| 269 |
+
<th width="170">описание</th>
|
| 270 |
+
<th>статусы ответа</th>
|
| 271 |
+
</tr>
|
| 272 |
+
</thead>
|
| 273 |
+
<tbody>
|
| 274 |
+
<tr>
|
| 275 |
+
<td>POST /signup</td>
|
| 276 |
+
<td>Регистрирует нового покупателя</td>
|
| 277 |
+
<td>200 — покупатель зарегистрирован и возвращён в теле ответа,<br>
|
| 278 |
+
406 — некорректный формат полученных данных; пояснения в теле ответа</td>
|
| 279 |
+
</tr>
|
| 280 |
+
</tbody>
|
| 281 |
+
</table>
|
| 282 |
+
|
| 283 |
+
<h4>Профиль покупателя (требует авторизации)</h4>
|
| 284 |
+
<table class="table table-marked">
|
| 285 |
+
<thead>
|
| 286 |
+
<tr>
|
| 287 |
+
<th width="200">ресурс</th>
|
| 288 |
+
<th width="170">описание</th>
|
| 289 |
+
<th>статусы ответа</th>
|
| 290 |
+
</tr>
|
| 291 |
+
</thead>
|
| 292 |
+
<tbody>
|
| 293 |
+
<tr>
|
| 294 |
+
<td>GET /customer/contacts</td>
|
| 295 |
+
<td>Возвращает контактные данные покупателя</td>
|
| 296 |
+
<td>200 — контактные данные возвращены в теле ответа</td>
|
| 297 |
+
</tr>
|
| 298 |
+
<tr>
|
| 299 |
+
<td>PUT /customer/contacts</td>
|
| 300 |
+
<td>Изменяет контактные данные покупателя</td>
|
| 301 |
+
<td>200 — данные изменены, обновлённые возвращены в теле ответа,<br>
|
| 302 |
+
406 — некорректный формат полученных данных; пояснения в теле ответа</td>
|
| 303 |
+
</tr>
|
| 304 |
+
<tr>
|
| 305 |
+
<td>GET /customer/orders</td>
|
| 306 |
+
<td>Возвращает перечень заказов покупателя</td>
|
| 307 |
+
<td>200 — перечень заказов возвращён в теле ответа</td>
|
| 308 |
+
</tr>
|
| 309 |
+
<tr>
|
| 310 |
+
<td>GET /customer/orders/:id</td>
|
| 311 |
+
<td>Возвращает заказ с указанным id</td>
|
| 312 |
+
<td>200 — заказ возвращён в теле ответа,<br>
|
| 313 |
+
404 — заказ с таким id у авторизованного пользователя не существует</td>
|
| 314 |
+
</tr>
|
| 315 |
+
</tbody>
|
| 316 |
+
</table>
|
aratrl-service/jdk11/market/database-model.mwb
ADDED
|
Binary file (16.6 kB). View file
|
|
|
aratrl-service/jdk11/market/market-core/pom.xml
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 3 |
+
xmlns="http://maven.apache.org/POM/4.0.0"
|
| 4 |
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
| 5 |
+
<parent>
|
| 6 |
+
<artifactId>market</artifactId>
|
| 7 |
+
<groupId>net.lukyanets</groupId>
|
| 8 |
+
<version>0.1.2</version>
|
| 9 |
+
<relativePath>..</relativePath>
|
| 10 |
+
</parent>
|
| 11 |
+
<modelVersion>4.0.0</modelVersion>
|
| 12 |
+
|
| 13 |
+
<artifactId>market-core</artifactId>
|
| 14 |
+
<version>0.1.2</version>
|
| 15 |
+
|
| 16 |
+
<name>market-core</name>
|
| 17 |
+
|
| 18 |
+
<properties>
|
| 19 |
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
| 20 |
+
</properties>
|
| 21 |
+
|
| 22 |
+
<build>
|
| 23 |
+
<plugins>
|
| 24 |
+
<plugin>
|
| 25 |
+
<groupId>org.apache.maven.plugins</groupId>
|
| 26 |
+
<artifactId>maven-surefire-plugin</artifactId>
|
| 27 |
+
<version>${maven.surefire.plugin.version}</version>
|
| 28 |
+
</plugin>
|
| 29 |
+
<plugin>
|
| 30 |
+
<groupId>org.apache.maven.plugins</groupId>
|
| 31 |
+
<artifactId>maven-deploy-plugin</artifactId>
|
| 32 |
+
<version>2.8.2</version>
|
| 33 |
+
<configuration>
|
| 34 |
+
<skip>true</skip>
|
| 35 |
+
</configuration>
|
| 36 |
+
</plugin>
|
| 37 |
+
<plugin>
|
| 38 |
+
<groupId>org.jacoco</groupId>
|
| 39 |
+
<artifactId>jacoco-maven-plugin</artifactId>
|
| 40 |
+
<version>${jacoco.version}</version>
|
| 41 |
+
<executions>
|
| 42 |
+
<execution>
|
| 43 |
+
<goals>
|
| 44 |
+
<goal>prepare-agent</goal>
|
| 45 |
+
</goals>
|
| 46 |
+
</execution>
|
| 47 |
+
<execution>
|
| 48 |
+
<id>report</id>
|
| 49 |
+
<phase>prepare-package</phase>
|
| 50 |
+
<goals>
|
| 51 |
+
<goal>report</goal>
|
| 52 |
+
</goals>
|
| 53 |
+
</execution>
|
| 54 |
+
</executions>
|
| 55 |
+
<configuration>
|
| 56 |
+
<excludes>
|
| 57 |
+
<exclude>**/*market/dto/**</exclude>
|
| 58 |
+
<exclude>**/*market/exception/**</exclude>
|
| 59 |
+
</excludes>
|
| 60 |
+
</configuration>
|
| 61 |
+
</plugin>
|
| 62 |
+
</plugins>
|
| 63 |
+
</build>
|
| 64 |
+
|
| 65 |
+
<dependencies>
|
| 66 |
+
<dependency>
|
| 67 |
+
<groupId>com.h2database</groupId>
|
| 68 |
+
<artifactId>h2</artifactId>
|
| 69 |
+
<scope>runtime</scope>
|
| 70 |
+
</dependency>
|
| 71 |
+
|
| 72 |
+
<dependency>
|
| 73 |
+
<groupId>org.springframework.boot</groupId>
|
| 74 |
+
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
| 75 |
+
</dependency>
|
| 76 |
+
<dependency>
|
| 77 |
+
<groupId>org.springframework.boot</groupId>
|
| 78 |
+
<artifactId>spring-boot-starter-jdbc</artifactId>
|
| 79 |
+
</dependency>
|
| 80 |
+
<dependency>
|
| 81 |
+
<groupId>org.springframework.boot</groupId>
|
| 82 |
+
<artifactId>spring-boot-starter-security</artifactId>
|
| 83 |
+
</dependency>
|
| 84 |
+
<dependency>
|
| 85 |
+
<groupId>org.springframework.boot</groupId>
|
| 86 |
+
<artifactId>spring-boot-starter-validation</artifactId>
|
| 87 |
+
</dependency>
|
| 88 |
+
<dependency>
|
| 89 |
+
<groupId>org.springframework.boot</groupId>
|
| 90 |
+
<artifactId>spring-boot-starter-hateoas</artifactId>
|
| 91 |
+
</dependency>
|
| 92 |
+
|
| 93 |
+
<dependency>
|
| 94 |
+
<groupId>org.springframework.boot</groupId>
|
| 95 |
+
<artifactId>spring-boot-starter-test</artifactId>
|
| 96 |
+
</dependency>
|
| 97 |
+
</dependencies>
|
| 98 |
+
|
| 99 |
+
</project>
|
aratrl-service/jdk11/market/market-core/src/main/java/market/DataConfig.java
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market;
|
| 2 |
+
|
| 3 |
+
import com.zaxxer.hikari.HikariDataSource;
|
| 4 |
+
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
| 5 |
+
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
|
| 6 |
+
import org.springframework.boot.context.properties.ConfigurationProperties;
|
| 7 |
+
import org.springframework.context.annotation.Bean;
|
| 8 |
+
import org.springframework.context.annotation.ComponentScan;
|
| 9 |
+
import org.springframework.context.annotation.Configuration;
|
| 10 |
+
import org.springframework.context.annotation.Primary;
|
| 11 |
+
import org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor;
|
| 12 |
+
import org.springframework.orm.jpa.JpaTransactionManager;
|
| 13 |
+
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
|
| 14 |
+
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
|
| 15 |
+
import org.springframework.transaction.PlatformTransactionManager;
|
| 16 |
+
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
| 17 |
+
|
| 18 |
+
import javax.persistence.EntityManagerFactory;
|
| 19 |
+
import javax.sql.DataSource;
|
| 20 |
+
|
| 21 |
+
@Configuration
|
| 22 |
+
@EntityScan(basePackages="market.domain")
|
| 23 |
+
@EnableTransactionManagement
|
| 24 |
+
@ComponentScan(basePackages = {
|
| 25 |
+
"market.properties",
|
| 26 |
+
"market.service"
|
| 27 |
+
})
|
| 28 |
+
public class DataConfig {
|
| 29 |
+
|
| 30 |
+
@Bean
|
| 31 |
+
@Primary
|
| 32 |
+
@ConfigurationProperties("spring.datasource")
|
| 33 |
+
public DataSourceProperties dataSourceProperties() {
|
| 34 |
+
return new DataSourceProperties();
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
@Bean // with Spring Boot this is actually not necessary but leaving it to note things explicitly
|
| 38 |
+
@Primary
|
| 39 |
+
@ConfigurationProperties("spring.datasource.configuration")
|
| 40 |
+
public HikariDataSource dataSource() {
|
| 41 |
+
DataSourceProperties properties = dataSourceProperties();
|
| 42 |
+
return properties.initializeDataSourceBuilder().type(HikariDataSource.class).build();
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
@Bean
|
| 46 |
+
public LocalContainerEntityManagerFactoryBean entityManagerFactory(DataSource dataSource) {
|
| 47 |
+
LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean(); // todo: EntityManagerFactoryBuilder ?
|
| 48 |
+
em.setDataSource(dataSource);
|
| 49 |
+
em.setPackagesToScan("market.domain");
|
| 50 |
+
em.setJpaVendorAdapter(new HibernateJpaVendorAdapter());
|
| 51 |
+
return em;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
@Bean
|
| 55 |
+
public PlatformTransactionManager transactionManager(EntityManagerFactory emf) {
|
| 56 |
+
JpaTransactionManager transactionManager = new JpaTransactionManager();
|
| 57 |
+
transactionManager.setEntityManagerFactory(emf);
|
| 58 |
+
return transactionManager;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
@Bean
|
| 62 |
+
public PersistenceExceptionTranslationPostProcessor exceptionTranslation() {
|
| 63 |
+
return new PersistenceExceptionTranslationPostProcessor();
|
| 64 |
+
}
|
| 65 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/FixturesFactory.java
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market;
|
| 2 |
+
|
| 3 |
+
import market.domain.*;
|
| 4 |
+
|
| 5 |
+
import java.util.Date;
|
| 6 |
+
|
| 7 |
+
public class FixturesFactory {
|
| 8 |
+
private static final String DISTILLERY_TITLE = "distillery_title";
|
| 9 |
+
private static final String DISTILLERY_DESCRIPTION = "distillery_description";
|
| 10 |
+
|
| 11 |
+
private static final String REGION_NAME = "region name";
|
| 12 |
+
private static final String REGION_SUBTITLE = "region subtitle";
|
| 13 |
+
private static final String REGION_DESCRIPTION = "region description";
|
| 14 |
+
private static final String REGION_COLOR = "#ffffff";
|
| 15 |
+
|
| 16 |
+
private static final double PRODUCT_PRICE = 100.0;
|
| 17 |
+
private static final String PRODUCT_NAME = "product_name";
|
| 18 |
+
private static final int PRODUCT_AGE = 10;
|
| 19 |
+
private static final float PRODUCT_ALCOHOL = 40;
|
| 20 |
+
private static final int PRODUCT_VOLUME = 700;
|
| 21 |
+
private static final String PRODUCT_DESCRIPTION = "product_description";
|
| 22 |
+
private static final boolean PRODUCT_AVAILABLE = true;
|
| 23 |
+
|
| 24 |
+
private static final String ACCOUNT_EMAIL = "email@domain.com";
|
| 25 |
+
private static final String ACCOUNT_PASSWORD = "password";
|
| 26 |
+
private static final String ACCOUNT_NAME = "Name";
|
| 27 |
+
private static final boolean ACCOUNT_ACTIVE = true;
|
| 28 |
+
|
| 29 |
+
private static final String CONTACTS_PHONE = "+97211234567";
|
| 30 |
+
private static final String CONTACTS_ADDRESS = "some_address";
|
| 31 |
+
|
| 32 |
+
private static final int ORDERED_PRODUCT_QUANTITY = 3;
|
| 33 |
+
|
| 34 |
+
private static final String BILL_CARD_NUMBER = "1111222233334444";
|
| 35 |
+
|
| 36 |
+
private static long regionId = 123L;
|
| 37 |
+
private static long distilleryId = 234L;
|
| 38 |
+
private static long productId = 10L;
|
| 39 |
+
private static long accountId = 50L;
|
| 40 |
+
private static long orderId = 3000L;
|
| 41 |
+
private static int billId = 400;
|
| 42 |
+
|
| 43 |
+
public static Region.Builder region() {
|
| 44 |
+
return new Region.Builder()
|
| 45 |
+
.setId(++regionId)
|
| 46 |
+
.setName(REGION_NAME + regionId)
|
| 47 |
+
.setSubtitle(REGION_SUBTITLE)
|
| 48 |
+
.setDescription(REGION_DESCRIPTION)
|
| 49 |
+
.setColor(REGION_COLOR);
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
public static Distillery.Builder distillery(Region region) {
|
| 53 |
+
return new Distillery.Builder()
|
| 54 |
+
.setId(++distilleryId)
|
| 55 |
+
.setRegion(region)
|
| 56 |
+
.setTitle(DISTILLERY_TITLE + distilleryId)
|
| 57 |
+
.setDescription(DISTILLERY_DESCRIPTION);
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
public static Product.Builder product(Distillery distillery) {
|
| 61 |
+
return new Product.Builder()
|
| 62 |
+
.setId(++productId)
|
| 63 |
+
.setDistillery(distillery)
|
| 64 |
+
.setName(PRODUCT_NAME + productId)
|
| 65 |
+
.setAge(PRODUCT_AGE)
|
| 66 |
+
.setAlcohol(PRODUCT_ALCOHOL)
|
| 67 |
+
.setPrice(PRODUCT_PRICE)
|
| 68 |
+
.setVolume(PRODUCT_VOLUME)
|
| 69 |
+
.setDescription(PRODUCT_DESCRIPTION)
|
| 70 |
+
.setAvailable(PRODUCT_AVAILABLE);
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
public static UserAccount.Builder account(Cart cart) {
|
| 74 |
+
return account()
|
| 75 |
+
.setCart(cart);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
public static UserAccount.Builder account() {
|
| 79 |
+
return new UserAccount.Builder()
|
| 80 |
+
.setId(++accountId)
|
| 81 |
+
.setEmail(ACCOUNT_EMAIL)
|
| 82 |
+
.setPassword(ACCOUNT_PASSWORD)
|
| 83 |
+
.setName(ACCOUNT_NAME)
|
| 84 |
+
.setActive(ACCOUNT_ACTIVE);
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
public static Contacts.Builder contacts() {
|
| 88 |
+
return new Contacts.Builder()
|
| 89 |
+
.setPhone(CONTACTS_PHONE)
|
| 90 |
+
.setAddress(CONTACTS_ADDRESS);
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
public static Order.Builder order(UserAccount userAccount) {
|
| 94 |
+
return new Order.Builder()
|
| 95 |
+
.setId(++orderId)
|
| 96 |
+
.setUserAccount(userAccount)
|
| 97 |
+
.setDateCreated(new Date());
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
public static OrderedProduct.Builder orderedProduct(Order order, Product product) {
|
| 101 |
+
return new OrderedProduct.Builder()
|
| 102 |
+
.setProduct(product)
|
| 103 |
+
.setOrder(order)
|
| 104 |
+
.setQuantity(ORDERED_PRODUCT_QUANTITY);
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
public static Bill.Builder bill(Order order) {
|
| 108 |
+
return new Bill.Builder()
|
| 109 |
+
.setOrder(order)
|
| 110 |
+
.setNumber(++billId)
|
| 111 |
+
.setTotalCost(order.getProductsCost() + order.getDeliveryCost())
|
| 112 |
+
.setPayed(true)
|
| 113 |
+
.setDateCreated(new Date())
|
| 114 |
+
.setCcNumber(BILL_CARD_NUMBER);
|
| 115 |
+
}
|
| 116 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/SecurityConfigBase.java
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market;
|
| 2 |
+
|
| 3 |
+
import market.security.AuthenticationService;
|
| 4 |
+
import market.security.UserDetailsServiceImpl;
|
| 5 |
+
import market.service.UserAccountService;
|
| 6 |
+
import org.springframework.beans.factory.annotation.Autowired;
|
| 7 |
+
import org.springframework.context.annotation.Bean;
|
| 8 |
+
import org.springframework.context.annotation.ComponentScan;
|
| 9 |
+
import org.springframework.context.annotation.Configuration;
|
| 10 |
+
import org.springframework.security.authentication.AuthenticationManager;
|
| 11 |
+
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
|
| 12 |
+
import org.springframework.security.config.BeanIds;
|
| 13 |
+
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
|
| 14 |
+
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
|
| 15 |
+
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
|
| 16 |
+
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
| 17 |
+
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
| 18 |
+
import org.springframework.security.crypto.password.PasswordEncoder;
|
| 19 |
+
|
| 20 |
+
@Configuration
|
| 21 |
+
@EnableWebSecurity
|
| 22 |
+
@ComponentScan(basePackages = {"market.security"})
|
| 23 |
+
@EnableGlobalMethodSecurity(securedEnabled = true)
|
| 24 |
+
public class SecurityConfigBase extends WebSecurityConfigurerAdapter {
|
| 25 |
+
|
| 26 |
+
@Autowired
|
| 27 |
+
private DaoAuthenticationProvider daoAuthenticationProvider;
|
| 28 |
+
|
| 29 |
+
@Bean
|
| 30 |
+
public AuthenticationService authenticationService(AuthenticationManager authenticationManager) {
|
| 31 |
+
return new AuthenticationService(authenticationManager);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
|
| 35 |
+
@Override
|
| 36 |
+
public AuthenticationManager authenticationManagerBean() throws Exception {
|
| 37 |
+
return super.authenticationManagerBean();
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
protected void configure(AuthenticationManagerBuilder auth) {
|
| 41 |
+
auth.authenticationProvider(daoAuthenticationProvider);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
@Bean
|
| 45 |
+
public DaoAuthenticationProvider daoAuthenticationProvider(
|
| 46 |
+
UserDetailsServiceImpl customUserDetailsService, PasswordEncoder passwordEncoder)
|
| 47 |
+
{
|
| 48 |
+
DaoAuthenticationProvider provider = new DaoAuthenticationProvider();
|
| 49 |
+
provider.setUserDetailsService(customUserDetailsService);
|
| 50 |
+
provider.setPasswordEncoder(passwordEncoder);
|
| 51 |
+
return provider;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
@Bean
|
| 55 |
+
public UserDetailsServiceImpl customUserDetailsService(UserAccountService userAccountService) {
|
| 56 |
+
return new UserDetailsServiceImpl(userAccountService);
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
@Bean
|
| 60 |
+
public PasswordEncoder passwordEncoder() {
|
| 61 |
+
return new BCryptPasswordEncoder();
|
| 62 |
+
}
|
| 63 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/dao/CartDAO.java
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.dao;
|
| 2 |
+
|
| 3 |
+
import market.domain.Cart;
|
| 4 |
+
import org.springframework.data.jpa.repository.JpaRepository;
|
| 5 |
+
import org.springframework.data.repository.CrudRepository;
|
| 6 |
+
|
| 7 |
+
public interface CartDAO extends CrudRepository<Cart, Long>, JpaRepository<Cart, Long> {
|
| 8 |
+
|
| 9 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/dao/ContactsDAO.java
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.dao;
|
| 2 |
+
|
| 3 |
+
import market.domain.Contacts;
|
| 4 |
+
import market.domain.UserAccount;
|
| 5 |
+
import org.springframework.data.jpa.repository.JpaRepository;
|
| 6 |
+
import org.springframework.data.repository.CrudRepository;
|
| 7 |
+
|
| 8 |
+
public interface ContactsDAO extends CrudRepository<Contacts, Long>, JpaRepository<Contacts, Long> {
|
| 9 |
+
|
| 10 |
+
Contacts findByUserAccount(UserAccount userAccount);
|
| 11 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/dao/DistilleryDAO.java
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.dao;
|
| 2 |
+
|
| 3 |
+
import market.domain.Distillery;
|
| 4 |
+
import market.domain.Region;
|
| 5 |
+
import org.springframework.data.jpa.repository.JpaRepository;
|
| 6 |
+
import org.springframework.data.repository.CrudRepository;
|
| 7 |
+
|
| 8 |
+
import java.util.List;
|
| 9 |
+
|
| 10 |
+
public interface DistilleryDAO extends CrudRepository<Distillery, Long>, JpaRepository<Distillery, Long> {
|
| 11 |
+
|
| 12 |
+
List<Distillery> findByRegionOrderByTitleAsc(Region region);
|
| 13 |
+
|
| 14 |
+
Distillery findByTitle(String title);
|
| 15 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/dao/OrderDAO.java
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.dao;
|
| 2 |
+
|
| 3 |
+
import market.domain.Order;
|
| 4 |
+
import market.domain.UserAccount;
|
| 5 |
+
import org.springframework.data.domain.Page;
|
| 6 |
+
import org.springframework.data.domain.Pageable;
|
| 7 |
+
import org.springframework.data.jpa.repository.JpaRepository;
|
| 8 |
+
import org.springframework.data.repository.CrudRepository;
|
| 9 |
+
|
| 10 |
+
import java.util.Date;
|
| 11 |
+
import java.util.List;
|
| 12 |
+
|
| 13 |
+
public interface OrderDAO extends CrudRepository<Order, Long>, JpaRepository<Order, Long> {
|
| 14 |
+
|
| 15 |
+
List<Order> findByUserAccountOrderByDateCreatedDesc(UserAccount userAccount);
|
| 16 |
+
|
| 17 |
+
Page<Order> findByExecuted(boolean stored, Pageable pageable);
|
| 18 |
+
|
| 19 |
+
Page<Order> findByDateCreatedGreaterThan(Date created, Pageable pageable);
|
| 20 |
+
|
| 21 |
+
Page<Order> findByExecutedAndDateCreatedGreaterThan(boolean executed, Date created, Pageable pageable);
|
| 22 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/dao/OrderedProductDAO.java
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.dao;
|
| 2 |
+
|
| 3 |
+
import market.domain.OrderedProduct;
|
| 4 |
+
import org.springframework.data.jpa.repository.JpaRepository;
|
| 5 |
+
import org.springframework.data.repository.CrudRepository;
|
| 6 |
+
|
| 7 |
+
public interface OrderedProductDAO extends CrudRepository<OrderedProduct, Long>, JpaRepository<OrderedProduct, Long> {
|
| 8 |
+
|
| 9 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/dao/ProductDAO.java
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.dao;
|
| 2 |
+
|
| 3 |
+
import market.domain.Distillery;
|
| 4 |
+
import market.domain.Product;
|
| 5 |
+
import market.domain.Region;
|
| 6 |
+
import org.springframework.data.domain.Page;
|
| 7 |
+
import org.springframework.data.domain.Pageable;
|
| 8 |
+
import org.springframework.data.jpa.repository.JpaRepository;
|
| 9 |
+
import org.springframework.data.jpa.repository.Query;
|
| 10 |
+
import org.springframework.data.repository.CrudRepository;
|
| 11 |
+
import org.springframework.data.repository.query.Param;
|
| 12 |
+
|
| 13 |
+
public interface ProductDAO extends CrudRepository<Product, Long>, JpaRepository<Product, Long> {
|
| 14 |
+
|
| 15 |
+
Page<Product> findByDistilleryOrderByName(Distillery distillery, Pageable request);
|
| 16 |
+
|
| 17 |
+
@Query(value = "SELECT p FROM Product p WHERE p.distillery IN (SELECT d FROM Distillery d WHERE d.region = :region) order by p.name")
|
| 18 |
+
Page<Product> findByRegionOrderByName(@Param("region") Region region, Pageable request);
|
| 19 |
+
|
| 20 |
+
Page<Product> findByAvailableOrderByName(boolean available, Pageable request);
|
| 21 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/dao/RegionDAO.java
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.dao;
|
| 2 |
+
|
| 3 |
+
import market.domain.Region;
|
| 4 |
+
import org.springframework.data.jpa.repository.JpaRepository;
|
| 5 |
+
import org.springframework.data.repository.CrudRepository;
|
| 6 |
+
|
| 7 |
+
import java.util.Optional;
|
| 8 |
+
|
| 9 |
+
public interface RegionDAO extends CrudRepository<Region, Long>, JpaRepository<Region, Long> {
|
| 10 |
+
|
| 11 |
+
Optional<Region> findByName(String regionName);
|
| 12 |
+
|
| 13 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/dao/UserAccountDAO.java
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.dao;
|
| 2 |
+
|
| 3 |
+
import market.domain.UserAccount;
|
| 4 |
+
import org.springframework.data.jpa.repository.JpaRepository;
|
| 5 |
+
import org.springframework.data.repository.CrudRepository;
|
| 6 |
+
|
| 7 |
+
public interface UserAccountDAO extends CrudRepository<UserAccount, Long>, JpaRepository<UserAccount, Long> {
|
| 8 |
+
|
| 9 |
+
UserAccount findByEmail(String email);
|
| 10 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Bill.java
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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import javax.persistence.GeneratedValue;
|
| 6 |
+
import javax.persistence.GenerationType;
|
| 7 |
+
import javax.persistence.Id;
|
| 8 |
+
import javax.persistence.OneToOne;
|
| 9 |
+
import javax.persistence.PrimaryKeyJoinColumn;
|
| 10 |
+
import javax.persistence.Table;
|
| 11 |
+
import javax.persistence.Temporal;
|
| 12 |
+
import javax.validation.constraints.NotEmpty;
|
| 13 |
+
import javax.validation.constraints.Pattern;
|
| 14 |
+
import java.io.Serializable;
|
| 15 |
+
import java.util.Date;
|
| 16 |
+
|
| 17 |
+
import static javax.persistence.TemporalType.TIMESTAMP;
|
| 18 |
+
|
| 19 |
+
/**
|
| 20 |
+
* Bill of the {@link Order}.
|
| 21 |
+
*/
|
| 22 |
+
@Entity
|
| 23 |
+
@Table(name = "bill")
|
| 24 |
+
public class Bill implements Serializable {
|
| 25 |
+
private static final long serialVersionUID = 3689283961628876802L;
|
| 26 |
+
|
| 27 |
+
@Id
|
| 28 |
+
@Column(name = "id", unique = true, nullable = false)
|
| 29 |
+
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
| 30 |
+
private Long id;
|
| 31 |
+
|
| 32 |
+
@OneToOne
|
| 33 |
+
@PrimaryKeyJoinColumn
|
| 34 |
+
private Order order;
|
| 35 |
+
|
| 36 |
+
@Column(name = "number", nullable = false)
|
| 37 |
+
private int number;
|
| 38 |
+
|
| 39 |
+
@Column(name = "total_cost", nullable = false)
|
| 40 |
+
private double totalCost;
|
| 41 |
+
|
| 42 |
+
@Column(name = "payed", nullable = false)
|
| 43 |
+
private boolean payed = false;
|
| 44 |
+
|
| 45 |
+
@Column(name = "cc_number", nullable = false)
|
| 46 |
+
@NotEmpty
|
| 47 |
+
@Pattern(regexp = "\\b(?:\\d[ -]*?){13,16}\\b")
|
| 48 |
+
private String ccNumber;
|
| 49 |
+
|
| 50 |
+
@Column(name = "date_created", nullable = false)
|
| 51 |
+
@Temporal(TIMESTAMP)
|
| 52 |
+
private Date dateCreated;
|
| 53 |
+
|
| 54 |
+
public Long getId() {
|
| 55 |
+
return id;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
public void setId(Long id) {
|
| 59 |
+
this.id = id;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
public String getCcNumber() {
|
| 63 |
+
return ccNumber;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
public void setCcNumber(String ccNumber) {
|
| 67 |
+
this.ccNumber = ccNumber;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
public Order getOrder() {
|
| 71 |
+
return order;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
public void setOrder(Order order) {
|
| 75 |
+
this.order = order;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
public int getNumber() {
|
| 79 |
+
return number;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
public void setNumber(int number) {
|
| 83 |
+
this.number = number;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
public Date getDateCreated() {
|
| 87 |
+
return dateCreated;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
public void setDateCreated(Date dateCreated) {
|
| 91 |
+
this.dateCreated = dateCreated;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
public double getTotalCost() {
|
| 95 |
+
return totalCost;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
public void setTotalCost(double totalCost) {
|
| 99 |
+
this.totalCost = totalCost;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
public boolean isPayed() {
|
| 103 |
+
return payed;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
public void setPayed(boolean payed) {
|
| 107 |
+
this.payed = payed;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
public static class Builder {
|
| 111 |
+
private Long id;
|
| 112 |
+
private Order order;
|
| 113 |
+
private int number;
|
| 114 |
+
private double totalCost;
|
| 115 |
+
private boolean payed = false;
|
| 116 |
+
private String ccNumber;
|
| 117 |
+
private Date dateCreated;
|
| 118 |
+
|
| 119 |
+
public Bill build() {
|
| 120 |
+
Bill bill = new Bill();
|
| 121 |
+
bill.id = id;
|
| 122 |
+
bill.order = order;
|
| 123 |
+
bill.number = number;
|
| 124 |
+
bill.totalCost = totalCost;
|
| 125 |
+
bill.payed = payed;
|
| 126 |
+
bill.ccNumber = ccNumber;
|
| 127 |
+
bill.dateCreated = dateCreated;
|
| 128 |
+
return bill;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
public Builder setId(Long id) {
|
| 132 |
+
this.id = id;
|
| 133 |
+
return this;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
public Builder setOrder(Order order) {
|
| 137 |
+
this.order = order;
|
| 138 |
+
return this;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
public Builder setNumber(int number) {
|
| 142 |
+
this.number = number;
|
| 143 |
+
return this;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
public Builder setTotalCost(double totalCost) {
|
| 147 |
+
this.totalCost = totalCost;
|
| 148 |
+
return this;
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
public Builder setPayed(boolean payed) {
|
| 152 |
+
this.payed = payed;
|
| 153 |
+
return this;
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
public Builder setCcNumber(String ccNumber) {
|
| 157 |
+
this.ccNumber = ccNumber;
|
| 158 |
+
return this;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
public Builder setDateCreated(Date dateCreated) {
|
| 162 |
+
this.dateCreated = dateCreated;
|
| 163 |
+
return this;
|
| 164 |
+
}
|
| 165 |
+
}
|
| 166 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Cart.java
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ericGenerator;
|
| 4 |
+
import org.hibernate.annotations.Parameter;
|
| 5 |
+
|
| 6 |
+
import javax.persistence.*;
|
| 7 |
+
import java.io.Serializable;
|
| 8 |
+
import java.util.ArrayList;
|
| 9 |
+
import java.util.Collections;
|
| 10 |
+
import java.util.List;
|
| 11 |
+
import java.util.Objects;
|
| 12 |
+
|
| 13 |
+
/**
|
| 14 |
+
* Cart of the {@link UserAccount}.
|
| 15 |
+
*/
|
| 16 |
+
@Entity
|
| 17 |
+
@Table(name = "cart")
|
| 18 |
+
public class Cart implements Serializable {
|
| 19 |
+
private static final long serialVersionUID = -6884843696895527904L;
|
| 20 |
+
|
| 21 |
+
@Id
|
| 22 |
+
@Column(name = "id", unique = true, nullable = false)
|
| 23 |
+
@GeneratedValue(generator = "gen")
|
| 24 |
+
@GenericGenerator(name = "gen", strategy = "foreign", parameters = @Parameter(name = "property", value = "userAccount"))
|
| 25 |
+
private long id;
|
| 26 |
+
|
| 27 |
+
@OneToOne
|
| 28 |
+
@PrimaryKeyJoinColumn
|
| 29 |
+
private UserAccount userAccount;
|
| 30 |
+
|
| 31 |
+
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true,
|
| 32 |
+
targetEntity = CartItem.class, mappedBy = "cart")
|
| 33 |
+
private List<CartItem> cartItems = new ArrayList<>(0);
|
| 34 |
+
|
| 35 |
+
@Column(name = "delivery_included", nullable = false)
|
| 36 |
+
private boolean deliveryIncluded = true;
|
| 37 |
+
|
| 38 |
+
public Cart() {
|
| 39 |
+
this(null);
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
public Cart(UserAccount userAccount) {
|
| 43 |
+
this.userAccount = userAccount;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
public boolean isEmpty() {
|
| 47 |
+
return cartItems.isEmpty();
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
public CartItem update(Product product, int newQuantity) {
|
| 51 |
+
if (product == null)
|
| 52 |
+
return null;
|
| 53 |
+
|
| 54 |
+
CartItem updatedItem = null;
|
| 55 |
+
if (newQuantity > 0) {
|
| 56 |
+
CartItem existingItem = findItem(product.getId());
|
| 57 |
+
if (existingItem == null) {
|
| 58 |
+
CartItem newItem = new CartItem(this, product, newQuantity);
|
| 59 |
+
cartItems.add(newItem);
|
| 60 |
+
updatedItem = newItem;
|
| 61 |
+
} else {
|
| 62 |
+
existingItem.setQuantity(newQuantity);
|
| 63 |
+
updatedItem = existingItem;
|
| 64 |
+
}
|
| 65 |
+
} else {
|
| 66 |
+
removeItem(product.getId());
|
| 67 |
+
}
|
| 68 |
+
return updatedItem;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
private void removeItem(long productId) {
|
| 72 |
+
cartItems.removeIf(item -> item.getProduct().getId() == productId);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
private CartItem findItem(long productId) {
|
| 76 |
+
for (CartItem existingItem : cartItems) {
|
| 77 |
+
if (existingItem.getProduct().getId() == productId)
|
| 78 |
+
return existingItem;
|
| 79 |
+
}
|
| 80 |
+
return null;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
private double calculateItemsCost() {
|
| 84 |
+
return cartItems.stream()
|
| 85 |
+
.mapToDouble(CartItem::calculateCost)
|
| 86 |
+
.sum();
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
public void clear() {
|
| 90 |
+
cartItems.clear();
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
public long getId() {
|
| 94 |
+
return id;
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
public void setId(long id) {
|
| 98 |
+
this.id = id;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
public UserAccount getUserAccount() {
|
| 102 |
+
return userAccount;
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
public void setUserAccount(UserAccount userAccount) {
|
| 106 |
+
this.userAccount = userAccount;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
public List<CartItem> getCartItems() {
|
| 110 |
+
return Collections.unmodifiableList(cartItems);
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
public boolean isDeliveryIncluded() {
|
| 114 |
+
return deliveryIncluded;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
public void setDeliveryIncluded(boolean deliveryIncluded) {
|
| 118 |
+
this.deliveryIncluded = deliveryIncluded;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
public int getItemsCount() {
|
| 122 |
+
return cartItems.size();
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
public double getItemsCost() {
|
| 126 |
+
return calculateItemsCost();
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
@Override
|
| 130 |
+
public boolean equals(Object o) {
|
| 131 |
+
if (this == o) return true;
|
| 132 |
+
if (o == null || getClass() != o.getClass()) return false;
|
| 133 |
+
Cart cart = (Cart) o;
|
| 134 |
+
return deliveryIncluded == cart.deliveryIncluded &&
|
| 135 |
+
Objects.equals(id, cart.id) &&
|
| 136 |
+
Objects.equals(cartItems, cart.cartItems);
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
@Override
|
| 140 |
+
public int hashCode() {
|
| 141 |
+
return Objects.hash(id, cartItems, deliveryIncluded);
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
public static class Builder {
|
| 145 |
+
private long id;
|
| 146 |
+
private UserAccount userAccount;
|
| 147 |
+
private List<CartItem> cartItems = new ArrayList<>(0);
|
| 148 |
+
private boolean deliveryIncluded = true;
|
| 149 |
+
|
| 150 |
+
public Builder() {
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
public Builder(Cart cart) {
|
| 154 |
+
id = cart.id;
|
| 155 |
+
userAccount = cart.userAccount;
|
| 156 |
+
cartItems = cart.cartItems;
|
| 157 |
+
deliveryIncluded = cart.deliveryIncluded;
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
public Cart build() {
|
| 161 |
+
Cart cart = new Cart();
|
| 162 |
+
cart.id = id;
|
| 163 |
+
cart.userAccount = userAccount;
|
| 164 |
+
cart.cartItems = cartItems;
|
| 165 |
+
cart.deliveryIncluded = deliveryIncluded;
|
| 166 |
+
return cart;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
public Builder setId(long id) {
|
| 170 |
+
this.id = id;
|
| 171 |
+
return this;
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
public Builder setUserAccount(UserAccount userAccount) {
|
| 175 |
+
this.userAccount = userAccount;
|
| 176 |
+
return this;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
public Builder setDeliveryIncluded(boolean deliveryIncluded) {
|
| 180 |
+
this.deliveryIncluded = deliveryIncluded;
|
| 181 |
+
return this;
|
| 182 |
+
}
|
| 183 |
+
}
|
| 184 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/CartItem.java
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.domain;
|
| 2 |
+
|
| 3 |
+
import javax.persistence.Column;
|
| 4 |
+
import javax.persistence.EmbeddedId;
|
| 5 |
+
import javax.persistence.Entity;
|
| 6 |
+
import javax.persistence.FetchType;
|
| 7 |
+
import javax.persistence.JoinColumn;
|
| 8 |
+
import javax.persistence.ManyToOne;
|
| 9 |
+
import javax.persistence.MapsId;
|
| 10 |
+
import javax.persistence.Table;
|
| 11 |
+
import java.io.Serializable;
|
| 12 |
+
import java.util.Objects;
|
| 13 |
+
|
| 14 |
+
@Entity
|
| 15 |
+
@Table(name = "cart_item")
|
| 16 |
+
public class CartItem implements Serializable {
|
| 17 |
+
private static final long serialVersionUID = -3995571478236070123L;
|
| 18 |
+
|
| 19 |
+
@EmbeddedId
|
| 20 |
+
private CartItemId pk = new CartItemId();
|
| 21 |
+
|
| 22 |
+
@MapsId("cartId")
|
| 23 |
+
@JoinColumn(name = "cart_id", referencedColumnName = "id")
|
| 24 |
+
@ManyToOne(optional = false, fetch = FetchType.LAZY)
|
| 25 |
+
private Cart cart;
|
| 26 |
+
|
| 27 |
+
@MapsId("productId")
|
| 28 |
+
@JoinColumn(name = "product_id", referencedColumnName = "id")
|
| 29 |
+
@ManyToOne(optional = false, fetch = FetchType.EAGER)
|
| 30 |
+
private Product product;
|
| 31 |
+
|
| 32 |
+
@Column(name = "quantity")
|
| 33 |
+
private int quantity;
|
| 34 |
+
|
| 35 |
+
public CartItem() {
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
public CartItem(Cart cart, Product product, int quantity) {
|
| 39 |
+
this.pk = new CartItemId(cart.getId(), product.getId());
|
| 40 |
+
this.cart = cart;
|
| 41 |
+
this.product = product;
|
| 42 |
+
this.quantity = quantity;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
public double calculateCost() {
|
| 46 |
+
return quantity * product.getPrice();
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
public int getQuantity() {
|
| 50 |
+
return quantity;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
public void setQuantity(int quantity) {
|
| 54 |
+
this.quantity = quantity;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
public Product getProduct() {
|
| 58 |
+
return product;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
public void setProduct(Product product) {
|
| 62 |
+
this.product = product;
|
| 63 |
+
pk.setProduct(product.getId());
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
@Override
|
| 67 |
+
public boolean equals(Object o) {
|
| 68 |
+
if (this == o) {
|
| 69 |
+
return true;
|
| 70 |
+
}
|
| 71 |
+
if (o == null || getClass() != o.getClass()) {
|
| 72 |
+
return false;
|
| 73 |
+
}
|
| 74 |
+
CartItem that = (CartItem) o;
|
| 75 |
+
return Objects.equals(pk, that.pk);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
@Override
|
| 79 |
+
public int hashCode() {
|
| 80 |
+
return (pk != null ? pk.hashCode() : 0);
|
| 81 |
+
}
|
| 82 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/CartItemId.java
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.domain;
|
| 2 |
+
|
| 3 |
+
import javax.persistence.Embeddable;
|
| 4 |
+
import java.io.Serializable;
|
| 5 |
+
import java.util.Objects;
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Primary key of the {@link CartItem}.
|
| 9 |
+
*/
|
| 10 |
+
@Embeddable
|
| 11 |
+
public class CartItemId implements Serializable {
|
| 12 |
+
private static final long serialVersionUID = -1255025293895062037L;
|
| 13 |
+
|
| 14 |
+
private long cartId;
|
| 15 |
+
private long productId;
|
| 16 |
+
|
| 17 |
+
public CartItemId() {
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
public CartItemId(long cartId, long productId) {
|
| 21 |
+
this.cartId = cartId;
|
| 22 |
+
this.productId = productId;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
public long getCart() {
|
| 26 |
+
return cartId;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
public void setCart(long orderId) {
|
| 30 |
+
this.cartId = orderId;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
public long getProduct() {
|
| 34 |
+
return productId;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
public void setProduct(long productId) {
|
| 38 |
+
this.productId = productId;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
@Override
|
| 42 |
+
public boolean equals(Object o) {
|
| 43 |
+
if (this == o) return true;
|
| 44 |
+
if (o == null || getClass() != o.getClass()) return false;
|
| 45 |
+
CartItemId that = (CartItemId) o;
|
| 46 |
+
return cartId == that.cartId &&
|
| 47 |
+
productId == that.productId;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
@Override
|
| 51 |
+
public int hashCode() {
|
| 52 |
+
return Objects.hash(cartId, productId);
|
| 53 |
+
}
|
| 54 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Contacts.java
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.domain;
|
| 2 |
+
|
| 3 |
+
import org.hibernate.annotations.GenericGenerator;
|
| 4 |
+
import org.hibernate.annotations.Parameter;
|
| 5 |
+
|
| 6 |
+
import javax.persistence.*;
|
| 7 |
+
import java.io.Serializable;
|
| 8 |
+
import java.util.Objects;
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* Contacts of the {@link UserAccount}.
|
| 12 |
+
*/
|
| 13 |
+
@Entity
|
| 14 |
+
@Table(name = "contacts")
|
| 15 |
+
public class Contacts implements Serializable {
|
| 16 |
+
private static final long serialVersionUID = 582080671801480110L;
|
| 17 |
+
|
| 18 |
+
@Id
|
| 19 |
+
@Column(name = "id", unique = true, nullable = false)
|
| 20 |
+
@GeneratedValue(generator = "gen")
|
| 21 |
+
@GenericGenerator(name = "gen", strategy = "foreign", parameters = @Parameter(name = "property", value = "userAccount"))
|
| 22 |
+
private Long id;
|
| 23 |
+
|
| 24 |
+
@OneToOne
|
| 25 |
+
@PrimaryKeyJoinColumn
|
| 26 |
+
private UserAccount userAccount; // todo: change to 'String userLogin'
|
| 27 |
+
|
| 28 |
+
@Column(name = "phone", nullable = false)
|
| 29 |
+
private String phone;
|
| 30 |
+
|
| 31 |
+
@Column(name = "address", nullable = false)
|
| 32 |
+
private String address;
|
| 33 |
+
|
| 34 |
+
@Column(name = "city_region", nullable = false)
|
| 35 |
+
private String cityAndRegion;
|
| 36 |
+
|
| 37 |
+
public Contacts() {
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
public Contacts(UserAccount userAccount, String phone, String address/*, String cityAndRegion*/) {
|
| 41 |
+
this.userAccount = userAccount;
|
| 42 |
+
this.phone = phone;
|
| 43 |
+
this.address = address;
|
| 44 |
+
this.cityAndRegion = "13";
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
public Long getId() {
|
| 48 |
+
return id;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
public void setId(Long id) {
|
| 52 |
+
this.id = id;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
public UserAccount getUserAccount() {
|
| 56 |
+
return userAccount;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
public void setUserAccount(UserAccount userAccount) {
|
| 60 |
+
this.userAccount = userAccount;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
public String getPhone() {
|
| 64 |
+
return phone;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
public void setPhone(String phone) {
|
| 68 |
+
this.phone = phone;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
public String getAddress() {
|
| 72 |
+
return address;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
public void setAddress(String address) {
|
| 76 |
+
this.address = address;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
public String getCityAndRegion() {
|
| 80 |
+
return cityAndRegion;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
public void setCityAndRegion(String cityAndRegion) {
|
| 84 |
+
this.cityAndRegion = cityAndRegion;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
@Override
|
| 88 |
+
public boolean equals(Object o) {
|
| 89 |
+
if (this == o) return true;
|
| 90 |
+
if (o == null || getClass() != o.getClass()) return false;
|
| 91 |
+
Contacts contacts = (Contacts) o;
|
| 92 |
+
return Objects.equals(id, contacts.id) &&
|
| 93 |
+
Objects.equals(phone, contacts.phone) &&
|
| 94 |
+
Objects.equals(address, contacts.address) &&
|
| 95 |
+
Objects.equals(cityAndRegion, contacts.cityAndRegion);
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
@Override
|
| 99 |
+
public int hashCode() {
|
| 100 |
+
return Objects.hash(id, phone, address, cityAndRegion);
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
public static class Builder {
|
| 104 |
+
private Long id;
|
| 105 |
+
private UserAccount userAccount;
|
| 106 |
+
private String phone;
|
| 107 |
+
private String address;
|
| 108 |
+
private String cityAndRegion;
|
| 109 |
+
|
| 110 |
+
public Builder() {
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
public Builder(Contacts contacts) {
|
| 114 |
+
id = contacts.id;
|
| 115 |
+
userAccount = contacts.userAccount;
|
| 116 |
+
phone = contacts.phone;
|
| 117 |
+
address = contacts.address;
|
| 118 |
+
cityAndRegion = contacts.cityAndRegion;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
public Contacts build() {
|
| 122 |
+
Contacts contacts = new Contacts();
|
| 123 |
+
contacts.id = id;
|
| 124 |
+
contacts.userAccount = userAccount;
|
| 125 |
+
contacts.phone = phone;
|
| 126 |
+
contacts.address = address;
|
| 127 |
+
contacts.cityAndRegion = cityAndRegion;
|
| 128 |
+
return contacts;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
public Builder setId(Long id) {
|
| 132 |
+
this.id = id;
|
| 133 |
+
return this;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
public Builder setUserAccount(UserAccount userAccount) {
|
| 137 |
+
this.userAccount = userAccount;
|
| 138 |
+
return this;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
public Builder setPhone(String phone) {
|
| 142 |
+
this.phone = phone;
|
| 143 |
+
return this;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
public Builder setAddress(String address) {
|
| 147 |
+
this.address = address;
|
| 148 |
+
return this;
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
public Builder setCityAndRegion(String cityAndRegion) {
|
| 152 |
+
this.cityAndRegion = cityAndRegion;
|
| 153 |
+
return this;
|
| 154 |
+
}
|
| 155 |
+
}
|
| 156 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Distillery.java
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.domain;
|
| 2 |
+
|
| 3 |
+
import javax.persistence.Column;
|
| 4 |
+
import javax.persistence.Entity;
|
| 5 |
+
import javax.persistence.FetchType;
|
| 6 |
+
import javax.persistence.GeneratedValue;
|
| 7 |
+
import javax.persistence.GenerationType;
|
| 8 |
+
import javax.persistence.Id;
|
| 9 |
+
import javax.persistence.JoinColumn;
|
| 10 |
+
import javax.persistence.ManyToOne;
|
| 11 |
+
import javax.persistence.Table;
|
| 12 |
+
import javax.validation.constraints.NotEmpty;
|
| 13 |
+
import javax.validation.constraints.Pattern;
|
| 14 |
+
import java.io.Serializable;
|
| 15 |
+
import java.util.Objects;
|
| 16 |
+
|
| 17 |
+
@Entity
|
| 18 |
+
@Table(name = "distillery")
|
| 19 |
+
public class Distillery implements Serializable {
|
| 20 |
+
private static final long serialVersionUID = -1491932412037172392L;
|
| 21 |
+
|
| 22 |
+
@Id
|
| 23 |
+
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
| 24 |
+
@Column(name = "id", insertable = false, updatable = false, nullable = false)
|
| 25 |
+
private Long id;
|
| 26 |
+
|
| 27 |
+
@Column(name = "title", nullable = false)
|
| 28 |
+
@NotEmpty
|
| 29 |
+
@Pattern(regexp = "^[^#$%^*()']*$")
|
| 30 |
+
private String title;
|
| 31 |
+
|
| 32 |
+
@ManyToOne(fetch = FetchType.EAGER)
|
| 33 |
+
@JoinColumn(name = "region_id", nullable = false)
|
| 34 |
+
private Region region;
|
| 35 |
+
|
| 36 |
+
@Column(name = "description")
|
| 37 |
+
private String description;
|
| 38 |
+
|
| 39 |
+
public Long getId() {
|
| 40 |
+
return id;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
public void setId(Long id) {
|
| 44 |
+
this.id = id;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
public String getTitle() {
|
| 48 |
+
return title;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
public void setTitle(String title) {
|
| 52 |
+
this.title = title;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
public String getDescription() {
|
| 56 |
+
return description;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
public void setDescription(String description) {
|
| 60 |
+
this.description = description;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
public Region getRegion() {
|
| 64 |
+
return region;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
public void setRegion(Region region) {
|
| 68 |
+
this.region = region;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
@Override
|
| 72 |
+
public boolean equals(Object o) {
|
| 73 |
+
if (this == o) return true;
|
| 74 |
+
if (o == null || getClass() != o.getClass()) return false;
|
| 75 |
+
Distillery that = (Distillery) o;
|
| 76 |
+
return Objects.equals(id, that.id) &&
|
| 77 |
+
Objects.equals(title, that.title) &&
|
| 78 |
+
Objects.equals(region, that.region) &&
|
| 79 |
+
Objects.equals(description, that.description);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
@Override
|
| 83 |
+
public int hashCode() {
|
| 84 |
+
return Objects.hash(id, title, region, description);
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
public static class Builder {
|
| 88 |
+
private Long id;
|
| 89 |
+
private String title;
|
| 90 |
+
private Region region;
|
| 91 |
+
private String description;
|
| 92 |
+
|
| 93 |
+
public Builder() {
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
public Builder(Distillery source) {
|
| 97 |
+
id = source.id;
|
| 98 |
+
title = source.title;
|
| 99 |
+
region = source.region;
|
| 100 |
+
description = source.description;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
public Distillery build() {
|
| 104 |
+
Distillery distillery = new Distillery();
|
| 105 |
+
distillery.id = id;
|
| 106 |
+
distillery.title = title;
|
| 107 |
+
distillery.region = region;
|
| 108 |
+
distillery.description = description;
|
| 109 |
+
return distillery;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
public Builder setId(Long id) {
|
| 113 |
+
this.id = id;
|
| 114 |
+
return this;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
public Builder setTitle(String title) {
|
| 118 |
+
this.title = title;
|
| 119 |
+
return this;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
public Builder setRegion(Region region) {
|
| 123 |
+
this.region = region;
|
| 124 |
+
return this;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
public Builder setDescription(String description) {
|
| 128 |
+
this.description = description;
|
| 129 |
+
return this;
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Order.java
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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| 3 |
+
import org.hibernate.annotations.GenericGenerator;
|
| 4 |
+
import org.hibernate.annotations.Parameter;
|
| 5 |
+
|
| 6 |
+
import javax.persistence.*;
|
| 7 |
+
import java.io.Serializable;
|
| 8 |
+
import java.util.Date;
|
| 9 |
+
import java.util.HashSet;
|
| 10 |
+
import java.util.Objects;
|
| 11 |
+
import java.util.Set;
|
| 12 |
+
|
| 13 |
+
import static javax.persistence.TemporalType.TIMESTAMP;
|
| 14 |
+
|
| 15 |
+
/**
|
| 16 |
+
* Order of the {@link UserAccount}.
|
| 17 |
+
*/
|
| 18 |
+
@Entity
|
| 19 |
+
@Table(name = "customer_order")
|
| 20 |
+
public class Order implements Serializable {
|
| 21 |
+
private static final long serialVersionUID = -8328584058042877489L;
|
| 22 |
+
|
| 23 |
+
@Id
|
| 24 |
+
@Column(name = "id", insertable = false, updatable = false, nullable = false)
|
| 25 |
+
@GeneratedValue(generator = "gen")
|
| 26 |
+
@GenericGenerator(name = "gen", strategy = "foreign", parameters = @Parameter(name = "property", value = "bill"))
|
| 27 |
+
private Long id;
|
| 28 |
+
|
| 29 |
+
@ManyToOne(fetch = FetchType.EAGER)
|
| 30 |
+
@JoinColumn(name = "user_account_id")
|
| 31 |
+
private UserAccount userAccount;
|
| 32 |
+
|
| 33 |
+
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER,
|
| 34 |
+
targetEntity = OrderedProduct.class, mappedBy = "order")
|
| 35 |
+
// @OneToMany(fetch = FetchType.LAZY, mappedBy ="pk.order", cascade =
|
| 36 |
+
// {CascadeType.PERSIST, CascadeType.MERGE})
|
| 37 |
+
// @Cascade({CascadeType.SAVE_UPDATE, CascadeType.DELETE_ORPHAN})
|
| 38 |
+
private Set<OrderedProduct> orderedProducts = new HashSet<>(0);
|
| 39 |
+
|
| 40 |
+
@OneToOne(mappedBy = "order", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
| 41 |
+
private Bill bill;
|
| 42 |
+
|
| 43 |
+
@Column(name = "products_cost", nullable = false)
|
| 44 |
+
private double productsCost;
|
| 45 |
+
|
| 46 |
+
@Column(name = "date_created", nullable = false)
|
| 47 |
+
@Temporal(TIMESTAMP)
|
| 48 |
+
private Date dateCreated;
|
| 49 |
+
|
| 50 |
+
@Column(name = "delivery_cost")
|
| 51 |
+
private int deliveryCost;
|
| 52 |
+
|
| 53 |
+
@Column(name = "delivery_included", nullable = false)
|
| 54 |
+
private boolean deliveryIncluded;
|
| 55 |
+
|
| 56 |
+
@Column(name = "executed", nullable = false)
|
| 57 |
+
private boolean executed;
|
| 58 |
+
|
| 59 |
+
public Long getId() {
|
| 60 |
+
return id;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
public void setId(Long id) {
|
| 64 |
+
this.id = id;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
public double getProductsCost() {
|
| 68 |
+
return productsCost;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
public void setProductsCost(double amount) {
|
| 72 |
+
this.productsCost = amount;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
public Date getDateCreated() {
|
| 76 |
+
return dateCreated;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
public void setDateCreated(Date name) {
|
| 80 |
+
this.dateCreated = name;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
public UserAccount getUserAccount() {
|
| 84 |
+
return userAccount;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
public void setUserAccount(UserAccount userAccount) {
|
| 88 |
+
this.userAccount = userAccount;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
public Set<OrderedProduct> getOrderedProducts() {
|
| 92 |
+
return orderedProducts;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
public void setOrderedProducts(Set<OrderedProduct> products) {
|
| 96 |
+
this.orderedProducts = products;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
public int getDeliveryCost() {
|
| 100 |
+
return deliveryCost;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
public void setDeliveryCost(int deliveryСost) {
|
| 104 |
+
this.deliveryCost = deliveryСost;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
public boolean isDeliveryIncluded() {
|
| 108 |
+
return deliveryIncluded;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
public void setDeliveryIncluded(boolean deliveryIncluded) {
|
| 112 |
+
this.deliveryIncluded = deliveryIncluded;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
public Bill getBill() {
|
| 116 |
+
return bill;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
public void setBill(Bill bill) {
|
| 120 |
+
this.bill = bill;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
public boolean isExecuted() {
|
| 124 |
+
return executed;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
public void setExecuted(boolean executed) {
|
| 128 |
+
this.executed = executed;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
@Override
|
| 132 |
+
public boolean equals(Object o) {
|
| 133 |
+
if (this == o) return true;
|
| 134 |
+
if (o == null || getClass() != o.getClass()) return false;
|
| 135 |
+
Order order = (Order) o;
|
| 136 |
+
return Double.compare(order.productsCost, productsCost) == 0 &&
|
| 137 |
+
deliveryCost == order.deliveryCost &&
|
| 138 |
+
deliveryIncluded == order.deliveryIncluded &&
|
| 139 |
+
executed == order.executed &&
|
| 140 |
+
Objects.equals(id, order.id) &&
|
| 141 |
+
Objects.equals(userAccount, order.userAccount) &&
|
| 142 |
+
Objects.equals(orderedProducts, order.orderedProducts) &&
|
| 143 |
+
Objects.equals(bill, order.bill) &&
|
| 144 |
+
Objects.equals(dateCreated, order.dateCreated);
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
@Override
|
| 148 |
+
public int hashCode() {
|
| 149 |
+
return Objects.hash(id, userAccount, orderedProducts, bill, productsCost, dateCreated, deliveryCost, deliveryIncluded, executed);
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
public static class Builder {
|
| 153 |
+
private Long id;
|
| 154 |
+
private UserAccount userAccount;
|
| 155 |
+
private Set<OrderedProduct> orderedProducts = new HashSet<>();
|
| 156 |
+
private Bill bill;
|
| 157 |
+
private double productsCost;
|
| 158 |
+
private Date dateCreated;
|
| 159 |
+
private int deliveryCost;
|
| 160 |
+
private boolean deliveryIncluded;
|
| 161 |
+
private boolean executed;
|
| 162 |
+
|
| 163 |
+
public Order build() {
|
| 164 |
+
Order order = new Order();
|
| 165 |
+
order.id = id;
|
| 166 |
+
order.userAccount = userAccount;
|
| 167 |
+
order.orderedProducts = orderedProducts;
|
| 168 |
+
order.bill = bill;
|
| 169 |
+
order.productsCost = productsCost;
|
| 170 |
+
order.dateCreated = dateCreated;
|
| 171 |
+
order.deliveryCost = deliveryCost;
|
| 172 |
+
order.deliveryIncluded = deliveryIncluded;
|
| 173 |
+
order.executed = executed;
|
| 174 |
+
return order;
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
public Builder setId(Long id) {
|
| 178 |
+
this.id = id;
|
| 179 |
+
return this;
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
public Builder setUserAccount(UserAccount userAccount) {
|
| 183 |
+
this.userAccount = userAccount;
|
| 184 |
+
return this;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
public Builder setOrderedProducts(Set<OrderedProduct> orderedProducts) {
|
| 188 |
+
this.orderedProducts = orderedProducts;
|
| 189 |
+
return this;
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
public Builder setBill(Bill bill) {
|
| 193 |
+
this.bill = bill;
|
| 194 |
+
return this;
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
public Builder setProductsCost(double productsCost) {
|
| 198 |
+
this.productsCost = productsCost;
|
| 199 |
+
return this;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
public Builder setDateCreated(Date dateCreated) {
|
| 203 |
+
this.dateCreated = dateCreated;
|
| 204 |
+
return this;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
public Builder setDeliveryCost(int deliveryCost) {
|
| 208 |
+
this.deliveryCost = deliveryCost;
|
| 209 |
+
return this;
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
public Builder setDeliveryIncluded(boolean deliveryIncluded) {
|
| 213 |
+
this.deliveryIncluded = deliveryIncluded;
|
| 214 |
+
return this;
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
public Builder setExecuted(boolean executed) {
|
| 218 |
+
this.executed = executed;
|
| 219 |
+
return this;
|
| 220 |
+
}
|
| 221 |
+
}
|
| 222 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/OrderedProduct.java
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.domain;
|
| 2 |
+
|
| 3 |
+
import javax.persistence.*;
|
| 4 |
+
import java.io.Serializable;
|
| 5 |
+
import java.util.Objects;
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* {@link Product} of the {@link Order}.
|
| 9 |
+
*/
|
| 10 |
+
@Entity
|
| 11 |
+
@Table(name = "ordered_product")
|
| 12 |
+
public class OrderedProduct implements Serializable {
|
| 13 |
+
private static final long serialVersionUID = -2055528467252485472L;
|
| 14 |
+
|
| 15 |
+
@EmbeddedId
|
| 16 |
+
private OrderedProductId pk = new OrderedProductId();
|
| 17 |
+
|
| 18 |
+
@MapsId("orderId")
|
| 19 |
+
@JoinColumn(name = "customer_order_id", referencedColumnName = "id")
|
| 20 |
+
@ManyToOne(optional = false, fetch = FetchType.LAZY)
|
| 21 |
+
private Order order;
|
| 22 |
+
|
| 23 |
+
@MapsId("productId")
|
| 24 |
+
@JoinColumn(name = "product_id", referencedColumnName = "id")
|
| 25 |
+
@ManyToOne(optional = false, fetch = FetchType.EAGER)
|
| 26 |
+
private Product product;
|
| 27 |
+
|
| 28 |
+
@Column(name = "quantity")
|
| 29 |
+
private int quantity;
|
| 30 |
+
|
| 31 |
+
public OrderedProductId getPk() {
|
| 32 |
+
return pk;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
public void setPk(OrderedProductId pk) {
|
| 36 |
+
this.pk = pk;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
public int getQuantity() {
|
| 40 |
+
return quantity;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
public void setQuantity(int quantity) {
|
| 44 |
+
this.quantity = quantity;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
public Order getOrder() {
|
| 48 |
+
return order;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
public void setOrder(Order order) {
|
| 52 |
+
this.order = order;
|
| 53 |
+
getPk().setCustomerOrder(order.getId());
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
public Product getProduct() {
|
| 57 |
+
return product;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
public void setProduct(Product product) {
|
| 61 |
+
this.product = product;
|
| 62 |
+
getPk().setProduct(product.getId());
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
@Override
|
| 66 |
+
public boolean equals(Object o) {
|
| 67 |
+
if (this == o) return true;
|
| 68 |
+
if (o == null || getClass() != o.getClass()) return false;
|
| 69 |
+
OrderedProduct that = (OrderedProduct) o;
|
| 70 |
+
return quantity == that.quantity &&
|
| 71 |
+
Objects.equals(order.getId(), that.order.getId()) &&
|
| 72 |
+
Objects.equals(product.getId(), that.product.getId());
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
@Override
|
| 76 |
+
public int hashCode() {
|
| 77 |
+
return Objects.hash(order.getId(), product.getId(), quantity);
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
public static class Builder {
|
| 81 |
+
private Order order;
|
| 82 |
+
private Product product;
|
| 83 |
+
private int quantity;
|
| 84 |
+
|
| 85 |
+
public OrderedProduct build() {
|
| 86 |
+
OrderedProduct orderedProduct = new OrderedProduct();
|
| 87 |
+
orderedProduct.setOrder(order);
|
| 88 |
+
orderedProduct.setProduct(product);
|
| 89 |
+
orderedProduct.setQuantity(quantity);
|
| 90 |
+
return orderedProduct;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
public Builder setOrder(Order order) {
|
| 94 |
+
this.order = order;
|
| 95 |
+
return this;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
public Builder setProduct(Product product) {
|
| 99 |
+
this.product = product;
|
| 100 |
+
return this;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
public Builder setQuantity(int quantity) {
|
| 104 |
+
this.quantity = quantity;
|
| 105 |
+
return this;
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/OrderedProductId.java
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.domain;
|
| 2 |
+
|
| 3 |
+
import javax.persistence.*;
|
| 4 |
+
import java.io.*;
|
| 5 |
+
import java.util.*;
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Primary key of a {@link Product} inside the {@link Order}.
|
| 9 |
+
*/
|
| 10 |
+
@Embeddable
|
| 11 |
+
public class OrderedProductId implements Serializable {
|
| 12 |
+
private static final long serialVersionUID = 5368453186150127449L;
|
| 13 |
+
|
| 14 |
+
private Long orderId;
|
| 15 |
+
private Long productId;
|
| 16 |
+
|
| 17 |
+
public Long getCustomerOrder() {
|
| 18 |
+
return orderId;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
public void setCustomerOrder(Long orderId) {
|
| 22 |
+
this.orderId = orderId;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
public Long getProduct() {
|
| 26 |
+
return productId;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
public void setProduct(Long productId) {
|
| 30 |
+
this.productId = productId;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
@Override
|
| 34 |
+
public boolean equals(Object o) {
|
| 35 |
+
if (this == o) return true;
|
| 36 |
+
if (o == null || getClass() != o.getClass()) return false;
|
| 37 |
+
|
| 38 |
+
OrderedProductId that = (OrderedProductId) o;
|
| 39 |
+
|
| 40 |
+
if (!Objects.equals(orderId, that.orderId)) return false;
|
| 41 |
+
return Objects.equals(productId, that.productId);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
@Override
|
| 45 |
+
public int hashCode() {
|
| 46 |
+
int result;
|
| 47 |
+
result = (orderId != null ? orderId.hashCode() : 0);
|
| 48 |
+
result = 31 * result + (productId != null ? productId.hashCode() : 0);
|
| 49 |
+
return result;
|
| 50 |
+
}
|
| 51 |
+
}
|
aratrl-service/jdk11/market/market-core/src/main/java/market/domain/Product.java
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package market.domain;
|
| 2 |
+
|
| 3 |
+
import javax.persistence.Column;
|
| 4 |
+
import javax.persistence.Entity;
|
| 5 |
+
import javax.persistence.FetchType;
|
| 6 |
+
import javax.persistence.GeneratedValue;
|
| 7 |
+
import javax.persistence.GenerationType;
|
| 8 |
+
import javax.persistence.Id;
|
| 9 |
+
import javax.persistence.JoinColumn;
|
| 10 |
+
import javax.persistence.ManyToOne;
|
| 11 |
+
import javax.persistence.Table;
|
| 12 |
+
import javax.validation.constraints.Max;
|
| 13 |
+
import javax.validation.constraints.Min;
|
| 14 |
+
import javax.validation.constraints.NotEmpty;
|
| 15 |
+
import javax.validation.constraints.NotNull;
|
| 16 |
+
import javax.validation.constraints.Pattern;
|
| 17 |
+
import java.io.Serializable;
|
| 18 |
+
import java.util.Objects;
|
| 19 |
+
|
| 20 |
+
@Entity
|
| 21 |
+
@Table(name = "product")
|
| 22 |
+
public class Product implements Serializable {
|
| 23 |
+
private static final long serialVersionUID = -5637368176838137416L;
|
| 24 |
+
|
| 25 |
+
@Id
|
| 26 |
+
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
| 27 |
+
@Column(name = "id", insertable = false, updatable = false, nullable = false)
|
| 28 |
+
private Long id;
|
| 29 |
+
|
| 30 |
+
@ManyToOne(fetch = FetchType.EAGER)
|
| 31 |
+
@JoinColumn(name = "distillery_id", nullable = false)
|
| 32 |
+
private Distillery distillery;
|
| 33 |
+
|
| 34 |
+
@Column(name = "name", nullable = false)
|
| 35 |
+
@NotEmpty
|
| 36 |
+
@Pattern(regexp = "^[^#$%^&*()']*$")
|
| 37 |
+
private String name;
|
| 38 |
+
|
| 39 |
+
@Column(name = "price", nullable = false)
|
| 40 |
+
@NotNull
|
| 41 |
+
private Double price;
|
| 42 |
+
|
| 43 |
+
@Column(name = "description")
|
| 44 |
+
private String description;
|
| 45 |
+
|
| 46 |
+
@Column(name = "volume")
|
| 47 |
+
@NotNull
|
| 48 |
+
private Integer volume;
|
| 49 |
+
|
| 50 |
+
@Column(name = "alcohol")
|
| 51 |
+
@NotNull
|
| 52 |
+
@Min(value = 1)
|
| 53 |
+
@Max(value = 96)
|
| 54 |
+
private Float alcohol;
|
| 55 |
+
|
| 56 |
+
@Column(name = "age")
|
| 57 |
+
@Max(value = 2000)
|
| 58 |
+
private Integer age;
|
| 59 |
+
|
| 60 |
+
@Column(name = "available", nullable = false)
|
| 61 |
+
private boolean available = true;
|
| 62 |
+
|
| 63 |
+
public Long getId() {
|
| 64 |
+
return id;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
public void setId(Long id) {
|
| 68 |
+
this.id = id;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
public String getName() {
|
| 72 |
+
return name;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
public void setName(String name) {
|
| 76 |
+
this.name = name;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
public @NotNull Double getPrice() {
|
| 80 |
+
return price;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
public void setPrice(@NotNull Double price) {
|
| 84 |
+
this.price = price;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
public String getDescription() {
|
| 88 |
+
return description;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
public void setDescription(String description) {
|
| 92 |
+
this.description = description;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
public Integer getVolume() {
|
| 96 |
+
return volume;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
public void setVolume(Integer volume) {
|
| 100 |
+
this.volume = volume;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
public Float getAlcohol() {
|
| 104 |
+
return alcohol;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
public void setAlcohol(Float alcohol) {
|
| 108 |
+
this.alcohol = alcohol;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
public Integer getAge() {
|
| 112 |
+
return age;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
public void setAge(Integer age) {
|
| 116 |
+
this.age = age;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
public Distillery getDistillery() {
|
| 120 |
+
return distillery;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
public void setDistillery(Distillery distillery) {
|
| 124 |
+
this.distillery = distillery;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
public boolean isAvailable() {
|
| 128 |
+
return available;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
public void setAvailable(boolean available) {
|
| 132 |
+
this.available = available;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
@Override
|
| 136 |
+
public boolean equals(Object o) {
|
| 137 |
+
if (this == o) return true;
|
| 138 |
+
if (o == null || getClass() != o.getClass()) return false;
|
| 139 |
+
Product product = (Product) o;
|
| 140 |
+
return id == product.id &&
|
| 141 |
+
available == product.available &&
|
| 142 |
+
Objects.equals(distillery, product.distillery) &&
|
| 143 |
+
Objects.equals(name, product.name) &&
|
| 144 |
+
Objects.equals(price, product.price) &&
|
| 145 |
+
Objects.equals(description, product.description) &&
|
| 146 |
+
Objects.equals(volume, product.volume) &&
|
| 147 |
+
Objects.equals(alcohol, product.alcohol) &&
|
| 148 |
+
Objects.equals(age, product.age);
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
@Override
|
| 152 |
+
public int hashCode() {
|
| 153 |
+
return Objects.hash(id, distillery, name, price, description, volume, alcohol, age, available);
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
public static class Builder {
|
| 157 |
+
private Long id;
|
| 158 |
+
private Distillery distillery;
|
| 159 |
+
private String name;
|
| 160 |
+
private Double price;
|
| 161 |
+
private String description;
|
| 162 |
+
private Integer volume;
|
| 163 |
+
private Float alcohol;
|
| 164 |
+
private Integer age;
|
| 165 |
+
private boolean available = true;
|
| 166 |
+
|
| 167 |
+
public Builder() {
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
public Builder(Product product) {
|
| 171 |
+
id = product.id;
|
| 172 |
+
distillery = product.distillery;
|
| 173 |
+
name = product.name;
|
| 174 |
+
price = product.price;
|
| 175 |
+
description = product.description;
|
| 176 |
+
volume = product.volume;
|
| 177 |
+
alcohol = product.alcohol;
|
| 178 |
+
age = product.age;
|
| 179 |
+
available = product.available;
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
public Product build() {
|
| 183 |
+
Product product = new Product();
|
| 184 |
+
product.id = id;
|
| 185 |
+
product.distillery = distillery;
|
| 186 |
+
product.name = name;
|
| 187 |
+
product.price = price;
|
| 188 |
+
product.description = description;
|
| 189 |
+
product.volume = volume;
|
| 190 |
+
product.alcohol = alcohol;
|
| 191 |
+
product.age = age;
|
| 192 |
+
product.available = available;
|
| 193 |
+
return product;
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
public Builder setId(Long id) {
|
| 197 |
+
this.id = id;
|
| 198 |
+
return this;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
public Builder setDistillery(Distillery distillery) {
|
| 202 |
+
this.distillery = distillery;
|
| 203 |
+
return this;
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
public Builder setName(String name) {
|
| 207 |
+
this.name = name;
|
| 208 |
+
return this;
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
public Builder setPrice(@NotNull Double price) {
|
| 212 |
+
this.price = price;
|
| 213 |
+
return this;
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
public Builder setDescription(String description) {
|
| 217 |
+
this.description = description;
|
| 218 |
+
return this;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
public Builder setVolume(Integer volume) {
|
| 222 |
+
this.volume = volume;
|
| 223 |
+
return this;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
public Builder setAlcohol(Float alcohol) {
|
| 227 |
+
this.alcohol = alcohol;
|
| 228 |
+
return this;
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
public Builder setAge(Integer age) {
|
| 232 |
+
this.age = age;
|
| 233 |
+
return this;
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
+
public Builder setAvailable(boolean available) {
|
| 237 |
+
this.available = available;
|
| 238 |
+
return this;
|
| 239 |
+
}
|
| 240 |
+
}
|
| 241 |
+
}
|