You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this yml file the 'new_category.yml' schema reference isn't being dereferenced, but the response is.
swagger: '2.0'
info:
title: 'Discourse API Documentation'
description: |
Documentation on how to use Discourse through API calls.
version: latest
host: discourse.example.com
schemes:
- https
basePath: /
produces:
- application/json
paths:
/categories.json:
get:
summary: Get a list of categories
description: |
The Categories endpoint returns a list of all the categories for
your discourse site that you have access to.
parameters: []
tags:
- Categories
responses:
'200':
description: |
A category_list object that contains an array of categories
schema:
$ref: 'definitions/categories/categories.yml'
post:
description: Create a new category
parameters:
- name: name
in: body
required: true
schema:
$ref: 'definitions/categories/new_category.yml'
tags:
- Categories
responses:
'200':
description: category response
schema:
The text was updated successfully, but these errors were encountered:
In this yml file the 'new_category.yml' schema reference isn't being dereferenced, but the response is.
The text was updated successfully, but these errors were encountered: