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
da7a48c8
Commit
da7a48c8
authored
Jul 16, 2018
by
Rosana Aurélio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] Criação de arquivos parameters e responses no formato json.
Correções na api adm do competition.
parent
3fd5ef47
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
132 additions
and
54 deletions
+132
-54
Competition.Adm.API.yaml
Api/Competition.Adm.API.yaml
+36
-51
parameters.json
Api/components/parameters.json
+22
-0
responses.json
Api/components/responses.json
+73
-0
Subscription.json
Api/components/schemas/Subscription.json
+1
-3
No files found.
Api/Competition.Adm.API.yaml
View file @
da7a48c8
This diff is collapsed.
Click to expand it.
Api/components/parameters.json
0 → 100644
View file @
da7a48c8
{
"language"
:
{
"name"
:
"Accept-Language"
,
"in"
:
"header"
,
"description"
:
"preferred language"
,
"required"
:
false
,
"schema"
:
{
"type"
:
"string"
},
"style"
:
"simple"
},
"competition_token"
:
{
"name"
:
"Competition-Token"
,
"in"
:
"header"
,
"description"
:
"The JWT Token that uniquely identifies this competition within the competify scope"
,
"required"
:
true
,
"schema"
:
{
"type"
:
"integer"
},
"style"
:
"simple"
}
}
\ No newline at end of file
Api/components/responses.json
0 → 100644
View file @
da7a48c8
{
"NotFoundError"
:
{
"description"
:
"Resource Not Found"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"type"
:
"object"
,
"properties"
:
{
"code"
:
{
"type"
:
"integer"
},
"message"
:
{
"type"
:
"string"
},
"completeMessage"
:
{
"type"
:
"string"
}
}
}
}
}
},
"InternalServerError"
:
{
"description"
:
"Internal Server Error"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"type"
:
"object"
,
"properties"
:
{
"code"
:
{
"type"
:
"integer"
},
"message"
:
{
"type"
:
"string"
},
"completeMessage"
:
{
"type"
:
"string"
}
}
}
}
}
},
"UnprocessableEntityError"
:
{
"description"
:
""
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"type"
:
"object"
,
"properties"
:
{
"code"
:
{
"type"
:
"integer"
},
"entities"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"message"
:
{
"type"
:
"string"
}
}
}
}
}
}
}
}
}
}
\ No newline at end of file
Api/components/schemas/Subscription.json
View file @
da7a48c8
...
...
@@ -302,9 +302,7 @@
"$ref"
:
"#/FormFieldAnswer"
}
},
"template"
:
{
"$ref"
:
"https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.json#/FormTemplate"
}
"template"
:
"integer"
},
"discriminator"
:
{
"propertyName"
:
"type"
,
...
...
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