Skip to content
/ q2a-api Public

[Question2Answer plugin] Adds simple API to serve some data as JSON

License

Notifications You must be signed in to change notification settings

awaluk/q2a-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API plugin to Question2Answer

Creates simple API and serve some data as JSON.

Tested on Q2A version >= 1.7.0 and PHP >= 7.0. Code style adjusted to Q2A style.

Installation

Clone or download this repository or selected release to qa-plugin directory in your Q2A.

Available endpoints

  • /api/favorites - get favorites data for logged user: users, questions, tags and categories
    {
        "questions": ["2", "1"],
        "users": ["Example username"],
        "tags": ["Example tag 1", "Example tag 2"],
        "categories": ["Example category"]
    }