Skip to content

Commit

Permalink
request body optional
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenharrison committed Nov 25, 2024
1 parent bcf494e commit 278ac09
Showing 1 changed file with 54 additions and 13 deletions.
67 changes: 54 additions & 13 deletions simple.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,60 @@
openapi: 3.0.1
info:
title: Test API
version: v1
title: Tufin
version: "2.0"
servers:
- url: https://localhost:9080
paths:
/partner-api/test/some-method:
get:
/api/v1.0/groups:
post:

Check notice on line 9 in simple.yaml

View workflow job for this annotation

GitHub Actions / oasdiff

endpoint-added

in API POST /api/v1.0/groups endpoint added
tags:
- Test
responses:
"201":
description: Success
/partner-api/test/another-method:
get:
tags:
- Test
- Group
operationId: createOneGroup
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GroupView'
description: Creates one project.
required: true
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GroupView'
description: OK
"409":
content:
application/json:
schema:
$ref: '#/components/schemas/GroupView'
description: Conflict
summary: Create One Project
components:
parameters:
groupId:
in: path
name: groupId
required: true
schema:
type: string
schemas:
GroupView:
type: object
properties:
data:
type: object
properties:
created:
type: string
format: date-time
readOnly: true
pattern: "^[a-z]+$"
id:
type: string
readOnly: true
name:
type: string
required:
- name

0 comments on commit 278ac09

Please sign in to comment.