Skip to content
Snippets Groups Projects
Commit e26be9ca authored by David Trattnig's avatar David Trattnig
Browse files

feat: ablity to generate steering API model

parent 1ed00461
No related branches found
No related tags found
1 merge request!20Preparations for ORM-less scheduling
project_name_override: .build
package_name_override: aura_steering_api
\ No newline at end of file
......@@ -66,7 +66,11 @@ build.models::
cp -r .build/aura_tank_api/models src/aura_tank_api
cp .build/aura_tank_api/py.typed src/aura_tank_api
cp .build/aura_tank_api/types.py src/aura_tank_api
rm -rf .build
poetry run openapi-python-client generate --path schemas/openapi-steering.json --config .openapi-client-steering.yml
cp -r .build/aura_steering_api/models src/aura_steering_api
cp .build/aura_steering_api/py.typed src/aura_steering_api
cp .build/aura_steering_api/types.py src/aura_steering_api
lint::
poetry run python3 -m flake8 .
......
{
"openapi": "3.0.3",
"info": {
"title": "AURA Steering API",
"version": "1.0.0",
"description": "Programme/schedule management for Aura"
},
"paths": {},
"components": {
"schemas": {
"Timeslot": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"start": {
"type": "string",
"format": "date-time"
},
"end": {
"type": "string",
"format": "date-time"
},
"title": {
"type": "integer"
},
"schedule_id": {
"type": "integer"
},
"is_repetition": {
"type": "boolean",
"nullable": true
},
"playlist_id": {
"type": "integer",
"nullable": true
},
"schedule_default_playlist_id": {
"type": "integer",
"nullable": true
},
"show_default_playlist_id": {
"type": "integer",
"nullable": true
},
"show_id": {
"type": "integer"
},
"show_name": {
"type": "string"
},
"show_hosts": {
"type": "string"
},
"show_type": {
"type": "string",
"nullable": true
},
"show_categories": {
"type": "string",
"nullable": true
},
"show_topics": {
"type": "string",
"nullable": true
},
"show_musicfocus": {
"type": "string",
"nullable": true
},
"show_languages": {
"type": "string",
"nullable": true
},
"show_fundingcategory": {
"type": "string",
"nullable": true
},
"memo": {
"type": "string",
"nullable": true
},
"className": {
"type": "string",
"nullable": true
}
}
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment