========== /public_page ========== Register and manage public page * **URL** /public_page * **Method:** `POST` * **URL Params** No Params * **Data Params** .. code-block:: JSON { "page_title" : "// the registered email address of the user, type: string, required", "type_of_institute" : "// the corresponding password of the user, type: string, required", "founding_date" : "// the corresponding password of the user, type: string, required", "address_district" : "// the corresponding password of the user, type: string, required", "address_upozila" : "// the corresponding password of the user, type: string, required", "no_of_stakeholder" : "// the corresponding password of the user, type: string, required", "description" : "// the corresponding password of the user, type: string, required", } * **Success Response:** **HTTP Status Code: 200** **Response Object:** .. code-block:: JSON { "status_code":"page_creation_successfull", "default_description":"successfully created page", "data": { "token": "//session token, type: string", "subscribed_services": ["//a list of services subscribed by the user, type: string" { "service_id" : "//an id in the system for this service, type: string", "title": "//A title of the service, type: string", "short_updates": "//a short description with lastest update, type: string" } ], "recent_tasks": ["//a list of recents tasks" { "title": "//title of the task, type: string", "link": "//a link for the task, type: string" } ] } } * **Error Response:** **HTTP Status Code: 200** **Response Object:** .. code-block:: JSON { "status": "registration_failed //user_not_found when user not found, use this to show custom message1, type: string", "description": "already exist, type string" } * **Sample Call:** .. code-block:: javascript $.ajax({ url: "/public_page", type : "POST", contentType: 'application/json', data: JSON.stringify( { "page_title":"begum rokeya university, rangpur", "type_of_institute": "university", "founding_date":"2008", "address_district":"rangpur", "address_upozila":"sadar", "no_of_stakeholder":"20", "description":"this is a test page" }), success : function(r) { console.log(r); } }); * **Notes:** Required Authentication