Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cf-online-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KS Pardubický kraj
cf-online-api
Commits
74edc206
Verified
Commit
74edc206
authored
4 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Specifikace pro posty
parent
edd1172a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
openapi.yaml
+128
-9
128 additions, 9 deletions
openapi.yaml
with
128 additions
and
9 deletions
openapi.yaml
+
128
−
9
View file @
74edc206
...
@@ -19,6 +19,11 @@ servers:
...
@@ -19,6 +19,11 @@ servers:
description
:
Production server
description
:
Production server
components
:
components
:
securitySchemes
:
Bearer
:
name
:
Authorization
in
:
header
type
:
apiKey
schemas
:
schemas
:
ProgramScheduleEntry
:
ProgramScheduleEntry
:
type
:
object
type
:
object
...
@@ -39,22 +44,83 @@ components:
...
@@ -39,22 +44,83 @@ components:
description
:
description
:
type
:
string
type
:
string
nullable
:
true
nullable
:
true
expected
S
tart
A
t
:
expected
_s
tart
_a
t
:
type
:
string
type
:
string
expected
F
inish
A
t
:
expected
_f
inish
_a
t
:
type
:
string
type
:
string
nullable
:
true
nullable
:
true
securitySchemes
:
Ranking
:
Bearer
:
type
:
object
name
:
Authorization
properties
:
in
:
header
score
:
type
:
apiKey
type
:
integer
likes
:
type
:
integer
dislikes
:
type
:
integer
my_vote
:
type
:
integer
Author
:
type
:
object
properties
:
name
:
type
:
string
group
:
type
:
string
DiscussionPost
:
type
:
object
description
:
Prispevek do rozpravy
properties
:
id
:
type
:
integer
readOnly
:
true
datetime
:
type
:
string
is_archived
:
type
:
boolean
content
:
type
:
string
author
:
$ref
:
'
#/components/schemas/Author'
ranking
:
$ref
:
'
#/components/schemas/Ranking'
ProposalPost
:
type
:
object
description
:
NavrhPostupu
properties
:
id
:
type
:
integer
readOnly
:
true
datetime
:
type
:
string
is_archived
:
type
:
boolean
content
:
type
:
string
author
:
$ref
:
'
#/components/schemas/Author'
ranking
:
$ref
:
'
#/components/schemas/Ranking'
# responses:
# Unauthorized:
# description: Unauthorized
# schema:
# $ref: '#/definitions/ErrorResponse'
# Forbidden:
# description: Forbidden
# schema:
# $ref: '#/definitions/ErrorResponse'
# NotFound:
# description: The specified resource was not found
# schema:
# $ref: '#/definitions/ErrorResponse'
paths
:
paths
:
/program
:
/program
:
get
:
get
:
x-mojo-to
:
program#entries
tags
:
tags
:
-
program
-
program
m
summary
:
"
Program
zasedani"
summary
:
"
Program
zasedani"
operationId
:
getProgram
operationId
:
getProgram
responses
:
responses
:
...
@@ -66,4 +132,57 @@ paths:
...
@@ -66,4 +132,57 @@ paths:
type
:
array
type
:
array
items
:
items
:
$ref
:
'
#/components/schemas/ProgramScheduleEntry'
$ref
:
'
#/components/schemas/ProgramScheduleEntry'
x-mojo-to
:
program#entries
/posts
:
post
:
x-mojo-to
:
posts#create
security
:
-
Bearer
:
[
'
member'
,
'
regp'
]
tags
:
-
posts
summary
:
"
Pridat
zpravu"
operationId
:
createPost
requestBody
:
content
:
application/json
:
schema
:
type
:
object
properties
:
type
:
type
:
integer
enum
:
[
0
,
1
]
content
:
type
:
string
required
:
-
type
-
content
responses
:
201
:
description
:
Post created
content
:
application/json
:
schema
:
type
:
object
properties
:
id
:
type
:
integer
description
:
Post id
get
:
x-mojo-to
:
posts#list
security
:
-
Bearer
:
[]
tags
:
-
posts
summary
:
"
Zpravy"
operationId
:
getPosts
responses
:
200
:
description
:
Posts
content
:
application/json
:
schema
:
type
:
array
items
:
oneOf
:
-
$ref
:
'
#/components/schemas/DiscussionPost'
-
$ref
:
'
#/components/schemas/ProposalPost'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment