BAEL-6258 | Article code (#13782)
* BAEL-6258 | Article code * Renaming test class
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"openapi": "3.0.0",
|
||||
"info": {
|
||||
"title": "User APIs",
|
||||
"version": "1.0"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"url": "https://jsonplaceholder.typicode.com",
|
||||
"description": "Json Place Holder Service"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"/users/{id}": {
|
||||
"parameters": [
|
||||
{
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"summary": "Fetch user by ID",
|
||||
"tags": [
|
||||
"User"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"operationId": "get-users-user_id",
|
||||
"description": "Retrieve a specific user by ID"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
openapi: 3.0.0
|
||||
info:
|
||||
title: User APIs
|
||||
version: '1.0'
|
||||
servers:
|
||||
- url: https://jsonplaceholder.typicode.com
|
||||
description: Json Place Holder Service
|
||||
paths:
|
||||
/users/{id}:
|
||||
parameters:
|
||||
- schema:
|
||||
type: integer
|
||||
name: id
|
||||
in: path
|
||||
required: true
|
||||
get:
|
||||
summary: Fetch user by ID
|
||||
tags:
|
||||
- User
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
operationId: get-users-user_id
|
||||
description: Retrieve a specific user by ID
|
||||
Reference in New Issue
Block a user