{"info":{"_postman_id":"4709ddd4-0286-4495-98f8-982905bcda95","name":"API Documentation #reference","description":"<html><head></head><body><h2 id=\"getting-started-guide\"><strong>Getting started guide</strong></h2>\n<p><code>API ini berjalan pada port 8000 dan tidak memiliki Authentikasi.</code></p>\n<p><code>Untuk menggunakan API ini pastikan sudah menginstall SQL Server dan memiliki database dengan nama gdsc.</code></p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p><code>localhost:8000/</code></p>\n<ul>\n<li>Method : <code>`GET`</code></li>\n<li>Description : <code>Mendapatkan semua data event.</code></li>\n<li>Request Param : <code>NULL</code></li>\n<li>Request Body : <code>NULL</code></li>\n<li>Response :<ul>\n<li>Status : <code>`200 OK`</code><ul>\n<li>Type : <code>JSON</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><code>localhost:8000/</code></p>\n<ul>\n<li><p>Method : <code>`POST`</code></p>\n</li>\n<li><p>Description : <code>Menginputkan data Event.</code></p>\n</li>\n<li><p>Request Param : <code>Null</code></p>\n</li>\n<li><p>Request Body :</p>\n<ul>\n<li><p>Title : <code>String</code></p>\n</li>\n<li><p>Description : <code>String</code></p>\n</li>\n<li><p>ImageUrl : <code>String</code></p>\n</li>\n<li><p>EventUrl : <code>String</code></p>\n</li>\n<li><p>Location : <code>String</code></p>\n</li>\n<li><p>Date : <code>Date</code></p>\n</li>\n</ul>\n</li>\n<li><p>Response :</p>\n<ul>\n<li>Status : <code>`200 OK`</code><ul>\n<li>Type : <code>JSON</code></li>\n<li>Body : <code>{Status : int, Message : String, Data : ArrayOfObject}</code></li>\n</ul>\n</li>\n<li>Status : <code>`400 Bad Request`</code><ul>\n<li>Type : <code>JSON</code></li>\n<li>Body : <code>{Status : int, Message : String, Data : ArrayOfObject}</code></li>\n</ul>\n</li>\n<li>Status : <code>`500 Internal Server Error`</code><ul>\n<li>Type : <code>JSON</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><code>localhost:8000/{id}</code></p>\n<ul>\n<li><p>Method : <code>`PUT`</code></p>\n</li>\n<li><p>Description : <code>Mengedit/Mengubah data Event.</code></p>\n</li>\n<li><p>Request Param : <code>`id`</code></p>\n</li>\n<li><p>Request Body :</p>\n<ul>\n<li><p>Title : <code>String ?</code></p>\n</li>\n<li><p>Description : <code>String ?</code></p>\n</li>\n<li><p>ImageUrl : <code>String ?</code></p>\n</li>\n<li><p>EventUrl : <code>String ?</code></p>\n</li>\n<li><p>Location : <code>String ?</code></p>\n</li>\n<li><p>Date : <code>Date ?</code></p>\n</li>\n</ul>\n</li>\n<li><p>Response :</p>\n<ul>\n<li>Status : <code>`200 OK`</code><ul>\n<li>Type : <code>JSON</code></li>\n<li>Body : <code>{Status : int, Message : String, Data : ArrayOfObject}</code></li>\n</ul>\n</li>\n<li>Status : <code>`400 Bad Request`</code><ul>\n<li>Type : <code>JSON</code></li>\n<li>Body : <code>{Status : int, Message : String, Data : ArrayOfObject}</code></li>\n</ul>\n</li>\n<li>Status : <code>`500 Internal Server Error`</code><ul>\n<li>Type : <code>JSON</code></li>\n<li>Body : <code>{Status : int, Message : String, Data : ArrayOfObject}</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><code>localhost:8000/{id}</code></p>\n<ul>\n<li>Method : <code>`DELETE`</code></li>\n<li>Description : <code>Menghapus data Event.</code></li>\n<li>Request Param : <code>`id`</code></li>\n<li>Request Body : <code>NULL</code></li>\n<li>Response :<ul>\n<li>Status : <code>`200 OK`</code><ul>\n<li>Type : <code>JSON</code></li>\n<li>Body : <code>{Status : int, Message : String, Data : ArrayOfObject}</code></li>\n</ul>\n</li>\n<li>Status : <code>`400 Bad Request`</code><ul>\n<li>Type : <code>JSON</code></li>\n<li>Body : <code>{Status : int, Message : String, Data : ArrayOfObject}</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"search-feature\">Search Feature</h4>\n<p><code>localhost:8000/{title}</code></p>\n<p><code>localhost:8000/{id}</code></p>\n<ul>\n<li>Method : <code>`DELETE`</code></li>\n<li>Description : <code>Menghapus data Event.</code></li>\n<li>Request Param : <code>`title`</code></li>\n<li>Request Body : <code>NULL</code></li>\n<li>Response :<ul>\n<li>Status : <code>`200 OK`</code><ul>\n<li>Type : <code>JSON</code></li>\n<li>Body : <code>{Status : int, Message : String, Data : ArrayOfObject}</code></li>\n</ul>\n</li>\n<li>Status : <code>`404 Not Found`</code><ul>\n<li>Type : <code>JSON</code></li>\n<li>Body : <code>{Status : int, Message : String, Data : ArrayOfObject}</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"need-some-help\"><strong>Need some help?</strong></h3>\n<p><code>Hubungi Saja Saya</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"30112159","collectionId":"4709ddd4-0286-4495-98f8-982905bcda95","publishedId":"2sA3XWbHzo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-21T15:11:52.000Z"},"item":[{"name":"Event","item":[{"name":"Get Post","id":"cd26ca04-2c5e-4262-8215-d0c3703ab4a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/event","urlObject":{"host":["http://127.0.0.1:8000/event"],"query":[],"variable":[]}},"response":[{"id":"ea4c7916-5b8f-495d-9fca-5640477185b7","name":"Get Post","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/event"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 22 Jun 2024 01:12:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"903"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": 200,\n    \"Message\": \"OK\",\n    \"Data\": [\n        {\n            \"ID\": 1,\n            \"CreatedAt\": \"2024-06-22T00:54:51.504Z\",\n            \"UpdatedAt\": \"2024-06-22T00:54:51.504Z\",\n            \"DeletedAt\": null,\n            \"Title\": \"Bagaiamana Authorization Bekerja pada Server\",\n            \"Description\": \"Belajar cara kerja Authorization pada server backend menggunakan Token vanila,  dan middleware seperti JWT, CSRF \",\n            \"ImageUrl\": \"/image/bagaimanaAuthorizationBekerja.jpg\",\n            \"EventUrl\": \"localhost:8000/event/bagaimana-authorization-bekerja-pada-server\",\n            \"Location\": \"Palembang, Indonesia\",\n            \"Date\": \"2024-05-26T00:00:00Z\"\n        },\n        {\n            \"ID\": 2,\n            \"CreatedAt\": \"2024-06-22T01:04:53.583Z\",\n            \"UpdatedAt\": \"2024-06-22T01:04:53.583Z\",\n            \"DeletedAt\": null,\n            \"Title\": \"UI/UX\",\n            \"Description\": \"Lorem Ipsum itmet polar monime joka kutie woulk\",\n            \"ImageUrl\": \"/image/bagaimanaAuthorizationBekerja.jpg\",\n            \"EventUrl\": \"localhost:8000/event/bagaimana-authorization-bekerja-pada-server\",\n            \"Location\": \"Palembang, Indonesia\",\n            \"Date\": \"2024-08-17T00:00:00Z\"\n        }\n    ]\n}"}],"_postman_id":"cd26ca04-2c5e-4262-8215-d0c3703ab4a9"},{"name":"Create Post","id":"833bb598-36ea-4aaa-bcf8-5222917e6d5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"Title\" : \"Bagaiamana Authorization Bekerja pada Server\",\r\n    \"Description\" : \"Belajar cara kerja Authorization pada server backend menggunakan Token vanila,  dan middleware seperti JWT, CSRF \",\r\n    \"ImageUrl\" : \"/image/bagaimanaAuthorizationBekerja.jpg\",\r\n    \"EventUrl\" : \"localhost:8000/event/bagaimana-authorization-bekerja-pada-server\",\r\n    \"Location\" : \"Palembang, Indonesia\",\r\n    \"Date\" :  \"2024-08-17T00:00:00Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/event/","urlObject":{"path":[""],"host":["http://127.0.0.1:8000/event"],"query":[],"variable":[]}},"response":[{"id":"b9d3652a-4e4f-432f-b227-8848fcdccb2d","name":"Create Post","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"Title\" : \"Bagaiamana Authorization Bekerja pada Server\",\r\n    \"Description\" : \"Belajar cara kerja Authorization pada server backend menggunakan Token vanila,  dan middleware seperti JWT, CSRF \",\r\n    \"ImageUrl\" : \"/image/bagaimanaAuthorizationBekerja.jpg\",\r\n    \"EventUrl\" : \"localhost:8000/event/bagaimana-authorization-bekerja-pada-server\",\r\n    \"Location\" : \"Palembang, Indonesia\",\r\n    \"Date\" :  \"2024-08-17T00:00:00Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/event/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 22 Jun 2024 01:12:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"533"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": 200,\n    \"Message\": \"OK\",\n    \"Data\": [\n        {\n            \"ID\": 3,\n            \"CreatedAt\": \"2024-06-22T08:12:55.529+07:00\",\n            \"UpdatedAt\": \"2024-06-22T08:12:55.529+07:00\",\n            \"DeletedAt\": null,\n            \"Title\": \"Bagaiamana Authorization Bekerja pada Server\",\n            \"Description\": \"Belajar cara kerja Authorization pada server backend menggunakan Token vanila,  dan middleware seperti JWT, CSRF \",\n            \"ImageUrl\": \"/image/bagaimanaAuthorizationBekerja.jpg\",\n            \"EventUrl\": \"localhost:8000/event/bagaimana-authorization-bekerja-pada-server\",\n            \"Location\": \"Palembang, Indonesia\",\n            \"Date\": \"2024-08-17T00:00:00Z\"\n        }\n    ]\n}"}],"_postman_id":"833bb598-36ea-4aaa-bcf8-5222917e6d5d"},{"name":"Update Event","id":"4d0218ac-d483-4fa6-9693-ffa7bd48dc5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"Title\" : \"Bagaiamana Authorization Bekerja pada Server Updated\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/event/1","urlObject":{"path":["1"],"host":["http://127.0.0.1:8000/event"],"query":[],"variable":[]}},"response":[{"id":"e48df2ef-05b1-49e5-aeaf-60f947ca3ed6","name":"Update Event","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"Title\" : \"Bagaiamana Authorization Bekerja pada Server Updated\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/event/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 22 Jun 2024 01:13:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"295"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": 200,\n    \"Message\": \"OK\",\n    \"Data\": [\n        {\n            \"ID\": 0,\n            \"CreatedAt\": \"0001-01-01T00:00:00Z\",\n            \"UpdatedAt\": \"2024-06-22T08:13:20.013+07:00\",\n            \"DeletedAt\": null,\n            \"Title\": \"Bagaiamana Authorization Bekerja pada Server Updated\",\n            \"Description\": \"\",\n            \"ImageUrl\": \"\",\n            \"EventUrl\": \"\",\n            \"Location\": \"\",\n            \"Date\": \"0001-01-01T00:00:00Z\"\n        }\n    ]\n}"}],"_postman_id":"4d0218ac-d483-4fa6-9693-ffa7bd48dc5d"},{"name":"Delete Event","id":"c9c20a7b-99ef-4e05-81c8-2de78a2e9075","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/event/2","urlObject":{"path":["2"],"host":["http://127.0.0.1:8000/event"],"query":[],"variable":[]}},"response":[{"id":"bc272894-5155-4c18-b7bf-3312d878b942","name":"Delete Event","originalRequest":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/event/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 22 Jun 2024 01:14:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"39"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": 200,\n    \"Message\": \"OK\",\n    \"Data\": []\n}"}],"_postman_id":"c9c20a7b-99ef-4e05-81c8-2de78a2e9075"},{"name":"Search Post","id":"7f9de95b-6d12-434d-b39c-c640e4d4cbac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/event/Upd","urlObject":{"path":["Upd"],"host":["http://127.0.0.1:8000/event"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"b14c6c69-60b2-46ff-92f2-d93ef07a2684","name":"Search Post","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/event/Upd","host":["http://127.0.0.1:8000/event"],"path":["Upd"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 22 Jun 2024 01:13:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"531"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": 200,\n    \"Message\": \"OK\",\n    \"Data\": [\n        {\n            \"ID\": 1,\n            \"CreatedAt\": \"2024-06-22T00:54:51.504Z\",\n            \"UpdatedAt\": \"2024-06-22T01:13:20.013Z\",\n            \"DeletedAt\": null,\n            \"Title\": \"Bagaiamana Authorization Bekerja pada Server Updated\",\n            \"Description\": \"Belajar cara kerja Authorization pada server backend menggunakan Token vanila,  dan middleware seperti JWT, CSRF \",\n            \"ImageUrl\": \"/image/bagaimanaAuthorizationBekerja.jpg\",\n            \"EventUrl\": \"localhost:8000/event/bagaimana-authorization-bekerja-pada-server\",\n            \"Location\": \"Palembang, Indonesia\",\n            \"Date\": \"2024-05-26T00:00:00Z\"\n        }\n    ]\n}"}],"_postman_id":"7f9de95b-6d12-434d-b39c-c640e4d4cbac"}],"id":"12822275-1cca-451a-86c9-d310dfac9421","description":"<p>Lebih Lengkapnya :</p>\n","_postman_id":"12822275-1cca-451a-86c9-d310dfac9421"}],"event":[{"listen":"prerequest","script":{"id":"c8f2257b-b1dc-4cbf-8002-405df82766c8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"589f8d2b-1ffc-4266-827d-ad0bee8f0a38","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://127.0.0.1:8000/event"}]}