From faeb637353a5f57808315a684616098b13096a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 27 Jan 2021 20:30:33 -0500 Subject: [PATCH] fix: tests remove old routes --- public/openapi/read.yaml | 6 -- public/openapi/read/category/cid/id.yaml | 71 ------------------------ public/openapi/read/post/pid/id.yaml | 62 --------------------- public/openapi/read/topic/tid/id.yaml | 36 ------------ 4 files changed, 175 deletions(-) delete mode 100644 public/openapi/read/category/cid/id.yaml delete mode 100644 public/openapi/read/post/pid/id.yaml delete mode 100644 public/openapi/read/topic/tid/id.yaml diff --git a/public/openapi/read.yaml b/public/openapi/read.yaml index f33624b521..f849b2a995 100644 --- a/public/openapi/read.yaml +++ b/public/openapi/read.yaml @@ -169,12 +169,6 @@ paths: $ref: 'read/user/uid/userslug/export/uploads.yaml' "/api/user/uid/{userslug}/export/profile": $ref: 'read/user/uid/userslug/export/profile.yaml' - "/api/{type}/pid/{id}": - $ref: 'read/post/pid/id.yaml' - "/api/{type}/tid/{id}": - $ref: 'read/topic/tid/id.yaml' - "/api/{type}/cid/{id}": - $ref: 'read/category/cid/id.yaml' /api/categories: $ref: 'read/categories.yaml' "/api/categories/{cid}/moderators": diff --git a/public/openapi/read/category/cid/id.yaml b/public/openapi/read/category/cid/id.yaml deleted file mode 100644 index 298147dea3..0000000000 --- a/public/openapi/read/category/cid/id.yaml +++ /dev/null @@ -1,71 +0,0 @@ -get: - tags: - - shorthand - summary: Get category data - parameters: - - name: type - in: path - required: true - schema: - type: string - example: category - - name: id - in: path - required: true - schema: - type: string - example: 1 - responses: - "200": - description: "A JSON object containing category data" - content: - application/json: - schema: - type: object - properties: - cid: - type: number - name: - type: number - description: - type: string - descriptionParsed: - type: string - icon: - type: string - bgColor: - type: string - color: - type: string - slug: - type: string - parentCid: - type: number - topic_count: - type: number - post_count: - type: number - disabled: - type: number - order: - type: number - link: - type: string - numRecentReplies: - type: number - class: - type: string - imageClass: - type: string - isSection: - type: number - postQueue: - type: number - totalPostCount: - type: number - totalTopicCount: - type: number - minTags: - type: number - maxTags: - type: number \ No newline at end of file diff --git a/public/openapi/read/post/pid/id.yaml b/public/openapi/read/post/pid/id.yaml deleted file mode 100644 index 58dd822f30..0000000000 --- a/public/openapi/read/post/pid/id.yaml +++ /dev/null @@ -1,62 +0,0 @@ -get: - tags: - - shorthand - summary: Get post data - parameters: - - name: type - in: path - required: true - schema: - type: string - example: post - - name: id - in: path - required: true - schema: - type: number - example: 1 - responses: - "200": - description: "A JSON object containing post data" - content: - application/json: - schema: - type: object - properties: - uid: - type: number - tid: - type: number - timestamp: - type: number - content: - type: string - pid: - type: number - downvotes: - type: number - upvotes: - type: number - bookmarks: - type: number - deleted: - type: number - deleterUid: - type: number - edited: - type: number - votes: - type: number - timestampISO: - type: string - editedISO: - type: string - upvoted: - type: boolean - downvoted: - type: boolean - flagId: - type: number - description: The flag identifier, if this particular post has been flagged before - replies: - type: number \ No newline at end of file diff --git a/public/openapi/read/topic/tid/id.yaml b/public/openapi/read/topic/tid/id.yaml deleted file mode 100644 index dd77ad2670..0000000000 --- a/public/openapi/read/topic/tid/id.yaml +++ /dev/null @@ -1,36 +0,0 @@ -get: - tags: - - shorthand - summary: Get topic data - parameters: - - name: type - in: path - required: true - schema: - type: string - example: topic - - name: id - in: path - required: true - schema: - type: string - example: 1 - responses: - "200": - description: "A JSON object containing topic data" - content: - application/json: - schema: - allOf: - - $ref: ../../../components/schemas/TopicObject.yaml#/TopicObjectSlim - - type: object - properties: - teaserPid: - type: number - nullable: true - title: - type: string - slug: - type: string - titleRaw: - type: string \ No newline at end of file