{
  "opencollection": "1.0.0",
  "info": {
    "name": "Forithmus Challenge Platform 2fa forum API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "forum",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Categories",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/challenges/:slug/forum/categories",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List Categories"
        },
        {
          "info": {
            "name": "Create Category",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/challenges/:slug/forum/categories",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Category"
        },
        {
          "info": {
            "name": "Update Category",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/challenges/:slug/forum/categories/:cat_id",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "cat_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update Category"
        },
        {
          "info": {
            "name": "Delete Category",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/challenges/:slug/forum/categories/:cat_id",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "cat_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete Category"
        },
        {
          "info": {
            "name": "List Threads",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/challenges/:slug/forum",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "category",
                "value": "",
                "type": "query",
                "description": "Category slug filter"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Search in title and content"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "newest, upvoted, replies"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List Threads"
        },
        {
          "info": {
            "name": "Create Post",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/challenges/:slug/forum",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Post"
        },
        {
          "info": {
            "name": "Get Thread",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/challenges/:slug/forum/:post_id",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "post_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Thread"
        },
        {
          "info": {
            "name": "Update Post",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/challenges/:slug/forum/:post_id",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "post_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update Post"
        },
        {
          "info": {
            "name": "Delete Post",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/challenges/:slug/forum/:post_id",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "post_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete Post"
        },
        {
          "info": {
            "name": "Add Reaction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/challenges/:slug/forum/:post_id/react",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "post_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add Reaction"
        },
        {
          "info": {
            "name": "Remove Reaction",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/challenges/:slug/forum/:post_id/react/:reaction_type",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "post_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "reaction_type",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Remove Reaction"
        },
        {
          "info": {
            "name": "Get Edit History",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/challenges/:slug/forum/:post_id/edits",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "post_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Edit History"
        }
      ]
    }
  ],
  "bundled": true
}