-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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:
Metadata
Metadata
Assignees
Labels
No labels