{"info":{"_postman_id":"114151dd-7f4b-47f5-9ba9-d7b7ecc829d8","name":"API Documentation","description":"<html><head></head><body><p>This documentation describes the functionalities of the <strong>REST API</strong> developed by us.<br>Bellow are the requests you can use and some examples.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"20622426","collectionId":"114151dd-7f4b-47f5-9ba9-d7b7ecc829d8","publishedId":"UzBnr7Dn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-06-21T12:37:40.000Z"},"item":[{"name":"Get Winners Request","id":"f210b97c-2611-4081-bf55-8173891c7798","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/Project/Controller/readController.php?year=2015&category=ENSEMBLE IN A DRAMA SERIES","description":"<p>This request calls the API and receives a JSON file with the winners from the specified year and category.</p>\n","urlObject":{"protocol":"http","path":["Project","Controller","readController.php"],"host":["localhost"],"query":[{"description":{"content":"<p>integer</p>\n","type":"text/plain"},"key":"year","value":"2015"},{"description":{"content":"<p>string</p>\n","type":"text/plain"},"key":"category","value":"ENSEMBLE IN A DRAMA SERIES"}],"variable":[]}},"response":[{"id":"3ec82e89-9ab4-4836-8e8f-e5aa09339e3e","name":"Get Winners Request","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost/Project/Controller/readController.php?year=2015&category=ENSEMBLE IN A DRAMA SERIES","protocol":"http","host":["localhost"],"path":["Project","Controller","readController.php"],"query":[{"key":"year","value":"2015"},{"key":"category","value":"ENSEMBLE IN A DRAMA SERIES"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Tue, 21 Jun 2022 12:22:11 GMT"},{"key":"Server","value":"Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.5"},{"key":"X-Powered-By","value":"PHP/8.1.5"},{"key":"Content-Length","value":"975"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"show\":\"DOWNTON ABBEY\",\"name\":\"ALLEN LEECH\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"BRENDAN COYLE\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"CARA THEOBOLD\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"DAVID ROBB\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"ED SPELEERS\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"ELIZABETH MCGOVERN\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"HUGH BONNEVILLE\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"JIM CARTER\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"JOANNE FROGGATT\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"KEVIN DOYLE\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"LAURA CARMICHAEL\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"LESLEY NICOL\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"LILY JAMES\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"MAGGIE SMITH\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"MATT MILINE\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"MICHAEL DOCKERY\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"PENELOPE WILTON\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"PHYLLIS LOGAN\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"ROBERT JAMES-COLLIER\"},{\"show\":\"DOWNTON ABBEY\",\"name\":\"SOPHIE MCSHERA\"}]}"}],"_postman_id":"f210b97c-2611-4081-bf55-8173891c7798"},{"name":"Post Comment Request","id":"7ef8a43f-a7fc-4feb-a80b-57178187c74d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost/Project/Model/forumPostComments.php?username=Stefana&comment=Ok.","description":"<p>This request calls the API and posts the username and the comment.</p>\n","urlObject":{"protocol":"http","path":["Project","Model","forumPostComments.php"],"host":["localhost"],"query":[{"description":{"content":"<p>string</p>\n","type":"text/plain"},"key":"username","value":"Stefana"},{"description":{"content":"<p>string</p>\n","type":"text/plain"},"key":"comment","value":"Ok."}],"variable":[]}},"response":[{"id":"6770cbb8-dc4e-486b-9b67-296f1fba33fd","name":"Post Comment Request","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost/Project/Model/forumPostComments.php?username=Stefana&comment=Ok.","protocol":"http","host":["localhost"],"path":["Project","Model","forumPostComments.php"],"query":[{"key":"username","value":"Stefana"},{"key":"comment","value":"Ok."}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Tue, 21 Jun 2022 12:23:24 GMT"},{"key":"Server","value":"Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.5"},{"key":"X-Powered-By","value":"PHP/8.1.5"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"7ef8a43f-a7fc-4feb-a80b-57178187c74d"},{"name":"Get Comments Request","id":"b9c72438-634b-4248-8a55-c91156ed4810","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/Project/Model/forumGetComments.php","description":"<p>StartFragment</p>\n<p>This request calls the API and receives a JSON file with the usernames and the comments existing in the database.</p>\n","urlObject":{"protocol":"http","path":["Project","Model","forumGetComments.php"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6390e890-e7c6-4cb6-869b-4334832a9edc","name":"Get Comments Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost/Project/Model/forumGetComments.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Tue, 21 Jun 2022 12:23:36 GMT"},{"key":"Server","value":"Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.5"},{"key":"X-Powered-By","value":"PHP/8.1.5"},{"key":"Content-Length","value":"993"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"username\":\"AndrewTab\",\"comment\":\"Ce frumoasa pagina aveti voi! imi place!\"},{\"username\":\"DanSwing\",\"comment\":\"Chiar este interesant!\"},{\"username\":\"Marius Andrei\",\"comment\":\"Cel mai mult imi plac stirile!\"},{\"username\":\"Andrei\",\"comment\":\"Mi-a placut filmul Top Gun!\"},{\"username\":\"Adrian\",\"comment\":\"Imi place aceasta pagina!\"},{\"username\":\"Andrei\",\"comment\":\"Wow!\"},{\"username\":\"Mariana\",\"comment\":\"Ok.\"},{\"username\":\"Mariana\",\"comment\":\"Ok\"},{\"username\":\"user\",\"comment\":\"ok\"},{\"username\":\"user\",\"comment\":\"ok\"},{\"username\":\"andreitablan\",\"comment\":\"a\"},{\"username\":\"andreitablan\",\"comment\":\"Ce frumoasa pagina aveti voi! imi place!\"},{\"username\":\"user\",\"comment\":\"This is a beautiful page!\"},{\"username\":\"user\",\"comment\":\"This is a beautiful page!\"},{\"username\":\"user\",\"comment\":\"This is a beautiful page!\"},{\"username\":\"ceva diferit\",\"comment\":\"proba 2 zece\"},{\"username\":\"Mariana\",\"comment\":\"Ok\"},{\"username\":\"Stefana\",\"comment\":\"Ok.\"},{\"username\":\"Stefana\",\"comment\":\"Ok.\"}]}"}],"_postman_id":"b9c72438-634b-4248-8a55-c91156ed4810"},{"name":"Admin Request","id":"09aead0c-f224-4eec-8381-508ec71db50f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost/Project/Model/adminCD.php?type=insert&year=2022&category=MAN ACTOR IN A DRAMA SERIES&actorname=Popescu Ion&showname=Romanian Show&won=true","description":"<p>StartFragment</p>\n<p>This request calls the API and posts or deletes an entry with the specified parameters.</p>\n","urlObject":{"protocol":"http","path":["Project","Model","adminCD.php"],"host":["localhost"],"query":[{"description":{"content":"<p>string</p>\n","type":"text/plain"},"key":"type","value":"insert"},{"description":{"content":"<p>integer</p>\n","type":"text/plain"},"key":"year","value":"2022"},{"description":{"content":"<p>string</p>\n","type":"text/plain"},"key":"category","value":"MAN ACTOR IN A DRAMA SERIES"},{"description":{"content":"<p>string</p>\n","type":"text/plain"},"key":"actorname","value":"Popescu Ion"},{"description":{"content":"<p>string</p>\n","type":"text/plain"},"key":"showname","value":"Romanian Show"},{"description":{"content":"<p>boolean</p>\n","type":"text/plain"},"key":"won","value":"true"}],"variable":[]}},"response":[{"id":"b6fa44a6-b0b8-4a6c-a84f-bce3967dce65","name":"Admin Request","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost/Project/Model/adminCD.php?type=insert&year=2022&category=MAN ACTOR IN A DRAMA SERIES&actorname=Popescu Ion&showname=Romanian Show&won=true","protocol":"http","host":["localhost"],"path":["Project","Model","adminCD.php"],"query":[{"key":"type","value":"insert"},{"key":"year","value":"2022"},{"key":"category","value":"MAN ACTOR IN A DRAMA SERIES"},{"key":"actorname","value":"Popescu Ion"},{"key":"showname","value":"Romanian Show"},{"key":"won","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Tue, 21 Jun 2022 12:23:46 GMT"},{"key":"Server","value":"Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.5"},{"key":"X-Powered-By","value":"PHP/8.1.5"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"09aead0c-f224-4eec-8381-508ec71db50f"}]}