{"info":{"_postman_id":"dafaea82-6480-4f9d-81c8-428f4419e4e6","name":"Prueba","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"38814663","collectionId":"dafaea82-6480-4f9d-81c8-428f4419e4e6","publishedId":"2sAY518Ku9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-06T21:41:38.000Z"},"item":[{"name":"Get_Worker","id":"324a6292-2e48-4156-b168-73c99c3b9421","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8081/api/workers","description":"<h3 id=\"get-workers\">Get Workers</h3>\n<p>This endpoint is used to retrieve a list of workers.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>status</code> (string): Represents the status of the response.</p>\n</li>\n<li><p><code>data</code> (array): An array containing the list of workers.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"\",\n    \"data\": []\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workers"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"324a6292-2e48-4156-b168-73c99c3b9421"},{"name":"Post_Worker","id":"1d26280e-5e7a-4cb5-bd1e-c9739c72a9c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Diego\",\r\n  \"workstation\": \"horno\",\r\n  \"lastAssignment\": \"2024-11-06\",\r\n  \"skill\": \"Suelda\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8081/api/workers","description":"<h3 id=\"add-worker\">Add Worker</h3>\n<p>This endpoint allows the addition of a new worker to the system.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string, required): The name of the worker.</p>\n</li>\n<li><p><code>workstation</code> (string, required): The workstation where the worker is assigned.</p>\n</li>\n<li><p><code>lastAssignment</code> (string, required): The date of the worker's last assignment.</p>\n</li>\n<li><p><code>skill</code> (string, required): The skill of the worker.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>Upon successful addition, the server responds with a status code 200 and a JSON object containing the status of the operation and the data of the newly added worker.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"\",\n    \"data\": {\n        \"name\": \"\",\n        \"workstation\": \"\",\n        \"lastAssignment\": \"\",\n        \"skill\": \"\"\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workers"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1d26280e-5e7a-4cb5-bd1e-c9739c72a9c6"},{"name":"Put_Worker","id":"22fadc4b-0aae-4183-b8e7-e79324296646","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{         \r\n      \"name\": \"Diego mm\",\r\n      \"workstation\": \"horno\",\r\n      \"lastAssignment\": \"2024-11-06\",\r\n      \"skill\": \"Suelda\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8081/api/workers/1","description":"<h3 id=\"update-worker-details\">Update Worker Details</h3>\n<p>This endpoint allows the client to update the details of a worker with the specified ID.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>Type: JSON</p>\n<ul>\n<li><p><code>name</code>: (string) The name of the worker.</p>\n</li>\n<li><p><code>workstation</code>: (string) The workstation of the worker.</p>\n</li>\n<li><p><code>lastAssignment</code>: (string) The date of the worker's last assignment.</p>\n</li>\n<li><p><code>skill</code>: (string) The skill set of the worker.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"workstation\": {\n          \"type\": \"string\"\n        },\n        \"lastAssignment\": {\n          \"type\": \"string\"\n        },\n        \"skill\": {\n          \"type\": \"string\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n<p>This endpoint allows the user to update the details of a specific worker.</p>\n<h4 id=\"request-body-1\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string): The updated name of the worker.</p>\n</li>\n<li><p><code>workstation</code> (string): The updated workstation of the worker.</p>\n</li>\n<li><p><code>lastAssignment</code> (string): The updated date of the last assignment.</p>\n</li>\n<li><p><code>skill</code> (string): The updated skill of the worker.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"Diego mm\",\n    \"workstation\": \"horno\",\n    \"lastAssignment\": \"2024-11-06\",\n    \"skill\": \"Suelda\"\n}\n\n</code></pre>\n<h4 id=\"response-1\">Response</h4>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n</ul>\n<p>Example Response Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"\",\n    \"data\": {\n        \"name\": \"\",\n        \"workstation\": \"\",\n        \"lastAssignment\": \"\",\n        \"skill\": \"\"\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workers","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"22fadc4b-0aae-4183-b8e7-e79324296646"},{"name":"Delete_Worker","id":"a6418d3d-5e1d-42c9-b426-158cf9642f35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8081/api/workers/2","description":"<h3 id=\"delete-worker\">Delete Worker</h3>\n<p>This endpoint is used to delete a specific worker by their ID.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>URL: <code>http://localhost:8081/api/workers/2</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is in JSON format and has the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"status\": {\n            \"type\": \"string\"\n        },\n        \"data\": {\n            \"type\": \"string\"\n        }\n    }\n}\n\n</code></pre>\n<p>The response includes a status field to indicate the status of the operation and a data field which may contain additional information related to the deletion process.</p>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workers","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6418d3d-5e1d-42c9-b426-158cf9642f35"},{"name":"Get_Worker_Id","id":"7118a8fb-9f36-4dff-9834-82f99369c8ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8081/api/workers/1","description":"<h3 id=\"get-apiworkers1\">GET /api/workers/1</h3>\n<p>This endpoint retrieves information about a specific worker.</p>\n<h4 id=\"request\">Request</h4>\n<p>This is a simple GET request that does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"string\",\n    \"data\": {\n        \"name\": \"string\",\n        \"workstation\": \"string\",\n        \"lastAssignment\": \"string\",\n        \"skill\": \"string\"\n    }\n}\n\n</code></pre>\n<p>The <code>status</code> field represents the status of the response, and the <code>data</code> field contains information about the worker including their <code>name</code>, <code>workstation</code>, <code>lastAssignment</code>, and <code>skill</code>.</p>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workers","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7118a8fb-9f36-4dff-9834-82f99369c8ab"},{"name":"Get_Place","id":"8f7ad415-8ebe-4cbf-930a-5572a41aefdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8081/api/workplaces","description":"<h3 id=\"retrieve-workplaces\">Retrieve Workplaces</h3>\n<p>This API endpoint is used to retrieve a list of workplaces.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>http://localhost:8081/api/workplaces</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"number\"\n          },\n          \"name\": {\n            \"type\": \"string\"\n          },\n          \"location\": {\n            \"type\": \"string\"\n          },\n          \"assignmentDate\": {\n            \"type\": \"string\"\n          },\n          \"requiredSkill\": {\n            \"type\": \"string\"\n          },\n          \"worker\": {\n            \"type\": \"object\",\n            \"properties\": {\n              // Properties of the worker object\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n<p>The response will have a status code of 200 and a content type of <code>application/json</code>.</p>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workplaces"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f7ad415-8ebe-4cbf-930a-5572a41aefdc"},{"name":"Post_Place","id":"abbf20a6-bf65-4a8f-8922-5408664216c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"taller\",\r\n  \"location\": \"horno\",\r\n  \"assignmentDate\": \"2024-11-06\",\r\n  \"requiredSkill\": \"cortar\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8081/api/workplaces","description":"<h3 id=\"create-a-new-workplace\">Create a New Workplace</h3>\n<p>This endpoint allows you to create a new workplace.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (text, required): The name of the workplace.</p>\n</li>\n<li><p>location (text, required): The location of the workplace.</p>\n</li>\n<li><p>assignmentDate (text, required): The date of assignment for the workplace.</p>\n</li>\n<li><p>requiredSkill (text, required): The required skill for the workplace.</p>\n</li>\n</ul>\n<h4 id=\"response-json-schema\">Response (JSON Schema)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"status\": {\n            \"type\": \"string\"\n        },\n        \"data\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"id\": {\n                    \"type\": \"integer\"\n                },\n                \"name\": {\n                    \"type\": \"string\"\n                },\n                \"location\": {\n                    \"type\": \"string\"\n                },\n                \"assignmentDate\": {\n                    \"type\": \"string\"\n                },\n                \"requiredSkill\": {\n                    \"type\": \"string\"\n                },\n                \"worker\": {\n                    \"type\": [\"object\", \"null\"]\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workplaces"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"abbf20a6-bf65-4a8f-8922-5408664216c3"},{"name":"Put_Place","id":"030de487-f904-46d7-98b6-f5ade3731b07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"taller cilindros\",\r\n  \"location\": \"horno\",\r\n  \"assignmentDate\": \"2024-11-06\",\r\n  \"requiredSkill\": \"cortar\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8081/api/workplaces/1","description":"<h3 id=\"update-workplace-details\">Update Workplace Details</h3>\n<p>This endpoint allows the client to update the details of a workplace by sending an HTTP PUT request to the specified URL.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code>: (string) The updated name of the workplace.</p>\n</li>\n<li><p><code>location</code>: (string) The updated location of the workplace.</p>\n</li>\n<li><p><code>assignmentDate</code>: (string) The updated assignment date for the workplace.</p>\n</li>\n<li><p><code>requiredSkill</code>: (string) The updated required skill for the workplace.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format and will follow the schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"string\",\n    \"data\": {\n        \"id\": \"integer\",\n        \"name\": \"string\",\n        \"location\": \"string\",\n        \"assignmentDate\": \"string\",\n        \"requiredSkill\": \"string\",\n        \"worker\": \"null\"\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workplaces","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"030de487-f904-46d7-98b6-f5ade3731b07"},{"name":"Delete_Place","id":"8554e673-69cd-4081-828f-8dbde0474a03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8081/api/workplaces/4","description":"<h3 id=\"delete-workplace\">Delete Workplace</h3>\n<p>This endpoint is used to delete a specific workplace.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>URL: <code>http://localhost:8081/api/workplaces/4</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 204</p>\n</li>\n<li><p>Content Type: text/xml</p>\n</li>\n<li><p>Body: null</p>\n</li>\n</ul>\n<p>The response for this request is not expected to contain any content, as indicated by the null value.</p>\n<h4 id=\"json-schema-for-response\">JSON Schema for Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {},\n  \"required\": []\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workplaces","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8554e673-69cd-4081-828f-8dbde0474a03"},{"name":"Get_Place_Id","id":"b9e5d5bb-b336-401d-b84d-dee7deae95d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8081/api/workplaces/1","description":"<h3 id=\"get-apiworkplaces1\">GET /api/workplaces/1</h3>\n<p>This endpoint retrieves information about a specific workplace.</p>\n<h4 id=\"request\">Request</h4>\n<p>This is a simple GET request with no request body.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"string\",\n    \"data\": {\n        \"id\": \"number\",\n        \"name\": \"string\",\n        \"location\": \"string\",\n        \"assignmentDate\": \"string\",\n        \"requiredSkill\": \"string\",\n        \"worker\": \"object\"\n    }\n}\n\n</code></pre>\n<p>The <code>status</code> field represents the status of the request, and the <code>data</code> field contains details about the workplace, including its <code>id</code>, <code>name</code>, <code>location</code>, <code>assignmentDate</code>, <code>requiredSkill</code>, and <code>worker</code> information.</p>\n","urlObject":{"protocol":"http","port":"8081","path":["api","workplaces","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9e5d5bb-b336-401d-b84d-dee7deae95d3"}]}