19 Commits

Author SHA1 Message Date
Guilhem Bonnefille
494eb311b2 Document usage of project 2020-07-29 22:59:22 +02:00
Guilhem Bonnefille
21180aa440 Add response schema for sleep and wakeup
Use composition/inheritance.
2020-07-29 22:54:58 +02:00
Guilhem Bonnefille
13bca6a7a0 Switch to codegen 3.0.21
Previous version generates a bad code when using inheritance in schemas.
2020-07-29 22:53:58 +02:00
Guilhem Bonnefille
b3ef892802 Add a python test client 2020-07-29 22:53:01 +02:00
Guilhem Bonnefille
9912d4d80d Set operationId 2020-07-29 22:52:11 +02:00
Guilhem Bonnefille
b317daa072 Use YAML for specification
YAML is simpler for human to read/write than JSON,
at least because it is less verbose.
It is also richer as it let describe with comment and have multiline support.
2020-07-29 18:41:47 +02:00
Guilhem Bonnefille
f9b3b7c923 Allow multiple types on potentially empty fields
An empty value is not possible to convert as int.
Allowing both integer and string will ensure reception of any value.
2020-07-29 18:27:11 +02:00
Guilhem Bonnefille
2459a8f574 Add dependency to OpenAPI specfication file
The generation is allowed when file is more recent than output directory.
2020-07-29 18:25:13 +02:00
Guilhem Bonnefille
15577f6bcc Add sleep endpoint 2020-07-29 00:08:52 +02:00
Guilhem Bonnefille
8cb40ac7f9 Add license 2020-07-29 00:08:52 +02:00
Guilhem Bonnefille
0e72933912 Add wakeup endpoint 2020-07-29 00:08:52 +02:00
Guilhem Bonnefille
4ab66ababa Add get_version endpoint 2020-07-29 00:08:52 +02:00
Guilhem Bonnefille
444377c4d9 Add a title for model 2020-07-29 00:08:52 +02:00
Guilhem Bonnefille
a71d45c2ac Add python generator 2020-07-29 00:08:52 +02:00
Guilhem Bonnefille
bf447f3dd8 Remove required field in result 2020-07-28 23:13:17 +02:00
Guilhem Bonnefille
014e1b6619 Add a clean target 2020-07-28 21:36:55 +02:00
Guilhem Bonnefille
ff7896e856 Generate documentation 2020-07-28 20:00:06 +02:00
Guilhem Bonnefille
f55ce0834c Add satus endpoint 2020-07-28 19:58:03 +02:00
Guilhem Bonnefille
8d72f1656e Initialise repository 2020-07-28 19:57:23 +02:00