-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathratings.nswag
76 lines (76 loc) · 32.1 KB
/
ratings.nswag
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"runtime": "NetCore31",
"defaultVariables": null,
"documentGenerator": {
"fromDocument": {
"json": "{\r\n \"info\": {\r\n \"title\": \"Ratings API\",\r\n \"version\": \"v1\",\r\n \"description\": \"API for series and episode ratings\"\r\n },\r\n \"openapi\": \"3.0.0\",\r\n \"servers\": [],\r\n \"paths\": {\r\n \"/api/public/SeriesRatings\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"SeriesRatings\"\r\n ],\r\n \"summary\": \"Get Episodes Ratings Endpoint\",\r\n \"description\": \"This is a Get Episodes Ratings Endpoint\",\r\n \"operationId\": \"GetSeriesRatings\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"userId\",\r\n \"in\": \"query\",\r\n \"required\": false,\r\n \"description\": \"id of the user\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"form\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"seriesId\",\r\n \"in\": \"query\",\r\n \"required\": false,\r\n \"description\": \"seriesId\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"form\",\r\n \"explode\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"OK\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/SeriesRatingInfo\"\r\n },\r\n \"nullable\": false,\r\n \"type\": \"array\"\r\n },\r\n \"example\": [\r\n {\r\n \"id\": 1,\r\n \"userId\": 2,\r\n \"seriesId\": \"5e9215f27773ca0066637c26\",\r\n \"rating\": 1,\r\n \"opinion\": \"Not good, not terrible\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/public/SeriesRatings/{id}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"SeriesRatings\"\r\n ],\r\n \"operationId\": \"GetSeriesRating\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"id\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the series rating\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"Authorization\",\r\n \"in\": \"header\",\r\n \"required\": false,\r\n \"description\": \"Authorization header\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"OK\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/SeriesRatingInfo\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/public/SeriesRatings/Series/{seriesId}/Average\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"SeriesRatings\"\r\n ],\r\n \"operationId\": \"GetAverageRatingForSeries\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"seriesId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the series\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"OK\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/AverageOfRatingsResponse\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/protected/SeriesRatings\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"SeriesRatings\"\r\n ],\r\n \"operationId\": \"CreateSeriesRating\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"Authorization\",\r\n \"in\": \"header\",\r\n \"required\": false,\r\n \"description\": \"Authorization header\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": true\r\n }\r\n ],\r\n \"requestBody\": {\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/SeriesRatingData\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": {\r\n \"201\": {\r\n \"description\": \"\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/Created201Response\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/protected/SeriesRatings/{id}\": {\r\n \"delete\": {\r\n \"tags\": [\r\n \"SeriesRatings\"\r\n ],\r\n \"operationId\": \"DeleteSeriesRating\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"id\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the series rating\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"Authorization\",\r\n \"in\": \"header\",\r\n \"required\": false,\r\n \"description\": \"Authorization header\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"204\": {\r\n \"description\": \"\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/NoContent204Response\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"put\": {\r\n \"tags\": [\r\n \"SeriesRatings\"\r\n ],\r\n \"operationId\": \"UpdateSeriesRating\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"id\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the series rating\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"Authorization\",\r\n \"in\": \"header\",\r\n \"required\": false,\r\n \"description\": \"Authorization header\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": true\r\n }\r\n ],\r\n \"requestBody\": {\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/SeriesRatingData\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": {\r\n \"204\": {\r\n \"description\": \"\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/NoContent204Response\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/public/EpisodeRatings\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"EpisodeRatings\"\r\n ],\r\n \"summary\": \"Get Episodes Ratings Endpoint\",\r\n \"description\": \"This is a Get Episodes Ratings Endpoint\",\r\n \"operationId\": \"GetEpisodeRatings\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"userId\",\r\n \"in\": \"query\",\r\n \"required\": false,\r\n \"description\": \"id of the user\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"form\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"seriesId\",\r\n \"in\": \"query\",\r\n \"required\": false,\r\n \"description\": \"seriesId\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"form\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"seasonId\",\r\n \"in\": \"query\",\r\n \"required\": false,\r\n \"description\": \"seasonId\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"form\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"episodeId\",\r\n \"in\": \"query\",\r\n \"required\": false,\r\n \"description\": \"episodeId\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"form\",\r\n \"explode\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"OK\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/EpisodeRatingInfo\"\r\n },\r\n \"nullable\": false,\r\n \"type\": \"array\"\r\n },\r\n \"example\": [\r\n {\r\n \"id\": 1,\r\n \"userId\": 2,\r\n \"seriesId\": \"5e9215f27773ca0066637c26\",\r\n \"seasonId\": 1,\r\n \"episodeId\": 1,\r\n \"rating\": 5,\r\n \"opinion\": \"Not good, not terrible\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/public/EpisodeRatings/{id}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"EpisodeRatings\"\r\n ],\r\n \"operationId\": \"GetEpisodeRating\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"id\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the episode rating\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"Authorization\",\r\n \"in\": \"header\",\r\n \"required\": false,\r\n \"description\": \"Authorization header\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/EpisodeRatingInfo\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/public/EpisodeRatings/Series/{seriesId}/Average\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"EpisodeRatings\"\r\n ],\r\n \"operationId\": \"GetAverageRatingForSeries\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"seriesId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the series\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"OK\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/AverageOfRatingsResponse\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/public/EpisodeRatings/Series/{seriesId}/Season/{seasonId}/Average\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"EpisodeRatings\"\r\n ],\r\n \"operationId\": \"GetAverageRatingForSeason\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"seriesId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the series\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"seasonId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the season\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"OK\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/AverageOfRatingsResponse\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/public/EpisodeRatings/Series/{seriesId}/Season/{seasonId}/Episode/{episodeId}/Average\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"EpisodeRatings\"\r\n ],\r\n \"operationId\": \"GetAverageRatingForEpisode\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"seriesId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the series\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"seasonId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the season\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"episodeId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the episode\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"OK\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/AverageOfRatingsResponse\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/protected/EpisodeRatings\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"EpisodeRatings\"\r\n ],\r\n \"operationId\": \"CreateEpisodeRating\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"Authorization\",\r\n \"in\": \"header\",\r\n \"required\": false,\r\n \"description\": \"Authorization header\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": true\r\n }\r\n ],\r\n \"requestBody\": {\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/EpisodeRatingData\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": {\r\n \"201\": {\r\n \"description\": \"\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/Created201Response\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/protected/EpisodeRatings/{id}\": {\r\n \"delete\": {\r\n \"tags\": [\r\n \"EpisodeRatings\"\r\n ],\r\n \"operationId\": \"DeleteEpisodeRating\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"id\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the episode rating\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"Authorization\",\r\n \"in\": \"header\",\r\n \"required\": false,\r\n \"description\": \"Authorization header\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"204\": {\r\n \"description\": \"\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/NoContent204Response\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"put\": {\r\n \"tags\": [\r\n \"EpisodeRatings\"\r\n ],\r\n \"operationId\": \"UpdateEpisodeRating\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"id\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"id of the episode rating\",\r\n \"deprecated\": false,\r\n \"schema\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": false\r\n },\r\n {\r\n \"name\": \"Authorization\",\r\n \"in\": \"header\",\r\n \"required\": false,\r\n \"description\": \"Authorization header\",\r\n \"deprecated\": false,\r\n \"allowEmptyValue\": false,\r\n \"schema\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"style\": \"simple\",\r\n \"explode\": true\r\n }\r\n ],\r\n \"requestBody\": {\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/EpisodeRatingData\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": {\r\n \"204\": {\r\n \"description\": \"\",\r\n \"headers\": {},\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/NoContent204Response\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"components\": {\r\n \"schemas\": {\r\n \"AverageOfRatingsResponse\": {\r\n \"properties\": {\r\n \"average\": {\r\n \"type\": \"number\",\r\n \"format\": \"float\",\r\n \"nullable\": false,\r\n \"minimum\": 0.0,\r\n \"maximum\": 10.0\r\n },\r\n \"count\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\",\r\n \"nullable\": false\r\n }\r\n },\r\n \"required\": [\r\n \"average\",\r\n \"count\"\r\n ],\r\n \"nullable\": false,\r\n \"type\": \"object\"\r\n },\r\n \"Created201Response\": {\r\n \"properties\": {},\r\n \"required\": [],\r\n \"nullable\": false,\r\n \"type\": \"object\"\r\n },\r\n \"EpisodeRatingData\": {\r\n \"properties\": {\r\n \"episodeId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"opinion\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"rating\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false,\r\n \"minimum\": 1,\r\n \"maximum\": 10\r\n },\r\n \"seasonId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"seriesId\": {\r\n \"type\": \"string\",\r\n \"nullable\": false,\r\n \"minLength\": 24,\r\n \"maxLength\": 24,\r\n \"pattern\": \"^[a-zA-Z0-9]*$\"\r\n },\r\n \"userId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n }\r\n },\r\n \"required\": [\r\n \"episodeId\",\r\n \"opinion\",\r\n \"rating\",\r\n \"seasonId\",\r\n \"seriesId\",\r\n \"userId\"\r\n ],\r\n \"nullable\": false,\r\n \"type\": \"object\"\r\n },\r\n \"EpisodeRatingInfo\": {\r\n \"properties\": {\r\n \"episodeId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"opinion\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"rating\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"seasonId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"seriesId\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"userId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n }\r\n },\r\n \"required\": [\r\n \"episodeId\",\r\n \"id\",\r\n \"opinion\",\r\n \"rating\",\r\n \"seasonId\",\r\n \"seriesId\",\r\n \"userId\"\r\n ],\r\n \"nullable\": false,\r\n \"type\": \"object\"\r\n },\r\n \"NoContent204Response\": {\r\n \"properties\": {},\r\n \"required\": [],\r\n \"nullable\": false,\r\n \"type\": \"object\"\r\n },\r\n \"SeriesRatingData\": {\r\n \"properties\": {\r\n \"opinion\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"rating\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false,\r\n \"minimum\": 1,\r\n \"maximum\": 10\r\n },\r\n \"seriesId\": {\r\n \"type\": \"string\",\r\n \"nullable\": false,\r\n \"minLength\": 24,\r\n \"maxLength\": 24,\r\n \"pattern\": \"^[a-zA-Z0-9]*$\"\r\n },\r\n \"userId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n }\r\n },\r\n \"required\": [\r\n \"opinion\",\r\n \"rating\",\r\n \"seriesId\",\r\n \"userId\"\r\n ],\r\n \"nullable\": false,\r\n \"type\": \"object\"\r\n },\r\n \"SeriesRatingInfo\": {\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"opinion\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"rating\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n },\r\n \"seriesId\": {\r\n \"type\": \"string\",\r\n \"nullable\": false\r\n },\r\n \"userId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": false\r\n }\r\n },\r\n \"required\": [\r\n \"id\",\r\n \"opinion\",\r\n \"rating\",\r\n \"seriesId\",\r\n \"userId\"\r\n ],\r\n \"nullable\": false,\r\n \"type\": \"object\"\r\n }\r\n },\r\n \"responses\": {},\r\n \"parameters\": {},\r\n \"examples\": {},\r\n \"requestBodies\": {},\r\n \"headers\": {},\r\n \"securitySchemes\": {}\r\n },\r\n \"security\": [],\r\n \"tags\": [\r\n {\r\n \"name\": \"SeriesRatings\",\r\n \"description\": \"\"\r\n },\r\n {\r\n \"name\": \"EpisodeRatings\",\r\n \"description\": \"\"\r\n }\r\n ]\r\n}",
"url": "http://localhost:3002/swagger/v1/swagger.json",
"output": null,
"newLineBehavior": "Auto"
}
},
"codeGenerators": {
"openApiToTypeScriptClient": {
"className": "{controller}Client",
"moduleName": "",
"namespace": "",
"typeScriptVersion": 2.7,
"template": "Axios",
"promiseType": "Promise",
"httpClass": "HttpClient",
"withCredentials": false,
"useSingletonProvider": false,
"injectionTokenType": "OpaqueToken",
"rxJsVersion": 6.0,
"dateTimeType": "Date",
"nullValue": "Undefined",
"generateClientClasses": true,
"generateClientInterfaces": true,
"generateOptionalParameters": false,
"exportTypes": true,
"wrapDtoExceptions": false,
"exceptionClass": "ApiException",
"clientBaseClass": "ClientBase",
"wrapResponses": false,
"wrapResponseMethods": [],
"generateResponseClasses": true,
"responseClass": "SwaggerResponse",
"protectedMethods": [],
"configurationClass": null,
"useTransformOptionsMethod": true,
"useTransformResultMethod": false,
"generateDtoTypes": true,
"operationGenerationMode": "MultipleClientsFromFirstTagAndOperationId",
"markOptionalProperties": true,
"generateCloneMethod": false,
"typeStyle": "Class",
"enumStyle": "Enum",
"useLeafType": false,
"classTypes": [],
"extendedClasses": [],
"extensionCode": "webclient/src/typings/ClientBase.ts",
"generateDefaultValues": true,
"excludedTypeNames": [],
"excludedParameterNames": [],
"handleReferences": false,
"generateConstructorInterface": true,
"convertConstructorInterfaceData": false,
"importRequiredTypes": true,
"useGetBaseUrlMethod": false,
"baseUrlTokenName": "API_BASE_URL",
"queryNullValue": "",
"inlineNamedDictionaries": false,
"inlineNamedAny": false,
"templateDirectory": null,
"typeNameGeneratorType": null,
"propertyNameGeneratorType": null,
"enumNameGeneratorType": null,
"serviceHost": ".",
"serviceSchemes": [
"http"
],
"output": "webclient/src/typings/RatingsClients.ts",
"newLineBehavior": "Auto"
}
}
}