Al Montaka Api

Table of Contents

Contents

Lookups

Contents

get /comments
All Comments for a specific content (allCommentsforaspecificcontent)

Request headers

Query parameters

content_id (required)
Query Parameter — format: int32

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"message":"","errors":[],"data":{"current_page":1,"data":[{"id":1,"rating":5,"comment":"<p>asdfasdfasdf</p>","update_request":0,"removal_request":0,"language_id":2,"ip":"192.12.5.123","name":"Yehia el sayed","created_at":"2022-06-20T14:17:46.000000Z","updated_at":"2022-06-20T14:17:46.000000Z","content_id":1},{"id":2,"rating":0,"comment":"Comment","update_request":0,"removal_request":0,"language_id":1,"created_at":"2022-07-03T13:22:14.000000Z","updated_at":"2022-07-03T13:22:14.000000Z","content_id":1},{"id":3,"rating":0,"comment":"Comment 2","update_request":0,"removal_request":0,"language_id":1,"created_at":"2022-07-03T13:24:28.000000Z","updated_at":"2022-07-03T13:24:28.000000Z","content_id":1},{"id":4,"rating":0,"comment":"Comment 2","update_request":1,"removal_request":0,"language_id":1,"created_at":"2022-07-03T13:24:38.000000Z","updated_at":"2022-07-03T13:24:38.000000Z","content_id":1},{"id":5,"rating":0,"comment":"Comment","update_request":0,"removal_request":0,"language_id":1,"created_at":"2022-07-05T09:56:49.000000Z","updated_at":"2022-07-05T09:56:49.000000Z","content_id":1}],"first_page_url":"http://localhost:8000/Api/comments?page=1","from":1,"last_page":1,"last_page_url":"http://localhost:8000/Api/comments?page=1","links":[{"label":"&laquo; Previous","active":false},{"url":"http://localhost:8000/Api/comments?page=1","label":"1","active":true},{"label":"Next &raquo;","active":false}],"path":"http://localhost:8000/Api/comments","per_page":10,"to":5,"total":5}}

post /comment
Comment (comment)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request headers

Form parameters

comment (optional)
Form Parameter

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"message":"Comment submitted successfully","errors":[],"data":{"comment":"Comment","content_id":"1","updated_at":"2022-07-05T09:56:49.000000Z","created_at":"2022-07-05T09:56:49.000000Z","id":5}}

get /content
Contents (contents)

Query parameters

category%5B0%5D (required)
Query Parameter — format: int32

Return type

String

Example data

Content-Type: application/json
"You can easily generate the url from the admin panel (this will not work this is only for illustration of what you can specify)\r\nNote: on specifying categories or ideologies, you wont only get the content with that category or ideology. you will get the content with that category and ideology plus all the content related for the children (the whole tree)"

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

String

Example data

Content-Type: text/plain
You can easily generate the url from the admin panel (this will not work this is only for illustration of what you can specify)
Note: on specifying categories or ideologies, you wont only get the content with that category or ideology. you will get the content with that category and ideology plus all the content related for the children (the whole tree)

Lookups

get /age-groups
Age groups (agegroups)

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"message":"","errors":[],"data":[{"id":1,"name":"Age Group 1","language_id":1,"created_at":"2022-06-20T09:44:17.000000Z","updated_at":"2022-06-20T09:44:17.000000Z"},{"id":2,"name":"Age  Group 5","language_id":1,"created_at":"2022-06-20T09:44:22.000000Z","updated_at":"2022-06-20T09:45:21.000000Z"},{"id":3,"name":"Yehia el sayed","language_id":3,"created_at":"2022-06-20T14:49:01.000000Z","updated_at":"2022-06-20T14:49:01.000000Z"},{"id":4,"name":"book1","language_id":3,"created_at":"2022-06-20T14:49:23.000000Z","updated_at":"2022-06-20T14:49:23.000000Z"}]}

get /categories
Categories (categories)

Query parameters

language_id (required)
Query Parameter — format: int32
name_cont (required)
Query Parameter — format: int32

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"current_page":1,"data":[{"id":2,"name":"Cat 2","language_id":2,"parent_category_id":1,"created_at":"2022-06-24T11:52:27.000000Z","updated_at":"2022-06-25T14:37:46.000000Z"}],"first_page_url":"http://localhost:8000/Api/categories?page=1","from":1,"last_page":1,"last_page_url":"http://localhost:8000/Api/categories?page=1","links":[{"label":"&laquo; Previous","active":false},{"url":"http://localhost:8000/Api/categories?page=1","label":"1","active":true},{"label":"Next &raquo;","active":false}],"path":"http://localhost:8000/Api/categories","per_page":10,"to":1,"total":1}

get /entities
Entities (entities)

Query parameters

name_cont (required)
Query Parameter — format: int32
language_id (required)
Query Parameter — format: int32

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"current_page":1,"data":[{"id":1,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"},{"id":3,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"},{"id":4,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"},{"id":5,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"},{"id":6,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"},{"id":7,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"},{"id":9,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"},{"id":10,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"},{"id":11,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"},{"id":13,"name":"Entity 1","language_id":1,"about":"<p>asdfdasf</p>","logo":"entities\\June2022\\nHXU23XoAXlaF8lQsgNa.png","created_at":"2022-06-20T13:53:19.000000Z","updated_at":"2022-06-20T13:53:19.000000Z"}],"first_page_url":"http://localhost:8000/Api/entities?page=1","from":1,"last_page":2,"last_page_url":"http://localhost:8000/Api/entities?page=2","links":[{"label":"&laquo; Previous","active":false},{"url":"http://localhost:8000/Api/entities?page=1","label":"1","active":true},{"url":"http://localhost:8000/Api/entities?page=2","label":"2","active":false},{"url":"http://localhost:8000/Api/entities?page=2","label":"Next &raquo;","active":false}],"next_page_url":"http://localhost:8000/Api/entities?page=2","path":"http://localhost:8000/Api/entities","per_page":10,"to":10,"total":11}

get /expert-levels
Expert levels (expertlevels)

Query parameters

language_id (required)
Query Parameter — format: int32
name_cont (required)
Query Parameter — format: int32

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"current_page":1,"data":[{"id":1,"name":"Level1","language_id":2,"created_at":"2022-07-04T13:34:51.000000Z","updated_at":"2022-07-04T13:34:51.000000Z"}],"first_page_url":"http://localhost:8000/Api/expert-levels?page=1","from":1,"last_page":1,"last_page_url":"http://localhost:8000/Api/expert-levels?page=1","links":[{"label":"&laquo; Previous","active":false},{"url":"http://localhost:8000/Api/expert-levels?page=1","label":"1","active":true},{"label":"Next &raquo;","active":false}],"path":"http://localhost:8000/Api/expert-levels","per_page":10,"to":1,"total":1}

get /ideologies
Ideologies (ideologies)

Query parameters

language_id (required)
Query Parameter — format: int32
name_cont (required)
Query Parameter
parent_id (required)
Query Parameter — format: int32

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"current_page":1,"data":[{"id":3,"name":"Ideology3","desc":"<p>Desc</p>","privacy":2,"language_id":2,"parent_ideology_id":2,"created_at":"2022-07-04T12:49:36.000000Z","updated_at":"2022-07-04T12:49:36.000000Z"}],"first_page_url":"http://localhost:8000/Api/ideologies?page=1","from":1,"last_page":1,"last_page_url":"http://localhost:8000/Api/ideologies?page=1","links":[{"label":"&laquo; Previous","active":false},{"url":"http://localhost:8000/Api/ideologies?page=1","label":"1","active":true},{"label":"Next &raquo;","active":false}],"path":"http://localhost:8000/Api/ideologies","per_page":10,"to":1,"total":1}

get /languages
Languages (languages)

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"message":"Languages","errors":[],"data":[{"id":2,"name_en":"English","name_ar":"إنجليزي","enabled":1,"abr":"Eng","created_at":"2022-06-17T14:23:06.000000Z","updated_at":"2022-06-17T14:23:06.000000Z"},{"id":3,"name_en":"Hindi","name_ar":"هندي","enabled":1,"abr":"AR","created_at":"2022-06-20T14:45:02.000000Z","updated_at":"2022-06-20T14:45:02.000000Z"}]}

get /persons
Persons (persons)

Query parameters

name_cont (required)
Query Parameter
page (required)
Query Parameter — format: int32

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"current_page":1,"data":[{"id":1,"name":"Yehia","avatar":"persons\\June2022\\lpMoWE2cvpktRF98l0YS.png","website":"Websitee","facebook":"dfaf","whatsapp":"asdfa","youtube":"sdfadf","telegram":"sdfasadf","twitter":"sadfdasf","instagram":"asdfsadf","bio":"<p>asdfasdf</p>","content_status_id":1,"language_id":1,"privacy":1,"created_at":"2022-06-20T14:14:31.000000Z","updated_at":"2022-06-20T14:14:31.000000Z"}],"first_page_url":"http://localhost:8000/Api/persons?page=1","from":1,"last_page":1,"last_page_url":"http://localhost:8000/Api/persons?page=1","links":[{"label":"&laquo; Previous","active":false},{"url":"http://localhost:8000/Api/persons?page=1","label":"1","active":true},{"label":"Next &raquo;","active":false}],"path":"http://localhost:8000/Api/persons","per_page":10,"to":1,"total":1}

get /sections
Sections (sections)

Query parameters

language_id (required)
Query Parameter — format: int32
name_cont (required)
Query Parameter

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"current_page":1,"data":[{"id":1,"name":"Section A","language_id":2,"created_at":"2022-07-04T13:39:07.000000Z","updated_at":"2022-07-04T13:39:07.000000Z"}],"first_page_url":"http://localhost:8000/Api/sections?page=1","from":1,"last_page":1,"last_page_url":"http://localhost:8000/Api/sections?page=1","links":[{"label":"&laquo; Previous","active":false},{"url":"http://localhost:8000/Api/sections?page=1","label":"1","active":true},{"label":"Next &raquo;","active":false}],"path":"http://localhost:8000/Api/sections","per_page":10,"to":1,"total":1}

get /tags
Tags (tags)

Query parameters

language_id (required)
Query Parameter — format: int32
name_cont (required)
Query Parameter — format: int32

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"current_page":1,"data":[{"id":1,"tag":"Tag 1","language_id":2,"created_at":"2022-07-04T13:37:48.000000Z","updated_at":"2022-07-04T13:37:48.000000Z"}],"first_page_url":"http://localhost:8000/Api/tags?page=1","from":1,"last_page":1,"last_page_url":"http://localhost:8000/Api/tags?page=1","links":[{"label":"&laquo; Previous","active":false},{"url":"http://localhost:8000/Api/tags?page=1","label":"1","active":true},{"label":"Next &raquo;","active":false}],"path":"http://localhost:8000/Api/tags","per_page":10,"to":1,"total":1}

get /targeted-groups
Targeted Groups (targetedGroups)

Responses

default


get /youtube-channels
Youtube channels (youtubechannels)

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

default

Example data

Content-Type: application/json
{"message":"","errors":[],"data":{"current_page":1,"data":[{"id":1,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"},{"id":2,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"},{"id":3,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"},{"id":4,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"},{"id":5,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"},{"id":6,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"},{"id":7,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"},{"id":8,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"},{"id":9,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"},{"id":10,"name":"Yotuube","language_id":2,"content_status_id":4,"desc":"<p>asasdfa</p>","url":"https://youtu.be/bWujwqwjkf8","created_at":"2022-07-03T09:43:02.000000Z","updated_at":"2022-07-03T09:43:02.000000Z"}],"first_page_url":"http://localhost:8000/Api/youtube-channels?page=1","from":1,"last_page":2,"last_page_url":"http://localhost:8000/Api/youtube-channels?page=2","links":[{"label":"&laquo; Previous","active":false},{"url":"http://localhost:8000/Api/youtube-channels?page=1","label":"1","active":true},{"url":"http://localhost:8000/Api/youtube-channels?page=2","label":"2","active":false},{"url":"http://localhost:8000/Api/youtube-channels?page=2","label":"Next &raquo;","active":false}],"next_page_url":"http://localhost:8000/Api/youtube-channels?page=2","path":"http://localhost:8000/Api/youtube-channels","per_page":10,"to":10,"total":13}}