Skip to content

Commit

Permalink
Merge pull request #270 from chhsiao1981/release-0.19.0
Browse files Browse the repository at this point in the history
update version to 0.19.0
  • Loading branch information
chhsiao1981 authored Oct 30, 2021
2 parents de64760 + c1b5413 commit ed9673a
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 4 deletions.
8 changes: 8 additions & 0 deletions apidoc/apidoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ def _edit_article(bid, aid):
return ''


@app.route(_with_app_prefix('/board/<bid>/deletearticles'), methods=['POST'])
def _delete_articles(bid, aid):
"""
swagger_from_file: apidoc/delete_articles.yaml
"""
return ''


@app.route(_with_app_prefix('/board/<bid>/article/<aid>/comment'), methods=['POST'])
def _create_comment(bid, aid):
"""
Expand Down
38 changes: 38 additions & 0 deletions apidoc/delete_articles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Delete Articles
---
tags:
- board
- article
parameters:
- '$ref': '#/definitions/Host'
- '$ref': '#/definitions/XForwardedFor'
- '$ref': '#/definitions/Authorization'
- name: bid
in: path
type: string
required: true
description: board-id
- name: params
in: body
required: true
schema:
'$id': https://json-schema.org/draft/2019-09/output/schema
type: object
properties:
aids:
type: array
items:
type: string
description: article-id
responses:
200:
description: response
schema:
'$id': https://json-schema.org/draft/2019-09/output/schema
type: object
properties:
indexes:
type: array
items:
type: number
description: idx in .DIR
3 changes: 2 additions & 1 deletion apidoc/edit_article.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ parameters:
description: original hash from GetArticle
responses:
200:
description: index-response
description: response
schema:
'$id': https://json-schema.org/draft/2019-09/output/schema
type: object
properties:
content:
type: string
Expand Down
2 changes: 1 addition & 1 deletion apidoc/template.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
info:
version: '0.18.3'
version: '0.19.0'
title: go-pttbbs
definitions:
!include defs/board_summary.yaml
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
go-pttbbs:
image: pttofficialapps/go-pttbbs:v0.18.3
image: pttofficialapps/go-pttbbs:v0.19.0
ports:
- "127.0.0.1:3456:3456"
- "127.0.0.1:8889:8888"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
go-pttbbs:
image: pttofficialapps/go-pttbbs:v0.18.3
image: pttofficialapps/go-pttbbs:v0.19.0
ports:
- "127.0.0.1:3456:3456"
- "127.0.0.1:8889:8888"
Expand Down

0 comments on commit ed9673a

Please sign in to comment.