move cli
This commit is contained in:
@@ -42,7 +42,165 @@
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"/courses/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Course"
|
||||
],
|
||||
"summary": "GET /courses/{id}",
|
||||
"operationId": "get_course_courses__id__get",
|
||||
"parameters": [
|
||||
{
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"name": "id",
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/enrollments/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Enrollment"
|
||||
],
|
||||
"summary": "GET /enrollments/{id}",
|
||||
"operationId": "get_enrollment_enrollments__id__get",
|
||||
"parameters": [
|
||||
{
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"name": "id",
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"patch": {
|
||||
"tags": [
|
||||
"Enrollment"
|
||||
],
|
||||
"summary": "PATCH /enrollments/{id}",
|
||||
"operationId": "cancel_enrollments__id__patch",
|
||||
"parameters": [
|
||||
{
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"name": "id",
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/CancelPayload"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/users/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"User"
|
||||
],
|
||||
"summary": "Get user",
|
||||
"operationId": "get_user_users__id__get",
|
||||
"parameters": [
|
||||
{
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"name": "id",
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"patch": {
|
||||
"tags": [
|
||||
"User"
|
||||
@@ -204,135 +362,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/enrollments/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Enrollment"
|
||||
],
|
||||
"summary": "GET /enrollments/{id}",
|
||||
"operationId": "get_enrollment_enrollments__id__get",
|
||||
"parameters": [
|
||||
{
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"name": "id",
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"patch": {
|
||||
"tags": [
|
||||
"Enrollment"
|
||||
],
|
||||
"summary": "PATCH /enrollments/{id}",
|
||||
"operationId": "cancel_enrollments__id__patch",
|
||||
"parameters": [
|
||||
{
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"name": "id",
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/CancelPayload"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/courses/{id}": {
|
||||
"/courses": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Course"
|
||||
],
|
||||
"summary": "GET /courses/{id}",
|
||||
"operationId": "get_course_courses__id__get",
|
||||
"parameters": [
|
||||
{
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"name": "id",
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/users": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"User"
|
||||
],
|
||||
"summary": "Get users",
|
||||
"operationId": "get_users_users_get",
|
||||
"summary": "Get courses",
|
||||
"operationId": "get_courses_courses_get",
|
||||
"responses": {
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
@@ -354,16 +390,15 @@
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"User"
|
||||
"Course"
|
||||
],
|
||||
"summary": "POST /users",
|
||||
"description": "Create user",
|
||||
"operationId": "post_user_users_post",
|
||||
"summary": "POST /courses",
|
||||
"operationId": "post_course_courses_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/User"
|
||||
"$ref": "#/components/schemas/CoursePayload"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -468,13 +503,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/courses": {
|
||||
"/users": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Course"
|
||||
"User"
|
||||
],
|
||||
"summary": "GET /courses",
|
||||
"operationId": "get_courses_courses_get",
|
||||
"summary": "Get users",
|
||||
"operationId": "get_users_users_get",
|
||||
"responses": {
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
@@ -496,15 +531,15 @@
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
"Course"
|
||||
"User"
|
||||
],
|
||||
"summary": "POST /courses",
|
||||
"operationId": "post_course_courses_post",
|
||||
"summary": "Create user",
|
||||
"operationId": "post_user_users_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/CoursePayload"
|
||||
"$ref": "#/components/schemas/User"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user