{ "openapi": "3.0.1", "info": { "title": "API", "version": "v1" }, "paths": { "/api/Auth/login": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LoginRequestDto" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Auth/register": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RegisterRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RegisterRequestDto" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Members": { "get": { "tags": [ "Members" ], "responses": { "200": { "description": "OK" } } }, "post": { "tags": [ "Members" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateMemberRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateMemberRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateMemberRequest" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Members/{id}": { "get": { "tags": [ "Members" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "Members" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateMemberRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateMemberRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateMemberRequest" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Members" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } } }, "components": { "schemas": { "CreateMemberRequest": { "required": [ "email", "fullName" ], "type": "object", "properties": { "fullName": { "maxLength": 100, "minLength": 0, "type": "string" }, "email": { "minLength": 1, "type": "string", "format": "email" } }, "additionalProperties": false }, "LoginRequestDto": { "required": [ "email", "password" ], "type": "object", "properties": { "email": { "minLength": 1, "type": "string", "format": "email" }, "password": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "RegisterRequestDto": { "required": [ "email", "password", "username" ], "type": "object", "properties": { "username": { "minLength": 1, "type": "string" }, "email": { "minLength": 1, "type": "string", "format": "email" }, "password": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "UpdateMemberRequest": { "required": [ "email", "fullName" ], "type": "object", "properties": { "fullName": { "maxLength": 100, "minLength": 0, "type": "string" }, "email": { "minLength": 1, "type": "string", "format": "email" } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "apiKey", "description": "أدخل التوكين بهذا الشكل: Bearer {your token}", "name": "Authorization", "in": "header" } } }, "security": [ { "Bearer": [ ] } ] }