Created
February 11, 2020 13:52
-
-
Save Forevka/47595a8320d1907e01a5c9076a848925 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "My API", | |
"version": "v1" | |
}, | |
"servers": [ | |
{ | |
"url": "http://82.146.37.127/social" | |
} | |
], | |
"paths": { | |
"/Comments/{commentId}": { | |
"get": { | |
"tags": [ | |
"Comments" | |
], | |
"operationId": "commentId", | |
"parameters": [ | |
{ | |
"name": "commentId", | |
"in": "path", | |
"required": true, | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/OutCommentViewModel" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutCommentViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutCommentViewModel" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/Comments": { | |
"post": { | |
"tags": [ | |
"Comments" | |
], | |
"requestBody": { | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/CommentViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/CommentViewModel" | |
} | |
}, | |
"application/*+json": { | |
"schema": { | |
"$ref": "#/components/schemas/CommentViewModel" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/OutCommentViewModel" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutCommentViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutCommentViewModel" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"patch": { | |
"tags": [ | |
"Comments" | |
], | |
"requestBody": { | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/EditCommentViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/EditCommentViewModel" | |
} | |
}, | |
"application/*+json": { | |
"schema": { | |
"$ref": "#/components/schemas/EditCommentViewModel" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/OutCommentViewModel" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutCommentViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutCommentViewModel" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"delete": { | |
"tags": [ | |
"Comments" | |
], | |
"parameters": [ | |
{ | |
"name": "commentId", | |
"in": "query", | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success" | |
} | |
} | |
} | |
}, | |
"/CommentPage/{postId}": { | |
"get": { | |
"tags": [ | |
"Comments" | |
], | |
"operationId": "GetPageСomments", | |
"parameters": [ | |
{ | |
"name": "postId", | |
"in": "path", | |
"required": true, | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
}, | |
{ | |
"name": "page", | |
"in": "query", | |
"schema": { | |
"type": "integer", | |
"format": "int32" | |
} | |
}, | |
{ | |
"name": "quantity", | |
"in": "query", | |
"schema": { | |
"type": "integer", | |
"format": "int32" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/CommentPagedResult" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/CommentPagedResult" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/CommentPagedResult" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/Comments/{commentId}/Reactions": { | |
"get": { | |
"tags": [ | |
"Comments" | |
], | |
"operationId": "GetCommentReactions", | |
"parameters": [ | |
{ | |
"name": "commentId", | |
"in": "path", | |
"required": true, | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/OutReactionCommentViewModel" | |
} | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/OutReactionCommentViewModel" | |
} | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/OutReactionCommentViewModel" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/ConfigSetting": { | |
"post": { | |
"tags": [ | |
"ConfigSetting" | |
], | |
"responses": { | |
"200": { | |
"description": "Success" | |
} | |
} | |
}, | |
"get": { | |
"tags": [ | |
"ConfigSetting" | |
], | |
"parameters": [ | |
{ | |
"name": "settingName", | |
"in": "query", | |
"schema": { | |
"type": "string" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"type": "string" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"type": "string" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/ConfigSetting/All": { | |
"get": { | |
"tags": [ | |
"ConfigSetting" | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Setting" | |
} | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Setting" | |
} | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Setting" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/Posts/{postId}": { | |
"get": { | |
"tags": [ | |
"Posts" | |
], | |
"operationId": "postId", | |
"parameters": [ | |
{ | |
"name": "postId", | |
"in": "path", | |
"required": true, | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/OutPostViewModel" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutPostViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutPostViewModel" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/Posts": { | |
"post": { | |
"tags": [ | |
"Posts" | |
], | |
"requestBody": { | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/PostViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/PostViewModel" | |
} | |
}, | |
"application/*+json": { | |
"schema": { | |
"$ref": "#/components/schemas/PostViewModel" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/OutPostViewModel" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutPostViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutPostViewModel" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"patch": { | |
"tags": [ | |
"Posts" | |
], | |
"requestBody": { | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/EditPostViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/EditPostViewModel" | |
} | |
}, | |
"application/*+json": { | |
"schema": { | |
"$ref": "#/components/schemas/EditPostViewModel" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/OutPostViewModel" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutPostViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutPostViewModel" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"delete": { | |
"tags": [ | |
"Posts" | |
], | |
"parameters": [ | |
{ | |
"name": "postId", | |
"in": "query", | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success" | |
} | |
} | |
} | |
}, | |
"/PostPage/{userId}": { | |
"get": { | |
"tags": [ | |
"Posts" | |
], | |
"operationId": "GetPagePosts", | |
"parameters": [ | |
{ | |
"name": "userId", | |
"in": "path", | |
"required": true, | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
}, | |
{ | |
"name": "page", | |
"in": "query", | |
"schema": { | |
"type": "integer", | |
"format": "int32" | |
} | |
}, | |
{ | |
"name": "quantity", | |
"in": "query", | |
"schema": { | |
"type": "integer", | |
"format": "int32" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/PostPagedResult" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/PostPagedResult" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/PostPagedResult" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/Posts/{postId}/Reactions": { | |
"get": { | |
"tags": [ | |
"Posts" | |
], | |
"operationId": "GetPostReactions", | |
"parameters": [ | |
{ | |
"name": "postId", | |
"in": "path", | |
"required": true, | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/OutReactionPostViewModel" | |
} | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/OutReactionPostViewModel" | |
} | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/OutReactionPostViewModel" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"/Reactions/Post": { | |
"get": { | |
"tags": [ | |
"Reactions" | |
], | |
"operationId": "GetReactionTypePost", | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionTypePost" | |
} | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionTypePost" | |
} | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionTypePost" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"post": { | |
"tags": [ | |
"Reactions" | |
], | |
"operationId": "AddReactionPost", | |
"requestBody": { | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/ReactionPostViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/ReactionPostViewModel" | |
} | |
}, | |
"application/*+json": { | |
"schema": { | |
"$ref": "#/components/schemas/ReactionPostViewModel" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/OutReactionPostViewModel" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutReactionPostViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutReactionPostViewModel" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"delete": { | |
"tags": [ | |
"Reactions" | |
], | |
"operationId": "DeletePost", | |
"parameters": [ | |
{ | |
"name": "postId", | |
"in": "query", | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success" | |
} | |
} | |
} | |
}, | |
"/Reactions/Comment": { | |
"get": { | |
"tags": [ | |
"Reactions" | |
], | |
"operationId": "GetReactionTypeComment", | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionTypeComment" | |
} | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionTypeComment" | |
} | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionTypeComment" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"post": { | |
"tags": [ | |
"Reactions" | |
], | |
"operationId": "AddReactionComment", | |
"requestBody": { | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/ReactionCommentViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/ReactionCommentViewModel" | |
} | |
}, | |
"application/*+json": { | |
"schema": { | |
"$ref": "#/components/schemas/ReactionCommentViewModel" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"text/plain": { | |
"schema": { | |
"$ref": "#/components/schemas/OutReactionCommentViewModel" | |
} | |
}, | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutReactionCommentViewModel" | |
} | |
}, | |
"text/json": { | |
"schema": { | |
"$ref": "#/components/schemas/OutReactionCommentViewModel" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"delete": { | |
"tags": [ | |
"Reactions" | |
], | |
"operationId": "DeleteComment", | |
"parameters": [ | |
{ | |
"name": "commentId", | |
"in": "query", | |
"schema": { | |
"type": "string", | |
"format": "uuid" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success" | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"schemas": { | |
"OutCommentViewModel": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"text": { | |
"type": "string", | |
"nullable": true | |
}, | |
"date": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"postId": { | |
"type": "string", | |
"format": "uuid" | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"CommentViewModel": { | |
"required": [ | |
"postId", | |
"text" | |
], | |
"type": "object", | |
"properties": { | |
"text": { | |
"type": "string" | |
}, | |
"postId": { | |
"type": "string", | |
"format": "uuid" | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"EditCommentViewModel": { | |
"required": [ | |
"commentId", | |
"text" | |
], | |
"type": "object", | |
"properties": { | |
"commentId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"text": { | |
"type": "string" | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"Role": { | |
"type": "object", | |
"properties": { | |
"roleId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"roleName": { | |
"type": "string", | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"UserConfirmationToken": { | |
"type": "object", | |
"properties": { | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"confirmEmail": { | |
"type": "string", | |
"nullable": true | |
}, | |
"createDateTime": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"confirmId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"isActive": { | |
"type": "boolean" | |
}, | |
"userSecurity": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/UserSecurity" | |
} | |
], | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"UserSecurity": { | |
"type": "object", | |
"properties": { | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"password": { | |
"type": "string", | |
"nullable": true | |
}, | |
"role": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/Role" | |
} | |
], | |
"nullable": true | |
}, | |
"isConfirmed": { | |
"type": "boolean" | |
}, | |
"user": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/User" | |
} | |
], | |
"nullable": true | |
}, | |
"userConfirmationTokens": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/UserConfirmationToken" | |
}, | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"GroupType": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"description": { | |
"type": "string", | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"GroupPost": { | |
"type": "object", | |
"properties": { | |
"postId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"groupId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"group": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/Group" | |
} | |
], | |
"nullable": true | |
}, | |
"post": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/Post" | |
} | |
], | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"Group": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"groupTypeId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"createDateTime": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"isArchived": { | |
"type": "boolean" | |
}, | |
"groupType": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/GroupType" | |
} | |
], | |
"nullable": true | |
}, | |
"groupPost": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/GroupPost" | |
}, | |
"nullable": true | |
}, | |
"userGroup": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/UserGroup" | |
}, | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"UserGroup": { | |
"type": "object", | |
"properties": { | |
"groupId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"group": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/Group" | |
} | |
], | |
"nullable": true | |
}, | |
"user": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/User" | |
} | |
], | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"ReactionTypePost": { | |
"type": "object", | |
"properties": { | |
"reactionId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"content": { | |
"type": "string", | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"ReactionPost": { | |
"type": "object", | |
"properties": { | |
"reactionId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"postId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"post": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/Post" | |
} | |
], | |
"nullable": true | |
}, | |
"reaction": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/ReactionTypePost" | |
} | |
], | |
"nullable": true | |
}, | |
"user": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/User" | |
} | |
], | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"ReactionTypeComment": { | |
"type": "object", | |
"properties": { | |
"reactionId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"content": { | |
"type": "string", | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"ReactionComment": { | |
"type": "object", | |
"properties": { | |
"reactionId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"commentId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"comment": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/Comment" | |
} | |
], | |
"nullable": true | |
}, | |
"reaction": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/ReactionTypeComment" | |
} | |
], | |
"nullable": true | |
}, | |
"user": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/User" | |
} | |
], | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"User": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"name": { | |
"type": "string", | |
"nullable": true | |
}, | |
"email": { | |
"type": "string", | |
"nullable": true | |
}, | |
"avatarUrl": { | |
"type": "string", | |
"nullable": true | |
}, | |
"dateOfBirth": { | |
"type": "string", | |
"format": "date-time", | |
"nullable": true | |
}, | |
"userSecurity": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/UserSecurity" | |
} | |
], | |
"nullable": true | |
}, | |
"comments": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Comment" | |
}, | |
"nullable": true | |
}, | |
"posts": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Post" | |
}, | |
"nullable": true | |
}, | |
"userGroup": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/UserGroup" | |
}, | |
"nullable": true | |
}, | |
"reactionPosts": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionPost" | |
}, | |
"nullable": true | |
}, | |
"reactionComments": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionComment" | |
}, | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"Post": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"text": { | |
"type": "string", | |
"nullable": true | |
}, | |
"date": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"isArchived": { | |
"type": "boolean" | |
}, | |
"user": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/User" | |
} | |
], | |
"nullable": true | |
}, | |
"groupPost": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/GroupPost" | |
} | |
], | |
"nullable": true | |
}, | |
"comments": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Comment" | |
}, | |
"nullable": true | |
}, | |
"reactionPost": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionPost" | |
}, | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"Comment": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"text": { | |
"type": "string", | |
"nullable": true | |
}, | |
"date": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"postId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"isArchived": { | |
"type": "boolean" | |
}, | |
"post": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/Post" | |
} | |
], | |
"nullable": true | |
}, | |
"user": { | |
"allOf": [ | |
{ | |
"$ref": "#/components/schemas/User" | |
} | |
], | |
"nullable": true | |
}, | |
"reactionComment": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/ReactionComment" | |
}, | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"CommentPagedResult": { | |
"type": "object", | |
"properties": { | |
"results": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Comment" | |
}, | |
"nullable": true | |
}, | |
"currentPage": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"pageCount": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"pageSize": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"rowCount": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"firstRowOnPage": { | |
"type": "integer", | |
"format": "int32", | |
"readOnly": true | |
}, | |
"lastRowOnPage": { | |
"type": "integer", | |
"format": "int32", | |
"readOnly": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"OutReactionCommentViewModel": { | |
"type": "object", | |
"properties": { | |
"reactionId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"commentId": { | |
"type": "string", | |
"format": "uuid" | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"Setting": { | |
"type": "object", | |
"properties": { | |
"key": { | |
"type": "string", | |
"nullable": true | |
}, | |
"value": { | |
"type": "string", | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"OutPostViewModel": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"text": { | |
"type": "string", | |
"nullable": true | |
}, | |
"date": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"PostViewModel": { | |
"required": [ | |
"text" | |
], | |
"type": "object", | |
"properties": { | |
"text": { | |
"type": "string" | |
}, | |
"date": { | |
"type": "string", | |
"format": "date-time" | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"EditPostViewModel": { | |
"required": [ | |
"id", | |
"text" | |
], | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"text": { | |
"type": "string" | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"PostPagedResult": { | |
"type": "object", | |
"properties": { | |
"results": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Post" | |
}, | |
"nullable": true | |
}, | |
"currentPage": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"pageCount": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"pageSize": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"rowCount": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"firstRowOnPage": { | |
"type": "integer", | |
"format": "int32", | |
"readOnly": true | |
}, | |
"lastRowOnPage": { | |
"type": "integer", | |
"format": "int32", | |
"readOnly": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"OutReactionPostViewModel": { | |
"type": "object", | |
"properties": { | |
"reactionId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"userId": { | |
"type": "string", | |
"format": "uuid" | |
}, | |
"postId": { | |
"type": "string", | |
"format": "uuid" | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"ReactionPostViewModel": { | |
"required": [ | |
"postId" | |
], | |
"type": "object", | |
"properties": { | |
"postId": { | |
"type": "string" | |
}, | |
"reactionId": { | |
"type": "string", | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
}, | |
"ReactionCommentViewModel": { | |
"required": [ | |
"commentId" | |
], | |
"type": "object", | |
"properties": { | |
"commentId": { | |
"type": "string" | |
}, | |
"reactionId": { | |
"type": "string", | |
"nullable": true | |
} | |
}, | |
"additionalProperties": false | |
} | |
}, | |
"securitySchemes": { | |
"Bearer": { | |
"type": "apiKey", | |
"description": "JWT Authorization header using the Bearer scheme. \r\n\r\n Enter 'Bearer' [space] and then your token in the text input below.\r\n\r\nExample: \"Bearer 12345abcdef\"", | |
"name": "Authorization", | |
"in": "header" | |
} | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [ ] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment