Download OpenAPI specification:Download
Conduit API documentation
Get most recent articles from users you follow. Use query parameters to limit. Auth is required
offset | integer >= 0 The number of items to skip before starting to collect the result set. |
limit | integer >= 1 Default: 20 The numbers of items to return. |
{- "articles": [
- {
- "slug": "string",
- "title": "string",
- "description": "string",
- "body": "string",
- "tagList": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "favorited": true,
- "favoritesCount": 0,
- "author": {
- "username": "string",
- "bio": "string",
- "image": "string",
- "following": true
}
}
], - "articlesCount": 0
}
Get most recent articles globally. Use query parameters to filter results. Auth is optional
tag | string Filter by tag |
author | string Filter by author (username) |
favorited | string Filter by favorites of a user (username) |
offset | integer >= 0 The number of items to skip before starting to collect the result set. |
limit | integer >= 1 Default: 20 The numbers of items to return. |
{- "articles": [
- {
- "slug": "string",
- "title": "string",
- "description": "string",
- "body": "string",
- "tagList": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "favorited": true,
- "favoritesCount": 0,
- "author": {
- "username": "string",
- "bio": "string",
- "image": "string",
- "following": true
}
}
], - "articlesCount": 0
}
Create an article. Auth is required
Article to create
required | object (NewArticle) |
{- "article": {
- "title": "string",
- "description": "string",
- "body": "string",
- "tagList": [
- "string"
]
}
}
{- "article": {
- "slug": "string",
- "title": "string",
- "description": "string",
- "body": "string",
- "tagList": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "favorited": true,
- "favoritesCount": 0,
- "author": {
- "username": "string",
- "bio": "string",
- "image": "string",
- "following": true
}
}
}
Get an article. Auth not required
slug required | string Slug of the article to get |
{- "article": {
- "slug": "string",
- "title": "string",
- "description": "string",
- "body": "string",
- "tagList": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "favorited": true,
- "favoritesCount": 0,
- "author": {
- "username": "string",
- "bio": "string",
- "image": "string",
- "following": true
}
}
}
Update an article. Auth is required
slug required | string Slug of the article to update |
Article to update
required | object (UpdateArticle) |
{- "article": {
- "title": "string",
- "description": "string",
- "body": "string"
}
}
{- "article": {
- "slug": "string",
- "title": "string",
- "description": "string",
- "body": "string",
- "tagList": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "favorited": true,
- "favoritesCount": 0,
- "author": {
- "username": "string",
- "bio": "string",
- "image": "string",
- "following": true
}
}
}
Get the comments for an article. Auth is optional
slug required | string Slug of the article that you want to get comments for |
{- "comments": [
- {
- "id": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "body": "string",
- "author": {
- "username": "string",
- "bio": "string",
- "image": "string",
- "following": true
}
}
]
}
Create a comment for an article. Auth is required
slug required | string Slug of the article that you want to create a comment for |
Comment you want to create
required | object (NewComment) |
{- "comment": {
- "body": "string"
}
}
{- "comment": {
- "id": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "body": "string",
- "author": {
- "username": "string",
- "bio": "string",
- "image": "string",
- "following": true
}
}
}
Delete a comment for an article. Auth is required
slug required | string Slug of the article that you want to delete a comment for |
id required | integer ID of the comment you want to delete |
{- "errors": {
- "body": [
- "string"
]
}
}
Favorite an article. Auth is required
slug required | string Slug of the article that you want to favorite |
{- "article": {
- "slug": "string",
- "title": "string",
- "description": "string",
- "body": "string",
- "tagList": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "favorited": true,
- "favoritesCount": 0,
- "author": {
- "username": "string",
- "bio": "string",
- "image": "string",
- "following": true
}
}
}
Unfavorite an article. Auth is required
slug required | string Slug of the article that you want to unfavorite |
{- "article": {
- "slug": "string",
- "title": "string",
- "description": "string",
- "body": "string",
- "tagList": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "favorited": true,
- "favoritesCount": 0,
- "author": {
- "username": "string",
- "bio": "string",
- "image": "string",
- "following": true
}
}
}
Login for existing user
Credentials to use
required | object (LoginUser) |
{- "user": {
- "email": "string",
- "password": "pa$$word"
}
}
{- "user": {
- "email": "string",
- "token": "string",
- "username": "string",
- "bio": "string",
- "image": "string"
}
}
Register a new user
Details of the new user to register
required | object (NewUser) |
{- "user": {
- "username": "string",
- "email": "string",
- "password": "pa$$word"
}
}
{- "user": {
- "email": "string",
- "token": "string",
- "username": "string",
- "bio": "string",
- "image": "string"
}
}
Updated user information for current user
User details to update. At least one field is required.
required | object (UpdateUser) |
{- "user": {
- "email": "string",
- "password": "string",
- "username": "string",
- "bio": "string",
- "image": "string"
}
}
{- "user": {
- "email": "string",
- "token": "string",
- "username": "string",
- "bio": "string",
- "image": "string"
}
}