{"info":{"_postman_id":"00e98039-34b0-4d11-8e72-f4b03ca0954b","name":"Codera API","description":"<html><head></head><body><p>Codera is an application for storing programming errors and solutions. Codera API performs CRUD functions for Bug and Fix/Solution objects in the application database, through the frontend interface. </p>\n<h1 id=\"overview\">Overview</h1>\n<p>This is the 1st Postman API documentation I have made for Codera, I have fun making this xd.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>What errors and status codes can a user expect?</p>\n<table>\n<tbody><tr><th>Status Code</th>\n<th>Response</th>\n<th>Reason</th>\n</tr><tr> \n<td>500</td>\n<td><i><code>INTERNAL SERVER ERROR</code></i></td>\n<td><li>The Database SQL*Plus server is not running. Check the connection string in the <em><b><code>application.properties</code></b></em> file</li>\n<li>The Backend Tomcat server is not running, <em><b>there maybe other services in the PC that's is already using the 8080 port</b></em>, thus blocks the launching of the Codera server.</li></td> \n</tr>\n<tr> \n<td>404</td>\n<td><i><code>INTERNET NOT FOUND</code></i></td>\n<td>The application maybe under testing stage, and thus access to database server maybe blocked. </td> \n</tr>\n<tr> \n<td>200</td>\n<td><i><code>RESOURCE NOT FOUND</code></i></td>\n<td>The backend cannot find the records with the current given parameters. Consider checking the spelling of the parameters and retry.</td> \n</tr>\n</tbody></table>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"Error Codes","slug":"error-codes"}],"owner":"14239920","collectionId":"00e98039-34b0-4d11-8e72-f4b03ca0954b","publishedId":"TVza9thD","public":true,"customColor":{"top-bar":"7F0000","right-sidebar":"303030","highlight":"02aab0"},"publishDate":"2021-01-22T00:13:42.000Z"},"item":[{"name":"Get All Bugs in the Database","id":"16db2fa1-2a0a-4a9d-9767-ccf7b55ab155","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/","description":"<p>Returns all Bugs in the databse.<br /><br />It is called when initiating the <b><code>Home</code> page. </b></p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4ecd4fde-8d0e-4cfb-ba5f-8ebed9fa1581","name":"Get All Bugs Example","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"userId\": 1,\n        \"title\": \"ORA-65096: invalid common user or role name in oracle TEST\",\n        \"tags\": \"oracle, oracle12c\",\n        \"description\": \"<p>I just installed Oracle, and it was missing the Scott schema. So i am trying to generate it myself.</p><p>I got the sql script of Scott schema, but when i try to run the query:</p><p>create user Scott identified by tiger;</p><p>it displays the following error:</p><blockquote><p>ORA-65096: invalid common user or role name in oracle.</p></blockquote><p>Basically it is not allowing me to create a user <strong>Scott</strong>.</p>\",\n        \"progammingLanguage\": \"Mirah\",\n        \"fix\": [\n            {\n                \"id\": 2,\n                \"title\": \"Change repo.getOne() to repo.findById(long id) \",\n                \"solution\": \"<p>After a bunch of online seraches, I find this <a href='https://stackoverflow.com/questions/52656517/no-serializer-found-for-class-org-hibernate-proxy-pojo-bytebuddy-bytebuddyinterc'>link</a>. </p> \\n<p>So I try to change  my code from this: </p> <p><code>@GetMapping(\\\"/{username}/bugs/{id}\\\")\\n      public Bug getItem (@PathVariable String username, @PathVariable long id) {\\n\\t\\t  return this.bugRepository.getOne(id);\\n      }</code></p>\\n<p>to this: </p> \\n<p><blockquote>@GetMapping(\\\"/{username}/bugs/{id}\\\")\\n      public Bug getItem (@PathVariable String username, @PathVariable long id) {\\n\\t\\t  return this.bugRepository.findById(id).get();\\n      }</blockquote></p>\",\n                \"noOfTimesWorked\": 1\n            },\n            {\n                \"id\": 1,\n                \"title\": \"Alter Session in SYSDBA\",\n                \"solution\": \"<p>Run this code snippet<code>alter session set \\\"_ORACLE_SCRIPT\\\"=true;  </code></p>\",\n                \"noOfTimesWorked\": 3\n            }\n        ],\n        \"category\": \"Data Analytics, Database Integration\"\n    },\n    {\n        \"id\": 2,\n        \"userId\": 2,\n        \"title\": \"\\\"H2 Database Hexadecimal string contains non-hex character\\\" \",\n        \"tags\": \"jdbc, sql, database, h2, hibernate\",\n        \"description\": \"<p>When I insert this record in H2 database:</p><p>I got the sql script of Scott schema, but when i try to run the query:</p><p>insert into Bug values(1, ORA-65096: invalid common user or role name in oracle,</p><p>&nbsp;</p><p>(Data Analysis, Database Integration),</p><p>I just installed Oracle, and it was missing the Scott schema.</p><p>So i am trying to generate it myself.</p><p>I got the sql script of Scott schema, but when i try to run the query:</p><p>create user Scott identified by tiger;</p><p>&nbsp;</p><p>it displays the following error:</p><blockquote><p>ORA-65096: invalid common user or role name in oracle.</p></blockquote><p>Basically it is not allowing me to create a user <strong>Scott</strong>.</p><p>, (1), Java, (oracle, oracle-12c), 1);</p><p>it displays the following error:</p><blockquote><p>ORA-65096: invalid common user or role name in oracle.</p></blockquote><p>Basically it is not allowing me to create a user <strong>Scott</strong>.</p><p>It returns this error:</p><p>&nbsp;</p><blockquote><p>H2 Database Hexadecimal string contains non-hex character</p></blockquote><p>&nbsp;</p>\",\n        \"progammingLanguage\": \"SQL\",\n        \"fix\": [],\n        \"category\": \"Database Integration, Spring/Strut\"\n    },\n    {\n        \"id\": 3,\n        \"userId\": 1,\n        \"title\": \"org.hibernate.MappingException: Could not determine type for: java.util.Set\",\n        \"tags\": \"spring boot, hibernate, controller, rest api\",\n        \"description\": \"<p>After I finished making the REST APIs in the fixController.java, an error keeps appearing in the terminal: <blockquote>org.hibernate.MappingException: Could not determine type for: java.util.Set</blockquote>\",\n        \"progammingLanguage\": \"Java\",\n        \"fix\": [\n            {\n                \"id\": 4,\n                \"title\": \"Alter Column into Strings \",\n                \"solution\": \"<p>It's because the ArrayList type variables are translated into a BINARY data type in JPA, so you need to do sth like: Store the entire thing as a string, when the frontend reads it, use split() to turn it into an array.</p>\",\n                \"noOfTimesWorked\": 2\n            }\n        ],\n        \"category\": \"Spring/Strut\"\n    },\n    {\n        \"id\": 4,\n        \"userId\": 2,\n        \"title\": \"\\\"No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor\\\"\",\n        \"tags\": \"spring boot, controller, rest api, postman\",\n        \"description\": \"<p>When I call the GET API in Postman to retrieve all Bug object, I got the following error: <blockquote>com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.codeEra.code_era.model.Bug$HibernateProxy$ZBu5rxTD[\\\"fix\\\"]->org.hibernate.collection.internal.PersistentSet[0]->com.codeEra.code_era.model.Fix[\\\"bug\\\"]->com.codeEra.code_era.model.Bug$HibernateProxy$ZBu5rxTD[\\\"hibernateLazyInitializer\\\"])</blockquote></p><p/><p>I realised if it is a http problem then the trigger must be in the BugController.java file: \\n\\n<code>\\npackage com.codeEra.code_era.controller;\\n\\n\\nimport java.net.URI;\\nimport java.util.List;\\nimport java.util.Optional;\\n\\nimport org.springframework.ui.Model;\\nimport org.springframework.stereotype.Controller;\\nimport org.springframework.http.HttpStatus;\\nimport org.springframework.http.ResponseEntity;\\n\\nimport org.springframework.web.bind.annotation.GetMapping;\\nimport org.springframework.web.bind.annotation.PutMapping;\\nimport org.springframework.web.bind.annotation.RequestBody;\\nimport org.springframework.web.bind.annotation.CrossOrigin;\\nimport org.springframework.web.bind.annotation.PathVariable;\\nimport org.springframework.web.bind.annotation.PostMapping;\\nimport org.springframework.web.bind.annotation.DeleteMapping;\\nimport org.springframework.web.bind.annotation.RestController;\\nimport org.springframework.beans.factory.annotation.Autowired;\\nimport org.springframework.beans.factory.annotation.Qualifier;\\nimport org.springframework.data.domain.Page;\\nimport org.springframework.data.domain.Pageable;\\nimport org.springframework.web.bind.annotation.ModelAttribute;\\nimport org.springframework.web.bind.annotation.RequestMapping;\\nimport org.springframework.web.bind.annotation.RequestMethod;\\nimport org.springframework.web.servlet.support.ServletUriComponentsBuilder;\\n\\nimport com.codeEra.code_era.exception.ResourceNotFoundException;\\nimport com.codeEra.code_era.model.Bug;\\nimport com.codeEra.code_era.model.Fix;\\nimport com.codeEra.code_era.repository.BugRepository;\\n\\nimport org.springframework.web.bind.annotation.*;\\n\\nimport javax.validation.Valid;\\n\\n/**\\n * @author Nicole Fung\\n * APIs to create, retrieve, update, and delete Bug objects. \\n *\\n */\\n@CrossOrigin(origins = { \\\"http://localhost:3000\\\", \\\"http://localhost:4200\\\" })\\n@RestController\\n@Controller\\npublic class BugController {\\n\\t\\n\\t  @Autowired\\n\\t  private BugRepository bugRepository;\\n\\n\\t  @GetMapping(\\\"/{username}/bugs\\\")\\n\\t  public Page<Bug> getAllItems (@PathVariable String username, Pageable pageable) {\\n\\t\\t  return this.bugRepository.findAll(pageable);\\n\\t  }\\n\\t  \\n\\t  @GetMapping(\\\"/{username}/bugs/{id}\\\")\\n      public Bug getItem (@PathVariable String username, @PathVariable long id) {\\n\\t\\t  return this.bugRepository.findById(id).get();\\n      }\\n\\t  \\n\\t  @PostMapping(\\\"/{username}/bugs/{id}\\\")\\n\\t  public ResponseEntity<Void> createItem (@PathVariable String username, @RequestBody Bug item) {\\n\\n\\t    Bug createdItem = bugRepository.save(item);\\n\\n\\t    URI uri = ServletUriComponentsBuilder.fromCurrentRequest().path(\\\"/{id}\\\").buildAndExpand(createdItem.getId())\\n\\t        .toUri();\\n\\n\\t    return ResponseEntity.created(uri).build();\\n\\t  }\\n\\t  \\n\\t  @PutMapping(\\\"/{username}/bugs/{id}\\\")\\n\\t  public ResponseEntity<Bug> updateItem (@PathVariable String username, @PathVariable long id,\\n\\t\\t\\t  @Valid @RequestBody Bug postRequest) {\\n\\t\\t  \\t// Set variables to create the item\\n\\t        return bugRepository.findById(id).map(item -> {\\n\\t            item.setId(postRequest.getId());\\n\\t            item.setName(postRequest.getTitle()); \\n\\t            item.setCategory(postRequest.getCategory()); \\n\\t            item.setProgammingLanguage(postRequest.getProgammingLanguage()); \\n\\t            item.setDescription(postRequest.getDescription()); \\n\\t            item.setTags(postRequest.getTags()); \\n\\t            item.setFix(postRequest.getFix()); \\n\\t            item.setUserId(postRequest.getUserId());\\n\\t            bugRepository.save(item); \\n\\t            return new ResponseEntity<Bug>(item, HttpStatus.OK);\\n\\t        }).orElseThrow(() -> new ResourceNotFoundException(\\\"PostId \\\" + id + \\\" not found\\\")); \\n\\t  }\\n\\t  \\n\\t  @DeleteMapping(\\\"/{username}/bugs/{id}\\\")\\n\\t  public ResponseEntity<?> deleteItem (\\n\\t\\t\\t  @PathVariable String username, @PathVariable long id) {\\n\\t\\t  return bugRepository.findById(id).map(bug -> {\\n\\t            bugRepository.delete(bug);\\n\\t            return ResponseEntity.ok().build();\\n\\t        }).orElseThrow(() -> new ResourceNotFoundException(\\\"BugId \\\" + id + \\\" not found\\\")); \\n\\t  }\\n}\\n</code></p> <p>but I am not sure which line in the <i>getAllItems()</i> function doesn''t work and why.</p>\",\n        \"progammingLanguage\": \"Java\",\n        \"fix\": [],\n        \"category\": \"Spring/Strut\"\n    },\n    {\n        \"id\": 40,\n        \"userId\": -1,\n        \"title\": \"new test\",\n        \"tags\": \"mnm, nmnm\",\n        \"description\": \"<p>vxc</p>\",\n        \"progammingLanguage\": \"ABAP\",\n        \"fix\": [],\n        \"category\": \"Database Integration, Data Analytics\"\n    }\n]"}],"_postman_id":"16db2fa1-2a0a-4a9d-9767-ccf7b55ab155"},{"name":"Get Bug object by ID","id":"5f50822c-1f4a-4480-af88-3212ece77526","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{{id}}?id=1","description":"<p>Returns details (title, description, related fixes and tags etc. ) for a Bug with the given ID. <br /><br />It is called whenever the <b>Edit</b> button is clicked in the <b><code>Home</code> and <code>View Post</code> pages.</b></p>\n<p><code>{{id}}</code> -  The Bug's ID</p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs","{{id}}"],"host":["localhost"],"query":[{"description":{"content":"<p>Bug ID</p>\n","type":"text/plain"},"key":"id","value":"1"}],"variable":[]}},"response":[{"id":"ceac4892-c6d8-4f45-a7ba-75f6ef9e011e","name":"Get Bug object by ID Example","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"http://localhost:8080/codera/bugs/{{id}}?id=1","protocol":"http","host":["localhost"],"port":"8080","path":["codera","bugs","{{id}}"],"query":[{"key":"id","value":"1","description":"Retrive Bug with ID = 1"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"userId\": 1,\n    \"title\": \"ORA-65096: invalid common user or role name in oracle TEST\",\n    \"tags\": \"oracle, oracle12c\",\n    \"description\": \"<p>I just installed Oracle, and it was missing the Scott schema. So i am trying to generate it myself.</p><p>I got the sql script of Scott schema, but when i try to run the query:</p><p>create user Scott identified by tiger;</p><p>it displays the following error:</p><blockquote><p>ORA-65096: invalid common user or role name in oracle.</p></blockquote><p>Basically it is not allowing me to create a user <strong>Scott</strong>.</p>\",\n    \"progammingLanguage\": \"Mirah\",\n    \"fix\": [\n        {\n            \"id\": 1,\n            \"title\": \"Alter Session in SYSDBA\",\n            \"solution\": \"<p>Run this code snippet<code>alter session set \\\"_ORACLE_SCRIPT\\\"=true;  </code></p>\",\n            \"noOfTimesWorked\": 3\n        },\n        {\n            \"id\": 2,\n            \"title\": \"Change repo.getOne() to repo.findById(long id) \",\n            \"solution\": \"<p>After a bunch of online seraches, I find this <a href='https://stackoverflow.com/questions/52656517/no-serializer-found-for-class-org-hibernate-proxy-pojo-bytebuddy-bytebuddyinterc'>link</a>. </p> \\n<p>So I try to change  my code from this: </p> <p><code>@GetMapping(\\\"/{username}/bugs/{id}\\\")\\n      public Bug getItem (@PathVariable String username, @PathVariable long id) {\\n\\t\\t  return this.bugRepository.getOne(id);\\n      }</code></p>\\n<p>to this: </p> \\n<p><blockquote>@GetMapping(\\\"/{username}/bugs/{id}\\\")\\n      public Bug getItem (@PathVariable String username, @PathVariable long id) {\\n\\t\\t  return this.bugRepository.findById(id).get();\\n      }</blockquote></p>\",\n            \"noOfTimesWorked\": 1\n        }\n    ],\n    \"category\": \"Data Analytics, Database Integration\"\n}"}],"_postman_id":"5f50822c-1f4a-4480-af88-3212ece77526"},{"name":"Create a New Bug","id":"04338dad-2fe9-4aad-a5e7-f8b6456085ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/","description":"<p>Creates new Bug object in the database. <br /><br />It is called whenever the <b>Save</b> button is clicked in the <code>Add Post</code> page.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"633d1dc2-f355-489d-88f9-0722483b5273","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"04338dad-2fe9-4aad-a5e7-f8b6456085ff"},{"name":"Update a Bug","id":"64d7937d-b6bd-4271-800d-8acace5a9b0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{{id}}?id=1","description":"<p>Updates details for a Bug, with the given ID parameter.<br /><br />It is called whenever the <b>Save</b> button is clicked in the <b><code>Add post</code> pages.</b></p>\n<p><code>{{id}}</code> -  The Bug's ID</p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs","{{id}}"],"host":["localhost"],"query":[{"description":{"content":"<p>Bug ID</p>\n","type":"text/plain"},"key":"id","value":"1"}],"variable":[]}},"response":[{"id":"0b5e7444-985d-4f76-bd68-b04756e207a8","name":"Default","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{id}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"64d7937d-b6bd-4271-800d-8acace5a9b0a"},{"name":"Delete a Bug","id":"7433aaa1-8100-48e5-844d-0fefca416ba5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{{id}}?id=1","description":"<p>Deletes a Bug with the given ID parameter.<br /><br />It is called whenever the <b>🗑 Delete</b> button clicked in the <b><code>Home</code> and <code>View Post</code> pages.</b></p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs","{{id}}"],"host":["localhost"],"query":[{"description":{"content":"<p>Bug ID</p>\n","type":"text/plain"},"key":"id","value":"1"}],"variable":[]}},"response":[{"id":"4eb8b44e-601f-4b0b-9271-637726d67061","name":"Default","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{id}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"7433aaa1-8100-48e5-844d-0fefca416ba5"},{"name":"Get all Fixes for a Bug","id":"d4766ccd-3a1a-4fab-b587-6d74bf0d3095","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{{parentId}}/fixes?parentId=1","description":"<p>Returns all Fixes/Solutions for a Bug.</p>\n<p><code>{{parentId}}</code> -  The Bug's ID</p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs","{{parentId}}","fixes"],"host":["localhost"],"query":[{"description":{"content":"<p>Bug ID</p>\n","type":"text/plain"},"key":"parentId","value":"1"}],"variable":[]}},"response":[{"id":"de356dc6-4d14-4177-bfe8-aee3508fba0e","name":"Get all Fixes for a Bug example","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"http://localhost:8080/codera/bugs/{{parentId}}/fixes?parentId=1","protocol":"http","host":["localhost"],"port":"8080","path":["codera","bugs","{{parentId}}","fixes"],"query":[{"key":"parentId","value":"1","description":"Bug ID","type":"text"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"title\": \"Alter Session in SYSDBA\",\n        \"solution\": \"<p>Run this code snippet<code>alter session set \\\"_ORACLE_SCRIPT\\\"=true;  </code></p>\",\n        \"noOfTimesWorked\": 3\n    },\n    {\n        \"id\": 2,\n        \"title\": \"Change repo.getOne() to repo.findById(long id) \",\n        \"solution\": \"<p>After a bunch of online seraches, I find this <a href='https://stackoverflow.com/questions/52656517/no-serializer-found-for-class-org-hibernate-proxy-pojo-bytebuddy-bytebuddyinterc'>link</a>. </p> \\n<p>So I try to change  my code from this: </p> <p><code>@GetMapping(\\\"/{username}/bugs/{id}\\\")\\n      public Bug getItem (@PathVariable String username, @PathVariable long id) {\\n\\t\\t  return this.bugRepository.getOne(id);\\n      }</code></p>\\n<p>to this: </p> \\n<p><blockquote>@GetMapping(\\\"/{username}/bugs/{id}\\\")\\n      public Bug getItem (@PathVariable String username, @PathVariable long id) {\\n\\t\\t  return this.bugRepository.findById(id).get();\\n      }</blockquote></p>\",\n        \"noOfTimesWorked\": 1\n    }\n]"}],"_postman_id":"d4766ccd-3a1a-4fab-b587-6d74bf0d3095"},{"name":"Get single Fix object","id":"2983c7d5-8efb-402e-bf76-85b4704857db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{{parentId}}/fixes/{{id}}?parentId=1&id=4","description":"<p>Returns the ID, title, description and votes related for a Bug Fix with the given Bug ID &amp; Fix ID parameters. </p>\n<p><code>{{parentId}}</code> -  The Bug's ID\n<br /><br />\n<code>{{id}}</code> -  The Fix's ID </p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs","{{parentId}}","fixes","{{id}}"],"host":["localhost"],"query":[{"description":{"content":"<p>Retrieve Fix for this Bug ID </p>\n","type":"text/plain"},"key":"parentId","value":"1"},{"description":{"content":"<p>Fix ID</p>\n","type":"text/plain"},"key":"id","value":"4"}],"variable":[]}},"response":[{"id":"86c57d56-7663-4566-bc1e-3cfcad4fa45a","name":"Get single Fix for a Bug example","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"http://localhost:8080/codera/bugs/{parentId}/fixes/{id}?parentId=1&id=4","protocol":"http","host":["localhost"],"port":"8080","path":["codera","bugs","{parentId}","fixes","{id}"],"query":[{"key":"parentId","value":"1","description":"Bug ID"},{"key":"id","value":"4","description":"Fix ID"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"title\": \"Alter Column into Strings \",\n        \"solution\": \"<p>It's because the ArrayList type variables are translated into a BINARY data type in JPA, so you need to do sth like: Store the entire thing as a string, when the frontend reads it, use split() to turn it into an array.</p>\",\n        \"noOfTimesWorked\": 2\n    }\n]"}],"_postman_id":"2983c7d5-8efb-402e-bf76-85b4704857db"},{"name":"Create a Fix object","id":"296a3626-51ac-41ba-ab0d-043794ce4b10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{{parentId}}/fixes?parentId=1","description":"<p>Creates new a Fix object in the database. <br />It is called whenever the <b>Save</b> button is clicked in the <b><code>Add post</code> page.</b></p>\n<p><code>{{parentId}}</code> -  The Bug's ID</p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs","{{parentId}}","fixes"],"host":["localhost"],"query":[{"description":{"content":"<p>Bug ID</p>\n","type":"text/plain"},"key":"parentId","value":"1"}],"variable":[]}},"response":[{"id":"fa13a186-2b66-4edb-b364-823ffdd9ec6c","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"http://localhost:8080/codera/bugs/{{parentId}}/fixes","protocol":"http","host":["localhost"],"port":"8080","path":["codera","bugs","{{parentId}}","fixes"],"query":[{"key":"parentId","value":"1","description":"Retrieve all Fixes for the Bug with ID = 1 ","disabled":true},{"key":"parentId","value":"2","description":"Retrieve all Fixes for the Bug with ID = 2, should return empty. ","type":"text","disabled":true},{"key":"parentId","value":"3","description":"Retrieve all Fixes for the Bug with ID = 3","type":"text","disabled":true}]}},"_postman_previewlanguage":null,"header":[{"key":"parentId","value":"1","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"296a3626-51ac-41ba-ab0d-043794ce4b10"},{"name":"Update a Fix object","id":"eb5961f8-706f-4e93-8227-7c055403b141","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{{parentId}}/fixes/{{id}}?parentId=1&id=4","description":"<p>Updates details for a Fix, with the given Bug ID &amp; Fix ID parameters. </p>\n<p><code>{{parentId}}</code> -  The Bug's ID\n<br /><br />\n<code>{{id}}</code> -  The Fix's ID </p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs","{{parentId}}","fixes","{{id}}"],"host":["localhost"],"query":[{"description":{"content":"<p>Bug ID</p>\n","type":"text/plain"},"key":"parentId","value":"1"},{"description":{"content":"<p>Fix ID</p>\n","type":"text/plain"},"key":"id","value":"4"}],"variable":[]}},"response":[{"id":"2c0fc16a-fa15-4201-b4ee-9433939b4eb1","name":"Default","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{bug_id}/fixes/{id}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"eb5961f8-706f-4e93-8227-7c055403b141"},{"name":"Delete a Fix object","id":"d0acf84b-7366-49cb-92ad-61a035d06605","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{{parentId}}/fixes/{{id}}?parentId=1&id=4","description":"<p>Deletes a Fix with the given Bug ID &amp; Fix ID parameters. </p>\n<p><code>{{parentId}}</code> -  The Bug's ID\n<br /><br />\n<code>{{id}}</code> -  The Fix's ID </p>\n","urlObject":{"protocol":"http","port":"8080","path":["codera","bugs","{{parentId}}","fixes","{{id}}"],"host":["localhost"],"query":[{"description":{"content":"<p>Bug ID</p>\n","type":"text/plain"},"key":"parentId","value":"1"},{"description":{"content":"<p>Fix ID</p>\n","type":"text/plain"},"key":"id","value":"4"}],"variable":[]}},"response":[{"id":"627ce639-2240-4598-8158-1dea463b8106","name":"Default","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/codera/bugs/{bug_id}/fixes/{id}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"d0acf84b-7366-49cb-92ad-61a035d06605"}]}