🗃️Endpoints - Topics
Get a topic
Get a topic
The id of the forum
The id of the topic
Topic found and returned successfully
Malformed payload
Topic not found
GET /v1/forums/{forumId}/topics/{topicId} HTTP/1.1
Host: openapi.meltingspot.io
Accept: */*
{
"id": "text",
"name": "text"
}
Update a topic
Update a topic
The id of the forum
The id of the topic
Name of the topic
Content of the topic
Topic successfully updated
Malformed payload
Topic not found
PUT /v1/forums/{forumId}/topics/{topicId} HTTP/1.1
Host: openapi.meltingspot.io
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"name": "text",
"content": "text"
}
{
"id": "text",
"name": "text"
}
Delete a topic
Delete a topic
The id of the forum
The id of the topic
Topic successfully deleted
Malformed payload
Topic not found
DELETE /v1/forums/{forumId}/topics/{topicId} HTTP/1.1
Host: openapi.meltingspot.io
Accept: */*
Aucun contenu
Create a topic
Create a topic
The id of the forum
Name of the topic
Content of the topic (in Markdown)
Topic has been successfully created
Malformed payload
POST /v1/forums/{forumId}/topics HTTP/1.1
Host: openapi.meltingspot.io
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"name": "text",
"content": "text"
}
{
"id": "text",
"name": "text"
}
List topics
List topics
The id of the forum
The page number in a paginated set of results
The limit of results to be returned per page
Search Topic with a specified name
Search Topic that contains this value in his name
Topics returned successfully
Malformed payload
GET /v1/forums/{forumId}/topics HTTP/1.1
Host: openapi.meltingspot.io
Accept: */*
{
"items": [
{
"id": "text",
"name": "text"
}
],
"total": 1
}
Create multiple topics
Create multiple topics
ID of the forum
Name of the topic
Content of the topic (in Markdown)
Topics has been successfully created
Malformed payload
Payload is too large
POST /v1/forums/{forumId}/topics~bulkCreate HTTP/1.1
Host: openapi.meltingspot.io
Content-Type: application/json
Accept: */*
Content-Length: 34
[
{
"name": "text",
"content": "text"
}
]
{
"created": [
{
"id": "text",
"name": "text",
"emoji": "text",
"description": {},
"privacy": "Private",
"autoJoin": true,
"showMembers": true
}
],
"failed": [
{
"name": "text",
"description": "text",
"emoji": "text",
"autoJoin": true,
"showMembers": true,
"privacy": "Private"
}
]
}
Mis à jour
Ce contenu vous a-t-il été utile ?