mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 02:30:39 +08:00
swagger.yaml mock file
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
swagger: '2.0'
|
||||
info:
|
||||
title: Talk API
|
||||
description: A commenting platform from The Coral Project. https://coralproject.net
|
||||
version: "0.0.1"
|
||||
host: api.talk-coralproject.net
|
||||
schemes:
|
||||
- https
|
||||
basePath: /v1
|
||||
produces:
|
||||
- application/json
|
||||
paths:
|
||||
/comments:
|
||||
get:
|
||||
summary: Comment Types
|
||||
description: |
|
||||
This endpoint retrieves comments
|
||||
parameters:
|
||||
- name: id
|
||||
in: query
|
||||
description: Comment by id
|
||||
required: false
|
||||
type: string
|
||||
tags:
|
||||
- Products
|
||||
responses:
|
||||
200:
|
||||
description: An array of comments
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/Comment'
|
||||
definitions:
|
||||
Comment:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
description: Unique identifier
|
||||
description:
|
||||
type: string
|
||||
description: Description of comment.
|
||||
display_name:
|
||||
type: string
|
||||
description: Display name of comment.
|
||||
Reference in New Issue
Block a user