Redirect / to /docs #186
4 changed files with 27 additions and 10 deletions
|
|
@ -1,3 +1,10 @@
|
|||
# 5.3.6 (2026-01-13)
|
||||
|
||||
## Changes
|
||||
|
||||
- Redirect `/` to `/docs`
|
||||
|
||||
|
||||
# 5.3.5 (2025-12-18)
|
||||
|
||||
## Bugfixes
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = '5.3.5'
|
||||
__version__ = '5.3.6'
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ from pydantic import (
|
|||
from starlette.responses import (
|
||||
JSONResponse,
|
||||
PlainTextResponse,
|
||||
RedirectResponse,
|
||||
)
|
||||
|
||||
from dump_things_service import (
|
||||
|
|
@ -398,6 +399,11 @@ def validate_record(
|
|||
return JSONResponse(True)
|
||||
|
||||
|
||||
@app.get('/', response_class=RedirectResponse)
|
||||
async def root() -> RedirectResponse:
|
||||
return RedirectResponse('/docs')
|
||||
|
||||
|
||||
@app.get(
|
||||
'/server',
|
||||
tags=['Server info'],
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ ttl_record = """@prefix dlflatsocial: <https://concepts.datalad.org/s/flat-socia
|
|||
|
||||
dlflatsocial:test_john_ttl a dlflatsocial:Person ;
|
||||
dlsocialmx:given_name "Johnöüß" ;
|
||||
dlthings:annotations [ a dlthings:Annotation ;
|
||||
dlthings:annotations [ a dlflat:Annotation ;
|
||||
dlthings:annotation_tag <http://purl.obolibrary.org/obo/NCIT_C54269> ;
|
||||
dlthings:annotation_value "test_user_1" ] .
|
||||
"""
|
||||
|
|
@ -35,36 +35,40 @@ dlflatsocial:test_john_ttl a dlflatsocial:Person ;
|
|||
dlsocialmx:given_name "Johnöüß" .
|
||||
"""
|
||||
|
||||
ttl_output_record_a = """@prefix dlflatsocial: <https://concepts.datalad.org/s/flat-social/unreleased/> .
|
||||
ttl_output_record_a = """@prefix dlflat: <https://concepts.datalad.org/s/flat/unreleased/> .
|
||||
@prefix dlflatsocial: <https://concepts.datalad.org/s/flat-social/unreleased/> .
|
||||
@prefix dlsocialmx: <https://concepts.datalad.org/s/social-mixin/unreleased/> .
|
||||
@prefix dlthings: <https://concepts.datalad.org/s/things/v1/> .
|
||||
@prefix obo: <http://purl.obolibrary.org/obo/> .
|
||||
|
||||
dlflatsocial:test_john_ttl a dlflatsocial:Person ;
|
||||
dlflatsocial:another_john_ttl a dlflatsocial:Person ;
|
||||
dlsocialmx:given_name "Johnöüß" ;
|
||||
dlthings:annotations [ a dlthings:Annotation ;
|
||||
dlthings:annotations [ a dlflat:FlatAnnotation ;
|
||||
dlthings:annotation_tag <http://semanticscience.org/resource/SIO_001083> ;
|
||||
dlthings:annotation_value "1970-01-01T00:00:00" ],
|
||||
[ a dlthings:Annotation ;
|
||||
[ a dlflat:FlatAnnotation ;
|
||||
dlthings:annotation_tag obo:NCIT_C54269 ;
|
||||
dlthings:annotation_value "test_user_1" ] .
|
||||
"""
|
||||
|
||||
ttl_output_record_b = """@prefix dlflatsocial: <https://concepts.datalad.org/s/flat-social/unreleased/> .
|
||||
|
||||
ttl_output_record_b = """@prefix dlflat: <https://concepts.datalad.org/s/flat/unreleased/> .
|
||||
@prefix dlflatsocial: <https://concepts.datalad.org/s/flat-social/unreleased/> .
|
||||
@prefix dlsocialmx: <https://concepts.datalad.org/s/social-mixin/unreleased/> .
|
||||
@prefix dlthings: <https://concepts.datalad.org/s/things/v1/> .
|
||||
@prefix obo: <http://purl.obolibrary.org/obo/> .
|
||||
|
||||
dlflatsocial:test_john_ttl a dlflatsocial:Person ;
|
||||
dlflatsocial:another_john_ttl a dlflatsocial:Person ;
|
||||
dlsocialmx:given_name "Johnöüß" ;
|
||||
dlthings:annotations [ a dlthings:Annotation ;
|
||||
dlthings:annotations [ a dlflat:FlatAnnotation ;
|
||||
dlthings:annotation_tag obo:NCIT_C54269 ;
|
||||
dlthings:annotation_value "test_user_1" ],
|
||||
[ a dlthings:Annotation ;
|
||||
[ a dlflat:FlatAnnotation ;
|
||||
dlthings:annotation_tag <http://semanticscience.org/resource/SIO_001083> ;
|
||||
dlthings:annotation_value "1970-01-01T00:00:00" ] .
|
||||
"""
|
||||
|
||||
|
||||
new_json_pid = 'dlflatsocial:another_john_ttl'
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue