Swagger open api macro | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||
openapi: 3.0.3
info:
title: SITDC REST API
version: '1.0'
description: |
Path structure
|Path type|Path structure |Description |
|---------|-----------------------------------------------------|---------------------|
|URI |http://host:port/context/rest/smartissuetemplates/1.0|Root of the SITDC API|
tags:
- name: Tag
description: SITDC Tag
externalDocs:
description: Find out more about Tags
url: https://appsdelivered.atlassian.net/wiki/spaces/SIT/pages/932872193/Tags
paths:
/smartissuetemplates/1.0/tag:
post:
tags:
- Tag
summary: Add a new Tag
description: Creates a Tag
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- text
properties:
text:
type: string
example: 'New Tag'
responses:
'201':
description: Successfull operation
content:
application/json:
schema:
$ref: '#/components/schemas/Tag'
'400':
description: Invalid data supplied
content:
application/json:
schema:
type: string
description: Error message
put:
tags:
- Tag
summary: Update a Tag
description: Returns an updated Tag
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Tag'
responses:
'200':
description: Successfull operation
content:
application/json:
schema:
$ref: '#/components/schemas/Tag'
'400':
description: Invalid data supplied
content:
application/json:
schema:
type: string
description: Error message
'404':
description: Tag not found
content:
application/json:
schema:
type: string
description: Error message
/smartissuetemplates/1.0/tag/{tagId}:
delete:
tags:
- Tag
summary: Delete a Tag by ID
description: Deletes a Tag by ID
parameters:
- name: tagId
in: path
required: true
schema:
type: integer
responses:
'204':
description: Successfull operation
'400':
description: Tag ID not supplied
'404':
description: Tag not found
content:
application/json:
schema:
type: string
description: Error message
/smartissuetemplates/1.0/tag/unique:
post:
tags:
- Tag
summary: Check if a Tag is unique
description: Checks if a Tag is unique
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Tag'
responses:
'200':
description: Successfull operation
content:
application/json:
schema:
type: boolean
components:
schemas:
Tag:
required:
- id
- text
type: object
properties:
id:
type: integer
example: 1
text:
type: string
example: New Tag
owner:
$ref: '#/components/schemas/User'
created:
type: integer
example: 1691694943294
isNew:
type: boolean
example: false
updateAuthor:
$ref: '#/components/schemas/User'
updated:
type: integer
example: 1691694943294
User:
required:
- username
type: object
properties:
username:
type: string
example: testUser
userKey:
type: string
example: JIRAUSER122
displayName:
type: string
example: Test User
admin:
type: boolean
example: false
userEmail:
type: string
example: user@example.com
avatarUrl:
type: string |
Page Comparison
General
Content
Integrations