fix: tests remove old routes

v1.18.x
Barış Soner Uşaklı 4 years ago
parent d41ce87334
commit faeb637353

@ -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":

@ -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

@ -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

@ -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
Loading…
Cancel
Save