implement route /articles/{article}/follows

create repository for find_follow
This commit is contained in:
2020-02-27 17:14:56 +01:00
parent 3a08052728
commit 967b370a41
4 changed files with 38 additions and 5 deletions

View File

@@ -533,6 +533,22 @@ paths:
/articles/{article}/follows:
parameters:
- $ref: '#/components/parameters/article'
get:
security:
- JWTAuth: []
summary: Return Follow or nothing if you not follow
tags:
- follow
- article
responses:
200:
description: Return your follow
content:
application/json:
schema:
$ref: '#/components/schemas/FollowResponse'
404:
description: You not follow this article
post:
security:
- JWTAuth: []