{
    "openapi": "3.0.0",
    "info": {
        "title": "Swagger-Demo",
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "/api/v1"
        },
        {
            "url": ""
        }
    ],
    "paths": {
        "/instructors/login": {
            "post": {
                "tags": [
                    "UnAuthorize"
                ],
                "summary": "Instructors Login",
                "operationId": "0789a02f203dfdc8a3ef3343757a21ed",
                "parameters": [
                    {
                        "name": "email",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "password",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "with",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "/instructors/register": {
            "post": {
                "tags": [
                    "UnAuthorize"
                ],
                "summary": "instructors register",
                "operationId": "ccc542d3d8e783ea95c799122c3db4e1",
                "parameters": [
                    {
                        "name": "name",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "email",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "phone",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "password",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "password_confirmation",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "only",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/form-data": {
                            "schema": {
                                "$ref": "App/Http/Requests/API/V1/Auth/ApiRegisterInstructorRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "/students/login": {
            "post": {
                "tags": [
                    "UnAuthorize"
                ],
                "summary": "Students Login",
                "operationId": "09eb29c558bcfd80d04c3c41ebc2e271",
                "parameters": [
                    {
                        "name": "email",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "password",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {}
                        }
                    }
                }
            }
        },
        "/instructors/courses": {
            "post": {
                "tags": [
                    "Course"
                ],
                "summary": "Instructor Create new Course",
                "operationId": "25d4db448c0ca916f8b05c898b00203d",
                "parameters": [
                    {
                        "name": "Accept-Language",
                        "in": "header",
                        "description": "Please put your language code here"
                    },
                    {
                        "name": "only",
                        "in": "query",
                        "description": "only=group_id,name,about,price,introduction_image,introduction_video,created_on",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "with",
                        "in": "query",
                        "description": "with=group,user",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "required": [
                                    "name[en]",
                                    "name[ar]",
                                    "group_id",
                                    "price"
                                ],
                                "properties": {
                                    "name[en]": {
                                        "type": "string",
                                        "format": "string",
                                        "maxLength": 3,
                                        "example": "The English name of course"
                                    },
                                    "name[ar]": {
                                        "type": "string",
                                        "format": "string",
                                        "example": "The Arabic name of course"
                                    },
                                    "about[en]": {
                                        "type": "string",
                                        "format": "string",
                                        "maxLength": 3,
                                        "example": "The English about of course"
                                    },
                                    "about[ar]": {
                                        "type": "string",
                                        "format": "string",
                                        "maxLength": 3,
                                        "example": "The Arabic about of course"
                                    },
                                    "group_id": {
                                        "type": "integer",
                                        "format": "integer",
                                        "example": "Group ID (Must be exist)"
                                    },
                                    "price": {
                                        "type": "integer",
                                        "format": "integer",
                                        "example": "Price of course"
                                    },
                                    "introduction_image": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "introduction_video": {
                                        "type": "string",
                                        "format": "binary"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Successful created",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {}
                            }
                        }
                    },
                    "405": {
                        "description": "You Are Not Login"
                    }
                },
                "security": [
                    {
                        "Bearer": []
                    }
                ]
            }
        },
        "/courses/{course}": {
            "get": {
                "tags": [
                    "Course"
                ],
                "summary": "Get Detail Todo.",
                "operationId": "06f556931917e8e5e6c4643d46d59638",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "type": "number",
                                            "example": 1
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "title"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "content"
                                        },
                                        "updated_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        },
                                        "created_at": {
                                            "type": "string",
                                            "example": "2021-12-11T09:25:53.000000Z"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "ApiRegisterUserRequest": {
                "description": "Class UserTransformer."
            }
        },
        "securitySchemes": {
            "Bearer": {
                "type": "apiKey",
                "name": "Authorization",
                "in": "header",
                "scheme": "Bearer"
            },
            "passport": {
                "type": "oauth2",
                "description": "Laravel passport oauth2 security.",
                "in": "header",
                "scheme": "https",
                "flows": {
                    "password": {
                        "authorizationUrl": "https://med-academy.test/oauth/authorize",
                        "tokenUrl": "https://med-academy.test/oauth/token",
                        "refreshUrl": "https://med-academy.test/token/refresh",
                        "scopes": []
                    }
                }
            }
        }
    },
    "tags": [
        {
            "name": "UnAuthorize",
            "description": "No user login required"
        },
        {
            "name": "Authorize",
            "description": "User login required"
        }
    ]
}