Commit 803b6762 authored by Zohreh MOSTAANI's avatar Zohreh MOSTAANI Committed by Samuel GAIST

[openapi] fixes resovling the disscussions

parent faa06c14
Pipeline #32801 passed with stage
in 16 minutes and 8 seconds
......@@ -436,6 +436,8 @@ REST_FRAMEWORK = {
'DEFAULT_PARSER_CLASSES': [
'rest_framework.parsers.JSONParser'
],
# This setting is mandatory after DRF 3.10
# 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
}
......
......@@ -51,10 +51,9 @@ schema_view = get_schema_view(
title="BEAT API",
default_version='v1',
description="REST API for BEAT platform",
# terms_of_service="https://www.google.com/policies/terms/",
# contact=openapi.Contact(email="contact@snippets.local"),
# license=openapi.License(name="AGPLv3 License"),
# validators=['ssv']
terms_of_service="https://gitlab.idiap.ch/beat/beat.web/blob/master/LICENSE.AGPL",
contact=openapi.Contact(email="beat.support@idiap.ch"),
license=openapi.License(name="AGPLv3 License"),
),
public=True,
permission_classes=(permissions.AllowAny,),
......@@ -124,10 +123,10 @@ unprefixed_patterns += [
url(r'^admin/', include(admin.site.urls)),
url(r'^openapi(?P<format>\.json|\.yaml)$',
url(r'^swagger(?P<format>\.json|\.yaml)$',
schema_view.without_ui(cache_timeout=0), name='schema-json'),
url(r'^openapi/$',
url(r'^swagger/$',
schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
url(r'^activity/',
......
......@@ -2,6 +2,11 @@ swagger: '2.0'
info:
title: BEAT API
description: REST API for BEAT platform
termsOfService: https://gitlab.idiap.ch/beat/beat.web/blob/master/LICENSE.AGPL
contact:
email: beat.support@idiap.ch
license:
name: AGPLv3 License
version: v1
host: 127.0.0.1:8000
schemes:
......
......@@ -144,7 +144,7 @@ The following examples assumes that:
Data Format API
---------------
.. (openapi: : specs/openapi.yaml)
.. (openapi: : specs/swagger.yaml)
Retrieving a list of all the data formats accessible by the user
................................................................
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment