View to get and post to the Discourse platform

example of input (GET) on local:

http://127.0.0.1:8080/api/discourse_post/?post_title=Mpro%20First%20Project

examples of input (POST raw data):

{"category_name": "NewCategory", "parent_category_name": "Fragalysis targets", "category_colour": "0088CC",
"category_text_colour": "FFFFFF", "post_title": "", "post_content": "", "post_tags":""}

{"category_name": "NewCategory", "parent_category_name": "Fragalysis targets", "category_colour": "0088CC",
"category_text_colour": "FFFFFF", "post_title": "New Topic Title 1",
"post_content": "This is the first post that creates the topic - must be greater than 20 chars",
"post_tags" :"[\"tag1\",\"tag2\"]"}

{"category_name": "NewCategory", "parent_category_name": "Fragalysis targets", "category_colour": "0088CC",
"category_text_colour": "FFFFFF", "post_title": "New Topic Title 1",
"post_content": "This is a second post to New Topic Title 1", "post_tags" :"[]"}

GET /api/discourse_post/?format=api
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "message": "Discourse Not Available - No API key supplied"
}