Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Competify
Docs
Commits
e12bb5a0
Commit
e12bb5a0
authored
Apr 27, 2018
by
Bernardo Lucas Almeida Sunderhus
Committed by
bernardosunderhus
Apr 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adicionando documentação da api de consumo de uma prova
parent
753339aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
397 additions
and
0 deletions
+397
-0
ExamPlayer.api.ts
Api/ExamPlayer.api.ts
+71
-0
ExamPlayer.yaml
Api/ExamPlayer.yaml
+326
-0
No files found.
Api/ExamPlayer.api.ts
0 → 100644
View file @
e12bb5a0
interface
Persistent
{
oid
:
number
}
export
enum
QuestionType
{
SUBJECTIVE
,
OBJECTIVE
}
export
enum
ExamQuestionStatus
{
ACTIVE
,
CANCELED
}
export
enum
ExamType
{
SUBJECTIVE_ONLY
,
OBJECTIVE_ONLY
,
MIXED
}
export
enum
ExamDeploymentStatus
{}
export
enum
ExamDeploymentType
{
ONLINE
,
ON_SITE
}
export
interface
QuestionCategory
extends
Persistent
{
label
:
string
questions
:
Question
[]
|
number
[]
}
export
interface
QuestionAlternative
extends
Persistent
{
order
:
number
statement
:
string
}
export
interface
Question
extends
Persistent
{
type
:
QuestionType
statement
:
string
categories
:
QuestionCategory
[]
|
number
[]
}
export
interface
SubjectiveQuestion
extends
Question
{
answerKey
:
string
}
export
interface
ObjectiveQuestion
extends
Question
{
answerKey
:
QuestionAlternative
|
number
alternatives
:
QuestionAlternative
[]
|
number
[]
}
export
interface
ExamQuestionGroup
extends
Persistent
{
label
:
string
weight
:
number
}
export
interface
ExamQuestion
extends
Persistent
{
question
:
Question
|
number
order
:
number
weight
:
number
status
:
ExamQuestionStatus
}
export
interface
Exam
extends
Persistent
{
cover
:
string
date
:
string
label
:
string
questions
:
ExamQuestion
[]
|
number
[]
groups
:
ExamQuestionGroup
[]
|
number
[]
type
:
ExamType
}
export
interface
ExamDeployment
extends
Persistent
{
date
:
string
status
:
ExamDeploymentStatus
type
:
ExamDeploymentType
exam
:
Exam
|
number
}
export
interface
OnlineExamDeployment
extends
ExamDeployment
{
enforceSequence
:
boolean
}
export
interface
OnSiteExamDeployment
extends
ExamDeployment
{
local
:
string
}
Api/ExamPlayer.yaml
0 → 100644
View file @
e12bb5a0
paths
:
'
/assessments/{oid}'
:
get
:
summary
:
'
Obtains
the
assessment'
responses
:
'
200'
:
description
:
'
Successfully
received
the
assessment'
schema
:
x-oad-type
:
reference
$ref
:
'
#/definitions/Assessment'
x-oad-type
:
response
parameters
:
-
name
:
oid
in
:
path
required
:
true
type
:
integer
format
:
int32
x-oad-type
:
parameter
x-oad-type
:
operation
'
/assesments/{oid}/questions'
:
get
:
summary
:
'
GEt
questions
from
a
given
assessment'
responses
:
'
200'
:
description
:
'
Successfully
recovered
question(s)
'
schema
:
x-oad-type
:
reference
$ref
:
'
#/definitions/Question'
x-oad-type
:
response
parameters
:
-
name
:
oid
in
:
path
required
:
true
type
:
integer
format
:
int32
x-oad-type
:
parameter
-
name
:
oids
in
:
query
required
:
false
type
:
array
collectionFormat
:
csv
items
:
type
:
integer
format
:
int32
x-oad-type
:
parameter
x-oad-type
:
operation
definitions
:
QuestionType
:
x-oad-type
:
integer
type
:
integer
title
:
'
Enumerator
QuestionType'
description
:
'
Value
that
identifies
the
question
as
objective
of
subjective'
format
:
int32
enum
:
-
2
-
1
ExamType
:
x-oad-type
:
integer
type
:
integer
title
:
'
Enumerator
ExamType'
description
:
'
Value
that
identifies
the
exam
as
objective
only,
subjective
only
or
mixed'
format
:
int32
enum
:
-
0
-
1
-
2
AssessmentType
:
x-oad-type
:
integer
type
:
integer
title
:
'
Enumerator
AssessmentType'
description
:
'
Value
that
identifies
the
exam
as
online
or
on
site'
format
:
int32
enum
:
-
0
-
1
QuestionCategory
:
x-oad-type
:
object
type
:
object
title
:
QuestionCategory
description
:
'
Category
for
which
the
Question
belongs'
properties
:
label
:
x-oad-type
:
string
type
:
string
title
:
Label
description
:
'
The
label
of
the
category'
oid
:
x-oad-type
:
integer
type
:
integer
title
:
OID
description
:
'
The
object
persistence
identification'
format
:
int32
readOnly
:
true
AssessmentStatus
:
x-oad-type
:
integer
type
:
integer
title
:
AssessmentStatus
description
:
'
The
current
idication
status
of
the
assessment
(there'
'
s
none
in
the
moment...)'
format
:
int32
ScheduledEvent
:
x-oad-type
:
object
type
:
object
title
:
ScheduledEvent
description
:
'
The
begining
and
ending
of
the
assessment'
properties
:
oid
:
x-oad-type
:
integer
type
:
integer
title
:
OID
description
:
'
The
object
identification'
format
:
int32
readOnly
:
true
startsAt
:
x-oad-type
:
string
type
:
string
title
:
startsAt
description
:
'
The
time
of
the
begining
of
the
assessment'
format
:
date-time
endsAt
:
x-oad-type
:
string
type
:
string
title
:
endsAt
description
:
'
The
time
of
the
ending
of
the
assessment'
format
:
date-time
Assessment
:
x-oad-type
:
object
type
:
object
title
:
Assessment
description
:
'
The
assessment'
properties
:
status
:
x-oad-type
:
reference
$ref
:
'
#/definitions/AssessmentStatus'
readOnly
:
true
type
:
x-oad-type
:
reference
$ref
:
'
#/definitions/AssessmentType'
readOnly
:
true
schedule
:
x-oad-type
:
reference
$ref
:
'
#/definitions/ScheduledEvent'
readOnly
:
true
enforceSequence
:
x-oad-type
:
boolean
type
:
boolean
title
:
enforceSequence
description
:
'
Boolean
indicading
if
the
assessment
must
enforce
the
exams
to
be
done
in
it'
'
s
order'
location
:
x-oad-type
:
string
type
:
string
title
:
location
exam
:
x-oad-type
:
reference
$ref
:
'
#/definitions/Exam'
ExamQuestionStatus
:
x-oad-type
:
integer
type
:
integer
title
:
ExamQuestionStatus
description
:
'
Enumerator
indicading
if
the
exam
is
active
or
canceled'
format
:
int32
enum
:
-
0
-
1
QuestionGroup
:
x-oad-type
:
object
type
:
object
title
:
QuestionGroup
properties
:
oid
:
x-oad-type
:
integer
type
:
integer
title
:
OID
format
:
int32
readOnly
:
true
label
:
x-oad-type
:
string
type
:
string
title
:
label
weight
:
x-oad-type
:
integer
type
:
integer
title
:
weight
format
:
int32
ExamQuestion
:
x-oad-type
:
object
type
:
object
title
:
ExamQuestion
properties
:
group
:
x-oad-type
:
integer
type
:
integer
title
:
group
description
:
'
Group
for
which
this
given
*ExamQuestion*
belongs
in
this
*Exam*'
format
:
int32
readOnly
:
true
order
:
x-oad-type
:
integer
type
:
integer
title
:
order
description
:
'
Position
of
this
*ExamQuestion*
in
this
*Exam*'
format
:
int32
weight
:
x-oad-type
:
integer
type
:
integer
title
:
weight
description
:
'
Weight
associated
with
this
*ExamQuestion*'
format
:
int32
question
:
x-oad-type
:
integer
type
:
integer
title
:
'
question
oid'
description
:
'
The
oid
of
the
question
that
this
*ExamQuestion*
represents'
format
:
int32
readOnly
:
true
Exam
:
x-oad-type
:
object
type
:
object
title
:
Exam
description
:
'
The
gathering
of
multiple
*ExamQuestion*
with
their
respective
*QuestionGroup*'
properties
:
type
:
x-oad-type
:
reference
$ref
:
'
#/definitions/ExamType'
readOnly
:
true
label
:
x-oad-type
:
string
type
:
string
title
:
label
cover
:
x-oad-type
:
string
type
:
string
title
:
cover
description
:
'
An
html
t
be
embedded'
groups
:
x-oad-type
:
array
type
:
array
title
:
groups
description
:
'
The
possible
*QuestionGroup*
of
this
*Exam*'
items
:
x-oad-type
:
reference
$ref
:
'
#/definitions/QuestionGroup'
questions
:
x-oad-type
:
array
type
:
array
title
:
questions
description
:
'
All
the
*ExamQuestions*
of
this
*Exam*'
items
:
x-oad-type
:
reference
$ref
:
'
#/definitions/ExamQuestion'
Alternative
:
x-oad-type
:
object
type
:
object
title
:
Alternative
description
:
'
Alternative
for
a
*ObjectiveQuestion*'
properties
:
order
:
x-oad-type
:
integer
type
:
integer
title
:
order
format
:
int32
statement
:
x-oad-type
:
string
type
:
string
title
:
statement
Question
:
x-oad-type
:
object
type
:
object
title
:
Question
properties
:
categories
:
x-oad-type
:
array
type
:
array
title
:
categories
items
:
x-oad-type
:
reference
$ref
:
'
#/definitions/QuestionCategory'
uniqueItems
:
true
type
:
x-oad-type
:
reference
$ref
:
'
#/definitions/QuestionType'
readOnly
:
true
statement
:
x-oad-type
:
string
type
:
string
title
:
statement
answerKey
:
x-oad-type
:
allOf
allOf
:
-
x-oad-type
:
string
type
:
string
title
:
answerKey
description
:
'
Answer
key
for
a
*Subjective
Question*'
-
x-oad-type
:
integer
type
:
integer
title
:
oid
description
:
'
OID
of
the
correct
alternative
in
an
*Objective
Question*'
format
:
int32
alternatives
:
x-oad-type
:
array
type
:
array
title
:
alternatives
items
:
x-oad-type
:
reference
$ref
:
'
#/definitions/Alternative'
uniqueItems
:
true
info
:
title
:
'
ExamPlayer
API'
version
:
0.1.0
description
:
'
The
API
to
be
consumed
by
the
ExamPlayer'
contact
:
name
:
'
Bernardo
Sunderhus'
email
:
bernardosunderhus@evologica.com.br
url
:
'
https://gitlab.dev.evologica.com.br/Competify'
license
:
name
:
MIT
basePath
:
/
consumes
:
-
application/json
produces
:
-
application/json
swagger
:
'
2.0'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment