{"info":{"_postman_id":"2d2a0367-2c62-4507-80ec-eeb64b5329f0","name":"FORTE","description":"<html><head></head><body><p>This is Forte A Comprehensive Student Hostel Management System</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"31401198","collectionId":"2d2a0367-2c62-4507-80ec-eeb64b5329f0","publishedId":"2sA2rCTM2G","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-04-22T08:51:24.000Z"},"item":[{"name":"REGISTER","id":"bbf08903-a538-4e42-aeef-1c482c7c8502","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_type\": \"admin\",\r\n    \"name\": \"Doe\",\r\n    \"email\": \"owa@gmail.com\",\r\n    \"password\": \"Password123.\",\r\n    \"date_of_birth\": \"2000-01-01\",\r\n    \"gender\": \"male\",\r\n    \"address\": \"123 Main Street, City, Country\",\r\n    \"guardian_name\": \"Jane Doe\",\r\n    \"guardian_contact\": \"1234567890\",\r\n    \"guardian2_name\": \"Jim Doe\",\r\n    \"guardian2_contact\": \"0987654321\",\r\n    \"Id_number\": \"12345678\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL2}}/api/users/register/","description":"<h3 id=\"register-user\">Register User</h3>\n<p>This endpoint allows the registration of a new user.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>user_type</code> (string, required): The type of user.</li>\n<li><code>name</code> (string, required): The name of the user.</li>\n<li><code>email</code> (string, required): The email address of the user.</li>\n<li><code>password</code> (string, required): The password for the user account.</li>\n<li><code>date_of_birth</code> (string, optional): The date of birth of the user.</li>\n<li><code>gender</code> (string, optional): The gender of the user.</li>\n<li><code>address</code> (string, optional): The address of the user.</li>\n<li><code>guardian_name</code> (string, optional): The name of the user's guardian.</li>\n<li><code>guardian_contact</code> (string, optional): The contact information of the user's guardian.</li>\n<li><code>guardian2_name</code> (string, optional): The name of the user's second guardian.</li>\n<li><code>guardian2_contact</code> (string, optional): The contact information of the user's second guardian.</li>\n<li><code>Id_number</code> (string, optional): The identification number of the user.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><code>id</code> (integer): The ID of the registered user.</li>\n<li><code>name</code> (string): The name of the user.</li>\n<li><code>_id</code> (integer): The ID of the user.</li>\n<li><code>isAdmin</code> (boolean): Indicates if the user is an admin.</li>\n<li><code>hostel_name</code> (string): The name of the hostel associated with the user.</li>\n<li><code>password</code> (string): The user's password.</li>\n<li><code>last_login</code> (string): The date and time of the user's last login.</li>\n<li><code>is_superuser</code> (boolean): Indicates if the user is a superuser.</li>\n<li><code>username</code> (string): The username of the user.</li>\n<li><code>first_name</code> (string): The first name of the user.</li>\n<li><code>last_name</code> (string): The last name of the user.</li>\n<li><code>is_staff</code> (boolean): Indicates if the user is a staff member.</li>\n<li><code>is_active</code> (boolean): Indicates if the user account is active.</li>\n<li><code>auth_provider</code> (string): The authentication provider for the user.</li>\n<li><code>email</code> (string): The email address of the user.</li>\n<li><code>bio</code> (string): The biography of the user.</li>\n<li><code>date_joined</code> (string): The date and time of user registration.</li>\n<li><code>avi</code> (string): The user's avatar.</li>\n<li><code>isForte</code> (boolean): Indicates if the user is a Forte user.</li>\n<li><code>date_of_birth</code> (string): The date of birth of the user.</li>\n<li><code>gender</code> (string): The gender of the user.</li>\n<li><code>contact_number</code> (string): The contact number of the user.</li>\n<li><code>address</code> (string): The address of the user.</li>\n<li><code>guardian_name</code> (string): The name of the user's guardian.</li>\n<li><code>guardian_contact</code> (string): The contact information of the user's guardian.</li>\n<li><code>guardian2_name</code> (string): The name of the user's second guardian.</li>\n<li><code>guardian2_contact</code> (string): The contact information of the user's second guardian.</li>\n<li><code>Id_number</code> (string): The identification number of the user.</li>\n<li><code>user_type</code> (string): The type of user.</li>\n<li><code>is_verified</code> (boolean): Indicates if the user account is verified.</li>\n<li><code>hostel</code> (string): The hostel associated with the user.</li>\n<li><code>groups</code> (array): The groups the user belongs to.</li>\n<li><code>user_permissions</code> (array): The permissions assigned to the user.</li>\n</ul>\n","urlObject":{"path":["api","users","register",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bbf08903-a538-4e42-aeef-1c482c7c8502"},{"name":"LOGIN","event":[{"listen":"test","script":{"id":"44c3b056-6cb6-40ad-9415-c4d736d033d0","exec":["var template = `\r","<style type=\"text/css\">\r","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}\r","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}\r","    .tftable tr {background-color:#ffffff;}\r","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}\r","    .tftable tr:hover {background-color:#e0ffff;}\r","</style>\r","\r","<table class=\"tftable\" border=\"1\">\r","    <tr>\r","        <th>Field</th>\r","        <th>Value</th>\r","    </tr>\r","    \r","    <tr>\r","        <td>Refresh</td>\r","        <td>{{response.refresh}}</td>\r","    </tr>\r","    <tr>\r","        <td>Access</td>\r","        <td>{{response.access}}</td>\r","    </tr>\r","    <tr>\r","        <td>ID</td>\r","        <td>{{response.id}}</td>\r","    </tr>\r","    <tr>\r","        <td>_ID</td>\r","        <td>{{response._id}}</td>\r","    </tr>\r","    <tr>\r","        <td>Username</td>\r","        <td>{{response.username}}</td>\r","    </tr>\r","    <tr>\r","        <td>Email</td>\r","        <td>{{response.email}}</td>\r","    </tr>\r","    <tr>\r","        <td>Name</td>\r","        <td>{{response.name}}</td>\r","    </tr>\r","    <tr>\r","        <td>Is Admin</td>\r","        <td>{{response.isAdmin}}</td>\r","    </tr>\r","    <tr>\r","        <td>Token</td>\r","        <td>{{response.token}}</td>\r","    </tr>\r","</table>\r","`;\r","\r","function constructVisualizerPayload() {\r","    return { response: pm.response.json() }\r","}\r","\r","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"92ddf659-18a5-4361-99be-286c0cf711d3","exec":[""],"type":"text/javascript","packages":{}}}],"id":"ec33145b-c729-4c5e-9649-b6d3e4a72aeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"owa@gmail.com","type":"text"},{"key":"password","value":"Password123.","type":"text"}]},"url":"{{URL2}}/api/users/login/","description":"<p>This endpoint allows users to log in via a POST request to {{URL2}}/api/users/login/. The request should include a form-data body with \"username\" and \"password\" as text parameters. Upon a successful execution, the server responds with a status code of 200 and a JSON object containing user information, including user ID, username, email, name, admin status, and access tokens with expiration time.</p>\n","urlObject":{"path":["api","users","login",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec33145b-c729-4c5e-9649-b6d3e4a72aeb"},{"name":"CREATE ACCOMODATION","id":"94145045-0166-4bbf-85f1-dc28b00fc012","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"hostel_id\": 6,\r\n  \"type\": \"Empty\",\r\n  \"capacity\": 4,\r\n  \"duration\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL2}}/api/students/new/","description":"<h1 id=\"add-new-student\">Add New Student</h1>\n<p>This API endpoint allows you to add a new student to a hostel.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"endpoint\">Endpoint</h3>\n<p><code>POST /api/students/new/</code></p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>hostel_id</code> (integer) - The ID of the hostel where the student will be added.</li>\n<li><code>type</code> (string) - The type of the student.</li>\n<li><code>capacity</code> (integer) - The capacity of the student.</li>\n<li><code>duration</code> (integer) - The duration of the student's stay.</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"hostel_id\": 0,\n    \"type\": \"\",\n    \"capacity\": 0,\n    \"duration\": 0\n}\n## Response\n### Status: 201 - Created\n### Content-Type: application/json\n- `id` (integer) - The ID of the newly added student.\n- `person_name` (string) - The name of the student.\n- `check_in_date` (string) - The date of check-in.\n- `check_out_date` (string) - The date of check-out.\n- `price` (string) - The price of the stay.\n- `paid` (boolean) - Indicates if the payment has been made.\n- `sent` (boolean) - Indicates if any notification has been sent.\n- `status` (string) - The status of the student.\n- `duration` (integer) - The duration of the stay.\n- `student` (integer) - The ID of the student.\n- `room` (integer) - The ID of the room assigned to the student.\n- `hostel` (integer) - The ID of the hostel.\nExample:\n```json\n{\n    \"id\": 0,\n    \"person_name\": \"\",\n    \"check_in_date\": \"\",\n    \"check_out_date\": \"\",\n    \"price\": \"\",\n    \"paid\": true,\n    \"sent\": true,\n    \"status\": \"\",\n    \"duration\": 0,\n    \"student\": 0,\n    \"room\": 0,\n    \"hostel\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["api","students","new",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"94145045-0166-4bbf-85f1-dc28b00fc012"},{"name":"CREATE ROOM","id":"5efb3680-3a7c-4131-9989-ff76dbb7d713","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"capacity_1\": 1,\r\n    \"capacity_2\": 1,\r\n    \"capacity_4\": 10\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL2}}/api/hostels/new_room/","description":"<h1 id=\"add-room-to-hostel\">Add Room to Hostel</h1>\n<p>This endpoint allows you to add a new room to a hostel.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<ul>\n<li><code>capacity_1</code> (integer): The capacity of the room for 1 person.</li>\n<li><code>capacity_2</code> (integer): The capacity of the room for 2 persons.</li>\n<li><code>capacity_4</code> (integer): The capacity of the room for 4 persons.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>Upon successful creation of the room, the endpoint returns a status code of 201 and a JSON object containing the details of the newly created room, including its unique <code>id</code>, <code>room_number</code>, <code>capacity</code>, <code>isAvailable</code> status, <code>current_occupancy</code>, <code>damages</code> status, <code>cost_of_damage</code>, and the <code>hostel</code> to which it belongs.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 123,\n        \"room_number\": \"A101\",\n        \"capacity\": \"4\",\n        \"isAvailable\": true,\n        \"current_occupancy\": 0,\n        \"damages\": false,\n        \"cost_of_damage\": null,\n        \"hostel\": 456\n    }\n]\n</code></pre>\n","urlObject":{"path":["api","hostels","new_room",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5efb3680-3a7c-4131-9989-ff76dbb7d713"},{"name":"CREATE HOSTEL","id":"d6c52b8f-070a-4a12-a86e-adc05a7b5cf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"hostel_name\": \"Gilbeys\",\r\n    \"address\": \"1234 Test Street\",\r\n    \"demo_secret\": \"True\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL2}}/api/hostels/new/","description":"<h3 id=\"add-new-hostel\">Add New Hostel</h3>\n<p>This endpoint allows you to add a new hostel to the system.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>hostel_name</code> (string, required): The name of the hostel.</li>\n<li><code>stripe_key</code> (string, required): The Stripe key for payment processing.</li>\n<li><code>address</code> (string, required): The address of the hostel.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 400</li>\n<li>Content-Type: application/json</li>\n<li><code>detail</code> (string): Details about the error.</li>\n</ul>\n","urlObject":{"path":["api","hostels","new",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6c52b8f-070a-4a12-a86e-adc05a7b5cf5"},{"name":"GET HOSTELS","id":"259dd06b-9e44-4171-bb40-f05790e3e78d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"url":"{{URL2}}/api/hostels/?name=&page=1","description":"<h1 id=\"get-hostels\">Get Hostels</h1>\n<p>This endpoint retrieves a list of hostels with optional filtering by name and pagination.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"url\">URL</h3>\n<p><code>GET /api/hostels/</code></p>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><code>name</code> (optional): Filter hostels by name.</li>\n<li><code>page</code> (required, integer): The page number for paginating the results.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li>Status: 200 OK</li>\n<li>Content-Type: application/json</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"count\": 0,\n    \"next\": \"\",\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": 0,\n            \"staff_count\": 0,\n            \"student_count\": 0,\n            \"hostel_name\": \"\",\n            \"stripe_webhook\": null,\n            \"address\": \"\",\n            \"phone\": \"\",\n            \"email\": \"\",\n            \"gender\": \"\",\n            \"capacity\": 0,\n            \"count\": 0,\n            \"imag1\": \"\",\n            \"imag2\": \"\",\n            \"imag3\": \"\",\n            \"imag4\": \"\",\n            \"imag5\": \"\",\n            \"imag6\": \"\",\n            \"imag7\": \"\",\n            \"imag8\": \"\",\n            \"imag9\": \"\",\n            \"imag10\": \"\",\n            \"imag11\": \"\",\n            \"room_price_1\": \"\",\n            \"room_price_2\": \"\",\n            \"room_price_4\": \"\",\n            \"administrator\": 0\n        }\n    ]\n}\n</code></pre>\n<p>The response contains a <code>count</code> of hostels, <code>next</code> and <code>previous</code> links for pagination, and a list of <code>results</code> with details of each hostel.</p>\n","urlObject":{"path":["api","hostels",""],"host":["{{URL2}}"],"query":[{"key":"name","value":""},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"259dd06b-9e44-4171-bb40-f05790e3e78d"},{"name":"GET SINGLE HOSTEL","id":"9faae073-0501-4595-940d-74651a09e1df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"url":"{{URL2}}/api/hostels/3/","description":"<p>This API endpoint retrieves information about a specific hostel by making an HTTP GET request to {{URL2}}/api/hostels/3/. The response will be in JSON format and will include details such as the hostel's ID, staff count, student count, name, address, contact information, capacity, and room prices. </p>\n","urlObject":{"path":["api","hostels","3",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9faae073-0501-4595-940d-74651a09e1df"},{"name":"CREATE MAINTENANCE","id":"287690a7-1818-428c-80d7-bd6c2220cff4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"facility_id","value":"8","type":"text"}]},"url":"{{URL2}}/api/students/create_maintenance/","description":"<h1 id=\"create-maintenance-record-for-students\">Create Maintenance Record for Students</h1>\n<p>This endpoint allows you to create a maintenance record for students.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"http-post-apistudentscreate_maintenance\">HTTP POST /api/students/create_maintenance/</h3>\n<p>The request should be made using the <code>form-data</code> request body type with the following parameter:</p>\n<ul>\n<li><code>facility_id</code> (text) - The ID of the facility for which the maintenance record is being created.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li>Status: 201</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>The response will contain the details of the newly created maintenance record in the following format:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"facility_name\": \"\",\n    \"student_name\": \"\",\n    \"status\": \"\",\n    \"date_raised\": \"\",\n    \"resolved\": true,\n    \"date_resolved\": null,\n    \"student\": 0,\n    \"hostel\": 0,\n    \"room\": 0,\n    \"facility\": 0\n}\n</code></pre>\n","urlObject":{"path":["api","students","create_maintenance",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"287690a7-1818-428c-80d7-bd6c2220cff4"},{"name":"CREATE COMLAINT","id":"d523f708-2c67-4d8d-9d2b-8dbcb297cfc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description","value":"My Roof Leaking Please Lol wasting my tim","type":"text"}]},"url":"{{URL2}}/api/students/create_complaint/","description":"<p>This endpoint allows the creation of a complaint for a student. The request should be sent to {{URL2}}/api/students/create_complaint/ using the HTTP POST method. The request body should be of form-data type and include a parameter \"description\" of type \"text\" which represents the description of the complaint.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful creation of the complaint, the endpoint returns a status code of 201 and a JSON object with the following fields:</p>\n<ul>\n<li>\"id\": The unique identifier for the complaint.</li>\n<li>\"student_name\": The name of the student raising the complaint.</li>\n<li>\"description\": The description of the complaint.</li>\n<li>\"status\": The status of the complaint.</li>\n<li>\"date_raised\": The date when the complaint was raised.</li>\n<li>\"resolved\": A boolean indicating whether the complaint has been resolved.</li>\n<li>\"date_resolved\": The date when the complaint was resolved, null if not resolved.</li>\n<li>\"hostel\": The identifier of the hostel where the complaint was raised.</li>\n<li>\"student\": The identifier of the student raising the complaint.</li>\n</ul>\n","urlObject":{"path":["api","students","create_complaint",""],"host":["{{URL2}}"],"query":[{"disabled":true,"key":"Auth","value":null}],"variable":[]}},"response":[],"_postman_id":"d523f708-2c67-4d8d-9d2b-8dbcb297cfc2"},{"name":"GET SPECIFIC ROOM","id":"c8ac7bc6-21ad-442f-93e4-1b665f1daf39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"url":"{{URL2}}/api/hostels/rooms/51/","description":"<p>This endpoint makes an HTTP GET request to retrieve information about a specific room in a hostel. The request should be sent to {{URL2}}/api/hostels/rooms/597/.</p>\n<p>The last execution of this request returned a 403 status code with a response in JSON format. The response included a \"detail\" field, which was empty.</p>\n","urlObject":{"path":["api","hostels","rooms","51",""],"host":["{{URL2}}"],"query":[{"disabled":true,"key":"Authori","value":null}],"variable":[]}},"response":[],"_postman_id":"c8ac7bc6-21ad-442f-93e4-1b665f1daf39"},{"name":"GET ROOMS IN A HOSTEL","event":[{"listen":"test","script":{"id":"3854dfee-72cb-4f75-8666-563c433ec091","exec":["var template = `\r","<style type=\"text/css\">\r","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}\r","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}\r","    .tftable tr {background-color:#ffffff;}\r","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}\r","    .tftable tr:hover {background-color:#e0ffff;}\r","</style>\r","\r","<table class=\"tftable\" border=\"1\">\r","    <tr>\r","        <th>ID</th>\r","        <th>Room Number</th>\r","        <th>Capacity</th>\r","        <th>Is Available</th>\r","        <th>Current Occupancy</th>\r","        <th>Damages</th>\r","        <th>Cost of Damage</th>\r","        <th>Hostel</th>\r","    </tr>\r","    \r","    {{#each response}}\r","        <tr>\r","            <td>{{id}}</td>\r","            <td>{{room_number}}</td>\r","            <td>{{capacity}}</td>\r","            <td>{{isAvailable}}</td>\r","            <td>{{current_occupancy}}</td>\r","            <td>{{damages}}</td>\r","            <td>{{cost_of_damage}}</td>\r","            <td>{{hostel}}</td>\r","        </tr>\r","    {{/each}}\r","</table>\r","`;\r","\r","function constructVisualizerPayload() {\r","    return {response: pm.response.json()}\r","}\r","\r","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript"}}],"id":"57a5c008-df91-4cc3-bb17-f5d4b6ce41c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA5MjE2NTM2LCJpYXQiOjE3MDg2MTE3MzYsImp0aSI6ImM1MDEzNTI1YjE3MzRiNTY5MzUyZTMxZjI4YmQwYmQ2IiwidXNlcl9pZCI6M30.ELKjc76mOCsopN-es8jlvlzJ0t4m1Zsf5AcZqTH79a8","type":"text"}],"url":"{{URL}}/api/hostels/rooms/?name=24&page=1","urlObject":{"path":["api","hostels","rooms",""],"host":["{{URL}}"],"query":[{"key":"name","value":"24"},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"57a5c008-df91-4cc3-bb17-f5d4b6ce41c6"},{"name":"GET MY REVIEWS","id":"d6f5ba42-8582-43d5-b1d3-c76db4f62aec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"","value":"","type":"text","disabled":true}]},"url":"{{URL2}}/api/students/reviews/?name=&page=1","description":"<p>This endpoint makes an HTTP GET request to retrieve student reviews. The request includes a query parameter for the student's name and the page number. The request body is of form-data type and does not include any parameters.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>The response returns a JSON object with the count of reviews, links to the next and previous pages, and an array of review results. In the last execution, the count was 0, and the results array was empty.</p>\n","urlObject":{"path":["api","students","reviews",""],"host":["{{URL2}}"],"query":[{"key":"name","value":""},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"d6f5ba42-8582-43d5-b1d3-c76db4f62aec"},{"name":"GET COMPLAINTS","id":"2716b4fc-c317-468e-9ed4-e651fca03f09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL2}}/api/students/complaints/?name=&page=1","description":"<p>This endpoint retrieves a list of complaints submitted by students. It makes an HTTP GET request to the specified URL with the query parameters for the student's name and the page number. The response returns a JSON object with the total count of complaints, links to the next and previous pages, and an array of complaint results. </p>\n<p>The last execution of this request returned a status code of 200, indicating a successful response, and a content type of application/json. The response body included the count of complaints, next and previous page links, and an empty array of results.</p>\n","urlObject":{"path":["api","students","complaints",""],"host":["{{URL2}}"],"query":[{"key":"name","value":""},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"2716b4fc-c317-468e-9ed4-e651fca03f09"},{"name":"CREATE REVIEW","id":"f3e1f19f-1b74-46ff-8479-16f4cb1c7302","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{S1}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"review","value":"NIce Place I Loved It","type":"text"}]},"url":"{{URL}}/api/students/create_review/","urlObject":{"path":["api","students","create_review",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3e1f19f-1b74-46ff-8479-16f4cb1c7302"},{"name":"GET USERS","id":"598dee7a-d0a5-4f66-a6e4-17d57892a5a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL2}}/api/users/?name=&page=1","description":"<p>This endpoint makes an HTTP GET request to retrieve a list of users. The request includes query parameters for filtering the results by name and paginating the response. </p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><code>name</code> (optional): Filter the users by name.</li>\n<li><code>page</code> (required): Specify the page number for paginating the results.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful execution, the server responds with a status code of 200 and a JSON object containing the following fields:</p>\n<ul>\n<li><code>count</code>: The total count of users matching the query parameters.</li>\n<li><code>next</code>: A link to the next page of results, if available.</li>\n<li><code>previous</code>: A link to the previous page of results, if available.</li>\n<li><code>results</code>: An array containing the list of users matching the query parameters.</li>\n</ul>\n<p>No users were found in the last execution, as indicated by the <code>count</code> value of 0 and empty <code>results</code> array.</p>\n","urlObject":{"path":["api","users",""],"host":["{{URL2}}"],"query":[{"key":"name","value":""},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"598dee7a-d0a5-4f66-a6e4-17d57892a5a1"},{"name":"GET ACCOMODATIONS","id":"e3664842-4d8b-40d0-a001-5900658f6380","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"","value":"","type":"text","disabled":true}]},"url":"{{URL2}}/api/hostels/accomodations/?name=&page=1","description":"<p>This endpoint makes an HTTP GET request to retrieve a list of accommodations in hostels. The request includes query parameters for filtering by name and pagination.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: GET</li>\n<li>URL: {{URL2}}/api/hostels/accomodations/?name=&amp;page=1</li>\n<li>Body (form-data):<ul>\n<li>No parameters</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will have a status code of 200 and a content type of application/json. The response body will contain an object with the following properties:</p>\n<ul>\n<li>count (number): The total count of accommodations.</li>\n<li>next (string): The URL for the next page of results, if available.</li>\n<li>previous (string): The URL for the previous page of results, if available.</li>\n<li>results (array): An array of accommodation objects.</li>\n</ul>\n<p>Example response body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"count\": 0,\n  \"next\": null,\n  \"previous\": null,\n  \"results\": []\n}\n</code></pre>\n","urlObject":{"path":["api","hostels","accomodations",""],"host":["{{URL2}}"],"query":[{"key":"name","value":""},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"e3664842-4d8b-40d0-a001-5900658f6380"},{"name":"GET SINGLE ACCOMODATION","id":"b5e19a1f-3798-49b1-a154-401a073b5c5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"url":"{{URL2}}/api/hostels/accomodations/8/","description":"<p>This endpoint makes an HTTP GET request to retrieve information about a specific accommodation in a hostel. The request should be made to {{URL2}}/api/hostels/accomodations/8/.</p>\n<p>The response will have a status code of 200 and a content type of application/json. The response body will contain details about the accommodation, including the ID, person's name, check-in and check-out dates, price, payment status, sent status, duration, student ID, room ID, and hostel ID.</p>\n","urlObject":{"path":["api","hostels","accomodations","8",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5e19a1f-3798-49b1-a154-401a073b5c5b"},{"name":"DELETE REVIEW","id":"d4d40cdd-fcb1-41aa-94f8-4130b9ed07c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA4OTM2MTkzLCJpYXQiOjE3MDgzMzEzOTMsImp0aSI6Ijk0OGM3NGQzZDU1ODQ5MDZhM2JmNmFiNmZmODEzNDRjIiwidXNlcl9pZCI6M30.1heKTHDBzZe9-wO2hENuCWO1Fr3n-6-HXbZ7CuaOxSw","type":"text"}],"url":"{{URL}}/api/students/reviews/1/delete/","urlObject":{"path":["api","students","reviews","1","delete",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4d40cdd-fcb1-41aa-94f8-4130b9ed07c8"},{"name":"DELETE ROOM","id":"4a1926f3-77ef-4e47-97d5-c9075b694375","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"url":"{{URL2}}/api/hostels/rooms/596/delete/","description":"<p>This endpoint sends an HTTP DELETE request to delete a specific room with the ID 596 under the hostels resource.</p>\n<p>Upon successful execution, the API returns a 200 status with a JSON response containing a \"detail\" key.</p>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"detail\": \"\"\n}\n</code></pre>\n","urlObject":{"path":["api","hostels","rooms","596","delete",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a1926f3-77ef-4e47-97d5-c9075b694375"},{"name":"DELETE HOSTEL","id":"34205d6e-8402-46f9-a599-792c77f8c5c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEwNzk1MDg4LCJpYXQiOjE3MTAxOTAyODgsImp0aSI6IjYyOGEwOGE2ZTVkZDRlNTE4NTdiMDI0MzliN2VmY2FiIiwidXNlcl9pZCI6Njd9.rp3HHKa0B4PZb_KWhIDzFECLxaO-lvEpMhFR4yrVec8","type":"text"}],"url":"{{URL}}/api/hostels/delete/","urlObject":{"path":["api","hostels","delete",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"34205d6e-8402-46f9-a599-792c77f8c5c4"},{"name":"GET SINGLE COMPLAINT","id":"ba31208d-59c2-437d-94a8-342035cde9b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"url":"{{URL2}}/api/students/complaints/3/","description":"<p>This endpoint retrieves the complaint details for a specific student. </p>\n<p>The response will include the complaint ID, student name, description, status, date raised, resolved status, date resolved, hostel, and student ID. The \"resolved\" field indicates whether the complaint has been resolved, and the \"date_resolved\" field provides the date when it was resolved.</p>\n","urlObject":{"path":["api","students","complaints","3",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba31208d-59c2-437d-94a8-342035cde9b7"},{"name":"UPDATE COMPLAINT","id":"dac3f490-a1c7-410f-93d3-2c70fb1723ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"status","value":"Resolved","type":"text"}]},"url":"{{URL2}}/api/students/complaints/3/update/","description":"<p>This endpoint allows the update of a specific student's complaint with the ID 3. The HTTP POST request should be made to {{URL2}}/api/students/complaints/3/update/ with a form-data request body. The request body should include a parameter \"status\" of type text, which represents the updated status of the complaint.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the endpoint returns a 200 status with a JSON response. The response includes a \"message\" field, which may contain additional information or confirmation message related to the update operation.</p>\n","urlObject":{"path":["api","students","complaints","3","update",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dac3f490-a1c7-410f-93d3-2c70fb1723ee"},{"name":"UPDATE ACCOMODATION","id":"729c362d-5655-4ed5-aea4-b80a959c86f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"","value":"","type":"text","disabled":true},{"key":"status","value":"cancelled","type":"text"}]},"url":"{{URL2}}/api/students/8/update/","description":"<p>This endpoint allows updating the details of a specific student with the ID 8. The request should be sent as an HTTP POST to {{URL2}}/api/students/8/update/. The request body should be of form-data type and include a parameter \"status\" of type text.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>status (text): Represents the updated status of the student.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful update, the server will respond with a status code of 200 and a JSON object with a \"detail\" key.</p>\n","urlObject":{"path":["api","students","8","update",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"729c362d-5655-4ed5-aea4-b80a959c86f9"},{"name":"UPLOAD HOSTEL PICTURES","id":"2d1c0b45-2129-4490-a22e-ed4fe3f5666f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"","value":"","type":"text","disabled":true},{"key":"imag1","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Downloads/pexels-dylan-bueltel-4051456.jpg"],"src":"/C:/Users/HP/Downloads/pexels-dylan-bueltel-4051456.jpg"}]},"url":"{{URL2}}/api/hostels/upload/","description":"<p>This endpoint allows users to upload hostel images. The request should be sent as an HTTP POST to {{URL2}}/api/hostels/upload/. The request body should be of form-data type, with the key \"imag1\" containing the image file to be uploaded.</p>\n<p>Upon successful execution, the endpoint returns a 200 status with a JSON response. The response includes a \"detail\" field, which may provide additional information about the upload process.</p>\n","urlObject":{"path":["api","hostels","upload",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d1c0b45-2129-4490-a22e-ed4fe3f5666f"},{"name":"REMOVE STAFF","id":"89f1f481-2df3-4365-b3bc-9a267d55bd8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"user_id","value":"68","type":"text"}]},"url":"{{URL2}}/api/users/remove/","urlObject":{"path":["api","users","remove",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"89f1f481-2df3-4365-b3bc-9a267d55bd8f"},{"name":"EDIT HOSTEL","id":"eb3f8aba-63c9-4bac-ae73-3a995461ac92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"hostel_name\": \"Strikes\",\r\n    \"address\": \"12355 Updated Street, City, Country\",\r\n    \"room_price_1\": 41200,\r\n    \"room_price_2\": 7300,\r\n    \"room_price_4\": 800\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL2}}/api/hostels/edit/","description":"<p>This endpoint allows you to edit hostel details via a POST request to {{URL2}}/api/hostels/edit/.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>hostel_name</code> (string): The name of the hostel.</li>\n<li><code>address</code> (string): The address of the hostel.</li>\n<li><code>room_price_1</code> (number): The price of a single room.</li>\n<li><code>room_price_2</code> (number): The price of a double room.</li>\n<li><code>room_price_4</code> (number): The price of a quadruple room.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful edit, the API returns a 200 status with a JSON response containing a <code>message</code> key.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["api","hostels","edit",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb3f8aba-63c9-4bac-ae73-3a995461ac92"},{"name":"GET YOUR NOTIFICATIONS","id":"2747d615-e304-48ec-9102-c78cb17ac6e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"url":"{{URL2}}/api/students/notifications/?name=&page=1","description":"<p>This endpoint retrieves notifications for students. It sends an HTTP GET request to the specified URL with the query parameters for name and page number. The response will be in JSON format and will include the count of notifications, links to the next and previous pages, and the results array which contains the actual notifications. In the last execution, the response had a status code of 200 and an empty results array with a count of 0.</p>\n","urlObject":{"path":["api","students","notifications",""],"host":["{{URL2}}"],"query":[{"key":"name","value":""},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"2747d615-e304-48ec-9102-c78cb17ac6e5"},{"name":"GET USERS","id":"c8c9dfd0-eab3-4c1c-b4a8-622b4d8a761c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{ADMIN_2}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"user_type","value":"staff","type":"text","disabled":true}]},"url":"{{URL}}/api/users/","urlObject":{"path":["api","users",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8c9dfd0-eab3-4c1c-b4a8-622b4d8a761c"},{"name":"GET SINGLE MAINTENANCE","id":"16c4f8e7-e7ea-489a-adbb-1129f870187a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"url":"{{URL2}}/api/hostels/maintenance/3/","description":"<p>This endpoint makes an HTTP GET request to retrieve the maintenance details for a specific hostel. The request should be made to {{URL2}}/api/hostels/maintenance/3/ to fetch the maintenance information for the hostel with ID 3.</p>\n<p>The response to the request returns a JSON object with the following fields:</p>\n<ul>\n<li>id (number): The unique identifier for the maintenance entry.</li>\n<li>facility_name (string): The name of the facility for which maintenance is requested.</li>\n<li>student_name (string): The name of the student who raised the maintenance request.</li>\n<li>status (string): The status of the maintenance request.</li>\n<li>date_raised (string): The date when the maintenance request was raised.</li>\n<li>resolved (boolean): Indicates whether the maintenance issue has been resolved or not.</li>\n<li>date_resolved (string): The date when the maintenance issue was resolved, if applicable.</li>\n<li>student (number): The ID of the student who raised the maintenance request.</li>\n<li>hostel (number): The ID of the hostel where the maintenance is requested.</li>\n<li>room (number): The ID of the room for which maintenance is requested.</li>\n<li>facility (number): The ID of the facility for which maintenance is requested.</li>\n</ul>\n<p>Add documentation</p>\n","urlObject":{"path":["api","hostels","maintenance","3",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"16c4f8e7-e7ea-489a-adbb-1129f870187a"},{"name":"GET MAINTENANCES","id":"66fcda84-f5f4-4c8f-ba4a-5d64f6ca3ce1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"maintenance_type","value":"student","type":"text","disabled":true}]},"url":"{{URL2}}/api/students/maintenances/?name=&page=1","description":"<p>This endpoint makes an HTTP GET request to retrieve a list of student maintenance records. The request includes a query parameter for the page number, and an optional query parameter for filtering by student name.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><code>name</code> (optional): Filter by student name.</li>\n<li><code>page</code> (required): The page number for paginated results.</li>\n</ul>\n<p>The request body is of type form-data and does not include any parameters.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful execution, the API returns a JSON object with the following properties:</p>\n<ul>\n<li><code>count</code>: The total count of maintenance records.</li>\n<li><code>next</code>: URL for the next page of results, if available.</li>\n<li><code>previous</code>: URL for the previous page of results, if available.</li>\n<li><code>results</code>: An array containing the student maintenance records for the requested page.</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"count\": 0,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": []\n}\n</code></pre>\n","urlObject":{"path":["api","students","maintenances",""],"host":["{{URL2}}"],"query":[{"key":"name","value":""},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"66fcda84-f5f4-4c8f-ba4a-5d64f6ca3ce1"},{"name":"UPDATE COMPLAINT","id":"299e9acc-8bcc-4445-b888-a26564ce5387","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"status","value":"Resolved","type":"text"}]},"url":"{{URL2}}/api/students/complaints/3/update/","description":"<p>This endpoint allows you to update a complaint for a specific student. You can send an HTTP POST request to {{URL2}}/api/students/complaints/3/update/ with a form-data request body containing the 'status' parameter of type text.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>status (text): The updated status of the complaint.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful update, the endpoint will return a 200 status with a JSON response containing a message indicating the success of the update.</p>\n","urlObject":{"path":["api","students","complaints","3","update",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"299e9acc-8bcc-4445-b888-a26564ce5387"},{"name":"UPDATE MAINTENANCE","id":"033ed437-b069-4672-b696-0976a3a5ed47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"status","value":"Completed","type":"text"}]},"url":"{{URL2}}/api/hostels/maintenance/3/update/","description":"<h3 id=\"update-hostel-maintenance-status\">Update Hostel Maintenance Status</h3>\n<p>This API endpoint is used to update the maintenance status of a specific hostel.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: POST</li>\n<li>URL: {{URL2}}/api/hostels/maintenance/3/update/</li>\n<li>Body (form-data):<ul>\n<li>status (text): The updated status of the maintenance.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\"\n}\n\n</code></pre>\n</li>\n</ul>\n","urlObject":{"path":["api","hostels","maintenance","3","update",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"033ed437-b069-4672-b696-0976a3a5ed47"},{"name":"GET PAYMENTS","id":"ca0bee97-e2e9-440d-956e-8a71dfd321e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"type","value":"hostel","type":"text","disabled":true}]},"url":"{{URL2}}/api/students/payments/?name=&page=1","description":"<p>This endpoint retrieves a list of payments made by students. It accepts optional query parameters for filtering the results. </p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><code>name</code> (optional): Filter payments by student name.</li>\n<li><code>page</code> (required): Specify the page number for paginated results.</li>\n</ul>\n<p>The request should be sent as an HTTP GET to <code>{{URL2}}/api/students/payments/</code>.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful execution, the server will respond with a status code of 200 and a JSON object containing the following fields:</p>\n<ul>\n<li><code>count</code>: The total count of payments.</li>\n<li><code>next</code>: URL for the next page of results, if available.</li>\n<li><code>previous</code>: URL for the previous page of results, if available.</li>\n<li><code>results</code>: An array containing the payment details.</li>\n</ul>\n<p>In the last execution, the response indicated that there were 0 payments, with no next or previous pages, and an empty array of results.</p>\n","urlObject":{"path":["api","students","payments",""],"host":["{{URL2}}"],"query":[{"key":"name","value":""},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"ca0bee97-e2e9-440d-956e-8a71dfd321e6"},{"name":"DELETE A NOTICE","id":"1b4c9f94-d347-4972-8442-c370478074bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{S10}}","type":"text"}],"url":"{{URL}}/api/hostels/notice/27/delete/","urlObject":{"path":["api","hostels","notice","27","delete",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b4c9f94-d347-4972-8442-c370478074bb"},{"name":"GETOTP","id":"2156d157-2a0a-4fc5-8c74-f09521a15e8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"url":"{{URL2}}/api/users/getotp/","urlObject":{"path":["api","users","getotp",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2156d157-2a0a-4fc5-8c74-f09521a15e8f"},{"name":"VERIFY OTP","id":"044704b1-2ae6-4509-afdb-781c8572c434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"otp","value":"347901","type":"text"}]},"url":"{{URL2}}/api/users/verify/","urlObject":{"path":["api","users","verify",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"044704b1-2ae6-4509-afdb-781c8572c434"},{"name":"PAY ACCOMODATION","id":"25139c82-76c5-44a3-95c0-d7a3983f65d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEwMDU5Mjg5LCJpYXQiOjE3MDk0NTQ0ODksImp0aSI6ImNlMTY4ZDYzYWY0ODQwMGRhZmYyZDJmNjc2MzQ3NzI2IiwidXNlcl9pZCI6MTR9.5S_7-BDmHJ1RHcW-PNpQFXdTkAB8eLxT7RUXVS7g-rc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"","value":"","type":"text"}]},"url":"{{URL}}/api/students/pay/28/","urlObject":{"path":["api","students","pay","28",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25139c82-76c5-44a3-95c0-d7a3983f65d6"},{"name":"GET FACILITIES","id":"dcd27849-7b36-4116-b0ba-c02e18949ca8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"url":"{{URL2}}/api/hostels/facilities/","description":"<p>This endpoint makes an HTTP GET request to retrieve a list of hostel facilities. The response will include a JSON object with a \"count\" indicating the number of facilities, \"next\" for the next page of results, \"previous\" for the previous page of results, and an array of \"results\" containing the facility details including their \"id\" and \"facility_type\".</p>\n","urlObject":{"path":["api","hostels","facilities",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dcd27849-7b36-4116-b0ba-c02e18949ca8"},{"name":"PASSWORD RESET","id":"16f24aee-8dd4-4d14-afd7-348213cc2b33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"mrphilipowade@outlook.com","type":"text"}]},"url":"{{URL}}/api/users/password-reset/","urlObject":{"path":["api","users","password-reset",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"16f24aee-8dd4-4d14-afd7-348213cc2b33"},{"name":"PASSWORD RESET CONFIRM","id":"332a1d3d-2ce6-4e35-a5a6-8014da211488","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/users/password-reset-confirm/{{uid}}/{{token}}/","description":"<p>Follow The Link To reset Your Password</p>\n","urlObject":{"path":["api","users","password-reset-confirm","{{uid}}","{{token}}",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"332a1d3d-2ce6-4e35-a5a6-8014da211488"},{"name":"SET NEW PASSWORD","id":"c66f90e8-18f0-484d-9944-4c95f4a247e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"password","value":"testpassword123","type":"text"},{"key":"confirm_password","value":"testpassword123","type":"text"},{"key":"uidb64","value":"{{uid}}","type":"text"},{"key":"token","value":"{{token}}","type":"text"}]},"url":"{{URL}}/api/users/set-new-password/","description":"<p>SEt Your New Password</p>\n","urlObject":{"path":["api","users","set-new-password",""],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c66f90e8-18f0-484d-9944-4c95f4a247e4"},{"name":"GET OTHERS PROFILE","id":"fed5aca6-32dc-4271-b7a1-759359a4798e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY","type":"text"}],"url":"{{URL2}}/api/users/61/","description":"<p>This HTTP GET request retrieves the details of a specific user by their ID. The response will be in JSON format and will include various user details such as ID, name, admin status, hostel name, last login timestamp, user type, verification status, and more. The response will also include information about the user's groups and permissions.</p>\n","urlObject":{"path":["api","users","61",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fed5aca6-32dc-4271-b7a1-759359a4798e"},{"name":"GET YOUR PROFILE","event":[{"listen":"test","script":{"id":"bd542146-aace-4a2c-bc32-6fdf4d35cc31","exec":["var template = `\r","<style type=\"text/css\">\r","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}\r","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}\r","    .tftable tr {background-color:#ffffff;}\r","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}\r","    .tftable tr:hover {background-color:#e0ffff;}\r","</style>\r","\r","<table class=\"tftable\" border=\"1\">\r","    <tr>\r","        <th>ID</th>\r","        <th>Name</th>\r","        <th>Is Admin</th>\r","        <th>Bio</th>\r","        <th>Date Joined</th>\r","        <th>Followers</th>\r","        <th>Following</th>\r","        <th>Total Followers</th>\r","        <th>Total Following</th>\r","        <th>Last Login</th>\r","        <th>Email</th>\r","        <th>Avatar</th>\r","        <th>Is Private</th>\r","    </tr>\r","    <tr>\r","        <td>{{response.id}}</td>\r","        <td>{{response.name}}</td>\r","        <td>{{response.isAdmin}}</td>\r","        <td>{{response.bio}}</td>\r","        <td>{{response.date_joined}}</td>\r","        <td>{{response.followers.length}}</td>\r","        <td>{{response.following.length}}</td>\r","        <td>{{response.total_followers}}</td>\r","        <td>{{response.total_following}}</td>\r","        <td>{{response.last_login}}</td>\r","        <td>{{response.email}}</td>\r","        <td><img src=\"{{response.avi}}\" alt=\"Avatar\" height=\"100\"></td>\r","        <td>{{response.isPrivate}}</td>\r","    </tr>\r","</table>\r","`;\r","\r","function constructVisualizerPayload() {\r","    var res = pm.response.json();\r","\r","    return { response: res }\r","}\r","\r","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"33b5d50f-0b0d-4d52-b871-145a05808f33","exec":[""],"type":"text/javascript","packages":{}}}],"id":"5bd04aab-45f6-481e-bc69-5c5498f74977","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"url":"{{URL2}}/api/users/profile/","description":"<p>This endpoint makes an HTTP GET request to retrieve the profile information of a user. The response returns a JSON object with various user profile details such as ID, name, username, email, contact information, and other attributes. The response status is 200, and the content type is application/json.</p>\n","urlObject":{"path":["api","users","profile",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5bd04aab-45f6-481e-bc69-5c5498f74977"},{"name":"UPDATE PROFILE","id":"b512fe24-f08c-4f57-89b4-01f4a03dc41a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Hi Doe\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{URL2}} /api/users/profile/","urlObject":{"path":["api","users","profile",""],"host":["{{URL2}} "],"query":[],"variable":[]}},"response":[],"_postman_id":"b512fe24-f08c-4f57-89b4-01f4a03dc41a"},{"name":"CHANGE PFP","id":"aab7fe75-118e-49b4-af82-477c0694ee2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"user_id","value":"61","type":"text"},{"key":"avi","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Downloads/photo-camera-photograph-svgrepo-com (3).png"],"src":"/C:/Users/HP/Downloads/photo-camera-photograph-svgrepo-com (3).png"}]},"url":"{{URL2}}/api/users/upload/","description":"<p>This API endpoint allows users to upload a file for a specific user. The HTTP POST request should be sent to {{URL2}}/api/users/upload/ with a form-data request body type. The request should include the user_id as a text parameter and the avi file to be uploaded. Upon successful execution, the API returns a 200 status with a JSON response containing a detail message.</p>\n","urlObject":{"path":["api","users","upload",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aab7fe75-118e-49b4-af82-477c0694ee2e"},{"name":"DELETE ACCOUNT","id":"5740a881-7430-434f-936b-6dac5739c14a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{ADMIN_1}}","type":"text"}],"url":"{{URL}} /api/users/delete/","description":"<p>Delete Your Account</p>\n","urlObject":{"path":["api","users","delete",""],"host":["{{URL}} "],"query":[],"variable":[]}},"response":[],"_postman_id":"5740a881-7430-434f-936b-6dac5739c14a"},{"name":"RESET AVI","id":"5561be3c-78bf-45de-b9ad-7a38e35a7eff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzE0NTgyNTkzLCJpYXQiOjE3MTQ0OTYxOTMsImp0aSI6IjMyOTQ5NzhmYzQzMjQ0Mzk5Mzk1MWExNWJhYzI0ZGU4IiwidXNlcl9pZCI6MX0._Geb5JGr7RzpbsfZl6ZotOrYN8mNp_3oKuN8bAo4jDk","type":"text"}],"url":"{{URL2}}/api/users/reset/","urlObject":{"path":["api","users","reset",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5561be3c-78bf-45de-b9ad-7a38e35a7eff"},{"name":"RSET HOSTEL IMAGE","id":"dfb85358-d6c0-4348-a48d-a6e353ef7c17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzE0NTg1MjUxLCJpYXQiOjE3MTQ0OTg4NTEsImp0aSI6IjRkZTI3MGY0MmVkNzQ2NzdiNzZiNWJkY2Q3MGI2NDIzIiwidXNlcl9pZCI6MX0.vR3a6XbtDzATMkesbjDUeVlbOf2UDCMfauad21JEa2Y","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"imag","value":"imag1","type":"text"}]},"url":"{{URL2}}/api/hostels/reset/","urlObject":{"path":["api","hostels","reset",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfb85358-d6c0-4348-a48d-a6e353ef7c17"},{"name":"https://testmobile.pythonanywhere.com/api/events/","id":"392a65ab-5db0-4220-9f01-7900726ca58e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://testmobile.pythonanywhere.com/api/events/","urlObject":{"protocol":"https","path":["api","events",""],"host":["testmobile","pythonanywhere","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"392a65ab-5db0-4220-9f01-7900726ca58e"},{"name":"Cronner","id":"d38947a9-1167-461c-a7f9-eb1d6592afc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"url":"{{URL2}}/api/hostels/cronner/","urlObject":{"path":["api","hostels","cronner",""],"host":["{{URL2}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d38947a9-1167-461c-a7f9-eb1d6592afc9"}],"variable":[{"key":"tester","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODA2MjI0LCJpYXQiOjE3MTM3MTk4MjQsImp0aSI6IjM2OWE4ZmEzZTBlZTQwYWFhYzZmYjVjYWZjZWMyYzExIiwidXNlcl9pZCI6NjF9.dy6FCxRerfxCRPxz6dsiVbLYmQW2zfvsN1Tl2CdQxRc"},{"key":"admintester","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEzODIxMzQ5LCJpYXQiOjE3MTM3MzQ5NDksImp0aSI6ImIzNjhkODI4NGNlNzQ1MWZiZTQ5Zjc0NDFiODAyMDkzIiwidXNlcl9pZCI6NjJ9.TxvYsMRO9iNQgVFNjtSZT_uIpGY7F8CWmZNSfoJLbfY"}]}