{"info":{"_postman_id":"0a7cece5-c54b-4729-9b9c-b54034edf73a","name":"TreyResearch API","description":"<html><head></head><body><h1 id=\"get-started-here\">🚀 Get started here</h1>\n<p>This template guides you through API operations (GET, POST) available to developers to test out APIs for a consultant and project management company - Trey Research. Trey Research is a fictitious consulting company that supplies talent in the software and pharmaceuticals industries.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🚀 Get started here","slug":"get-started-here"}],"owner":"5938178","collectionId":"0a7cece5-c54b-4729-9b9c-b54034edf73a","publishedId":"2sA3JJ8hfn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-05-07T01:41:52.000Z"},"item":[{"name":"Get my consulting profile and projects","id":"513e5ac8-9007-43d7-aecf-c3b411548453","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/me/","description":"<p>This API endpoint is a GET request designed to retrieve the consulting profile and data of the logged in user (for now with no auth it is always a mock user Avery).<br />When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"1\",\n            \"name\": \"Avery Howard\",\n            \"email\": \"avery@treyresearch.com\",\n            \"phone\": \"1-555-456-7890\",\n            \"imageUrl\": \"https://bobgerman.github.io/fictitiousAiGenerated/Avery.jpg\",\n            \"location\": {\n                \"street\": \"5 Wayside Rd.\",\n                \"city\": \"Burlington\",\n                \"state\": \"MA\",\n                \"country\": \"USA\",\n                \"postalCode\": \"01803\",\n                \"latitude\": 42.5048,\n                \"longitude\": -71.1956....\n     ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","me",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"513e5ac8-9007-43d7-aecf-c3b411548453"},{"name":"Get all consultants","id":"c53d6f62-e28d-494d-a1fc-dcba0dc47cb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/consultants/","description":"<p>This API endpoint is a GET request designed to retrieve all consultants in Trey Research<br />When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"1\",\n            \"name\": \"Avery Howard\",\n            \"email\": \"avery@treyresearch.com\",\n            \"phone\": \"1-555-456-7890\",\n            \"imageUrl\": \"https://bobgerman.github.io/fictitiousAiGenerated/Avery.jpg\",\n            ....\n        },\n        {\n            \"id\": \"2\",\n            \"name\": \"Dominique Dutertre\",\n            \"email\": \"dominique@treyresearch.com\",\n            \"phone\": \"1-555-567-7890\",\n            \"imageUrl\": \"https://bobgerman.github.io/fictitiousAiGenerated/Dominique.jpg\",\n            ....\n        },\n        ...\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","consultants",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c53d6f62-e28d-494d-a1fc-dcba0dc47cb0"},{"name":"Get consultants with name","id":"5eb28741-f6a1-4fc3-88a3-669d78bd7f83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/consultants/?consultantName=Avery","description":"<p>This API endpoint is a GET request designed to retrieve a list of consultants whose names, or parts of their names, match a given name. The endpoint uses query parameter <code>consultantName</code> to accept a search string, which it then uses to query the database and return matching consultant profiles.</p>\n<p>When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"1\",\n            \"name\": \"Avery Howard\",\n            \"email\": \"avery@treyresearch.com\",\n            \"phone\": \"1-555-456-7890\",\n            \"imageUrl\": \"https://bobgerman.github.io/fictitiousAiGenerated/Avery.jpg\",\n            \"location\": {\n                \"street\": \"5 Wayside Rd.\",\n                \"city\": \"Burlington\",\n                \"state\": \"MA\",\n                \"country\": \"USA\",\n                \"postalCode\": \"01803\",\n                \"latitude\": 42.5048,\n                \"longitude\": -71.1956....\n     ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","consultants",""],"host":["localhost"],"query":[{"key":"consultantName","value":"Avery"}],"variable":[]}},"response":[],"_postman_id":"5eb28741-f6a1-4fc3-88a3-669d78bd7f83"},{"name":"Get consultants with projects based on projects they are assigned","id":"c1a4ec12-c4a9-4f53-8ba4-8eeee3651c23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/consultants/?projectName=Financial","description":"<p>This API endpoint is a GET request designed to retrieve a list of consultants who is assigned to projects which has its name or parts of its names, match a given project name. The endpoint uses query parameter <code>projectName</code> to accept a search string, which it then uses to query the database and return matching consultant profiles.</p>\n<p>When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"1\",\n            \"name\": \"Avery Howard\",\n            \"email\": \"avery@treyresearch.com\",\n            \"phone\": \"1-555-456-7890\",\n            \"imageUrl\": \"https://bobgerman.github.io/fictitiousAiGenerated/Avery.jpg\",\n            .....\n        \"projects\": [\n                {\n                    \"projectName\": \"Financial data plugin for Microsoft Copilot\",\n                    \"projectDescription\": \"Extend Woodgrove's financial analytics platform to integrate with Microsoft Copilot\",\n                    \"projectLocation\": {\n                        \"street\": \"1 Microsoft Way\",\n                        \"city\": \"Redmond\",\n                        \"state\": \"WA\",\n                        \"country\": \"USA\",\n                        \"postalCode\": \"98052\",\n                        \"latitude\": 47.6396,\n                        \"longitude\": -122.1295,\n                        \"mapUrl\": \"https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/?47.6396,-122.1295mapSize=450,600&amp;pp=47.6396,-122.1295&amp;key=xxxxxxxxxxxxxxxxxxxxxxx\"\n                    },\n                    \"clientName\": \"Woodgrove Bank\",\n                    \"clientContact\": \"Bi Gao\",\n                    \"clientEmail\": \"bigao@woodgrovebank.com\",\n                    \"role\": \"Architect\",\n                    \"forecastThisMonth\": 98,\n                    \"forecastNextMonth\": 1,\n                    \"deliveredLastMonth\": 0\n                 .....\n     ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","consultants",""],"host":["localhost"],"query":[{"key":"projectName","value":"Financial"}],"variable":[]}},"response":[],"_postman_id":"c1a4ec12-c4a9-4f53-8ba4-8eeee3651c23"},{"name":"Get consultants with a certain skill listed","id":"6bcce0eb-fbe3-4f36-9f66-6a65505c3b07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/consultants/?skill=TypeScript","description":"<p>This API endpoint is a GET request designed to retrieve a list of consultants based on skills in their skill list. The endpoint uses query parameter <code>skill</code> to accept a search string, which it then uses to query the database and return matching consultant profiles.</p>\n<p>When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"1\",\n            \"name\": \"Avery Howard\",\n            \"email\": \"avery@treyresearch.com\",\n            \"phone\": \"1-555-456-7890\",\n            \"imageUrl\": \"https://bobgerman.github.io/fictitiousAiGenerated/Avery.jpg\",\n            .....\n        \"projects\": [\n              \"skills\": [\n                \"C#\",\n                \"JavaScript\",\n                \"TypeScript\",\n                \"React\",\n                \"Node.js\"\n            ],\n            \"certifications\": [\n                \"MCSADA\",\n                \"Azure Developer Associate\",\n                \"MCAAF\",\n                \"Azure AI Fundamentals\"\n            ],\n            \"roles\": [\n                \"Project lead\",\n                \"Developer\",\n                \"Architect\",\n                \"DevOps\"\n            ],\n                 .....\n     ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","consultants",""],"host":["localhost"],"query":[{"key":"skill","value":"TypeScript"}],"variable":[]}},"response":[],"_postman_id":"6bcce0eb-fbe3-4f36-9f66-6a65505c3b07"},{"name":"Get consultants with a certain certification listed","id":"4c6d9008-32dc-4d52-bb1f-a7897dadcbd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/consultants/?certification=azure","description":"<p>This API endpoint is a GET request designed to retrieve a list of consultants based on the certifications they have acquired. The endpoint uses query parameter <code>certification</code> to accept a search string, which it then uses to query the database and return matching consultant profiles.</p>\n<p>When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"1\",\n            \"name\": \"Avery Howard\",\n            \"email\": \"avery@treyresearch.com\",\n            \"phone\": \"1-555-456-7890\",\n            \"imageUrl\": \"https://bobgerman.github.io/fictitiousAiGenerated/Avery.jpg\",\n            .....\n        \"projects\": [\n              \"skills\": [\n                \"C#\",\n                \"JavaScript\",\n                \"TypeScript\",\n                \"React\",\n                \"Node.js\"\n            ],\n            \"certifications\": [\n                \"MCSADA\",\n                \"Azure Developer Associate\",\n                \"MCAAF\",\n                \"Azure AI Fundamentals\"\n            ],\n            \"roles\": [\n                \"Project lead\",\n                \"Developer\",\n                \"Architect\",\n                \"DevOps\"\n            ],\n                 .....\n     ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","consultants",""],"host":["localhost"],"query":[{"key":"certification","value":"azure"}],"variable":[]}},"response":[],"_postman_id":"4c6d9008-32dc-4d52-bb1f-a7897dadcbd8"},{"name":"Get consultants with a certain role listed","id":"878d88d7-82cc-420e-8908-21df67bdf8bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/consultants/?role=developer","description":"<p>This API endpoint is a GET request designed to retrieve a list of consultants based on their roles. The endpoint uses query parameter <code>role</code> to accept a search string, which it then uses to query the database and return matching consultant profiles.</p>\n<p>When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"1\",\n            \"name\": \"Avery Howard\",\n            \"email\": \"avery@treyresearch.com\",\n            \"phone\": \"1-555-456-7890\",\n            \"imageUrl\": \"https://bobgerman.github.io/fictitiousAiGenerated/Avery.jpg\",\n            .....\n        \"projects\": [\n              \"skills\": [\n                \"C#\",\n                \"JavaScript\",\n                \"TypeScript\",\n                \"React\",\n                \"Node.js\"\n            ],\n            \"certifications\": [\n                \"MCSADA\",\n                \"Azure Developer Associate\",\n                \"MCAAF\",\n                \"Azure AI Fundamentals\"\n            ],\n            \"roles\": [\n                \"Project lead\",\n                \"Developer\",\n                \"Architect\",\n                \"DevOps\"\n            ],\n                 .....\n     ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","consultants",""],"host":["localhost"],"query":[{"key":"role","value":"developer"}],"variable":[]}},"response":[],"_postman_id":"878d88d7-82cc-420e-8908-21df67bdf8bd"},{"name":"Get consultants has x hours available in the current or next month","id":"8fe214e0-e095-4fc5-a04e-14fa3ecfc153","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/consultants/?availability=2","description":"<p>This API endpoint is a GET request designed to retrieve a list of consultants who have x hours available in the current month or next. The endpoint uses query parameter <code>availability</code> to accept the value of <code>x</code> hours, which it then uses to query the database and return matching consultant profiles.</p>\n<p>When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"1\",\n            \"name\": \"Avery Howard\",\n            \"email\": \"avery@treyresearch.com\",\n            \"phone\": \"1-555-456-7890\",\n            \"imageUrl\": \"https://bobgerman.github.io/fictitiousAiGenerated/Avery.jpg\",\n            .....\n                }\n            ],\n            \"forecastThisMonth\": 138,\n            \"forecastNextMonth\": 41,\n            \"deliveredLastMonth\": 0,\n            \"deliveredThisMonth\": 2\n                 .....\n     ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","consultants",""],"host":["localhost"],"query":[{"key":"availability","value":"2"}],"variable":[]}},"response":[],"_postman_id":"8fe214e0-e095-4fc5-a04e-14fa3ecfc153"},{"name":"Get Get all projects","id":"10a44dec-e0fc-44b4-b220-4842f8f35379","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/projects/","description":"<p>This API endpoint is a GET request designed to retrieve all projects in Trey Research<br />When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:  </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"1\",\n            \"name\": \"CRM Cloud Migration\",\n            \"description\": \"Migrate Adatum's CRM system to Dynamics 365\",\n            \"clientName\": \"Adatum Corporation\",\n            \"clientContact\": \"Natasha Jones\",\n            \"clientEmail\": \"natjones@adatum.com\",\n            ....\n            \"forecastThisMonth\": 10,\n            \"forecastNextMonth\": 0,\n            \"deliveredLastMonth\": 0,\n            \"deliveredThisMonth\": 0\n        },\n        {\n            \"id\": \"10\",\n            \"name\": \"Financial data plugin for Microsoft Copilot\",\n            \"description\": \"Extend Woodgrove's financial analytics platform to integrate with Microsoft Copilot\",\n            \"clientName\": \"Woodgrove Bank\",\n            \"clientContact\": \"Bi Gao\",\n            \"clientEmail\": \"bigao@woodgrovebank.com\",\n           .....\n            \"forecastThisMonth\": 118,\n            \"forecastNextMonth\": 21,\n            \"deliveredLastMonth\": 0,\n            \"deliveredThisMonth\": 2\n        },\n       .....\n    ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","projects",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"10a44dec-e0fc-44b4-b220-4842f8f35379"},{"name":"Get projects with name","id":"44c56908-50ef-4718-b796-c021b07f7323","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/projects/?projectName=Financial","description":"<p>This API endpoint is a GET request designed to retrieve a list of project which have name, or parts of its name, matching a given name. The endpoint uses query parameter <code>projectName</code> to accept a search string, which it then uses to query the database and return matching projects.</p>\n<p>When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"10\",\n            \"name\": \"Financial data plugin for Microsoft Copilot\",\n            \"description\": \"Extend Woodgrove's financial analytics platform to integrate with Microsoft Copilot\",\n            \"clientName\": \"Woodgrove Bank\",\n            \"clientContact\": \"Bi Gao\",\n            \"clientEmail\": \"bigao@woodgrovebank.com\",\n            \"location\": {\n                \"street\": \"1 Microsoft Way\",\n                \"city\": \"Redmond\",\n                \"state\": \"WA\",\n                \"country\": \"USA\",\n                \"postalCode\": \"98052\",\n                \"latitude\": 47.6396,\n                \"longitude\": -122.1295,\n                \"mapUrl\": \"https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/?47.6396,-122.1295mapSize=450,600&amp;pp=47.6396,-122.1295&amp;key=xxxxxxxxxxxxxxxxxxxxxxx\"\n            },\n           ...\n        }\n    ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","projects",""],"host":["localhost"],"query":[{"key":"projectName","value":"Financial"}],"variable":[]}},"response":[],"_postman_id":"44c56908-50ef-4718-b796-c021b07f7323"},{"name":"Get projects based on consultant name assigned","id":"d2930830-936a-46d0-a63c-d702a644a5d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7071/api/projects/?consultantName=Avery","description":"<p>This API endpoint is a GET request designed to retrieve a list of project which have consultants who's name, or parts of their name, matching a given name. The endpoint uses query parameter <code>consultantName</code> to accept a search string, which it then uses to query the database and return matching projects.</p>\n<p>When a client makes a GET request to this endpoint, they should expect a 200 OK status code upon success, indicating that the request has been processed and the data is being sent in the response. The response body will typically be in JSON format as shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": [\n        {\n            \"id\": \"10\",\n            \"name\": \"Financial data plugin for Microsoft Copilot\",\n            \"description\": \"Extend Woodgrove's financial analytics platform to integrate with Microsoft Copilot\",\n            \"clientName\": \"Woodgrove Bank\",\n            \"clientContact\": \"Bi Gao\",\n            \"clientEmail\": \"bigao@woodgrovebank.com\",\n             ....\n            \"consultants\": [\n                {\n                    \"consultantName\": \"Avery Howard\",\n                    \"consultantLocation\": {\n                        \"street\": \"5 Wayside Rd.\",\n                        \"city\": \"Burlington\",\n                        \"state\": \"MA\",\n                        \"country\": \"USA\",\n                        \"postalCode\": \"01803\",\n                        \"latitude\": 42.5048,\n                        \"longitude\": -71.1956,\n                        \"mapUrl\": \"https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/?42.5048,-71.1956mapSize=450,600&amp;pp=42.5048,-71.1956&amp;key=xxxxxxxxxxxxxxxxxxxxxxx\"\n                    },\n                    \"role\": \"Developer\",\n                    \"forecastThisMonth\": 40,\n                    \"forecastNextMonth\": 40,\n                    \"deliveredLastMonth\": 0,\n                    \"deliveredThisMonth\": 0\n                }\n            ],\n            \"forecastThisMonth\": 40,\n            \"forecastNextMonth\": 40,\n            \"deliveredLastMonth\": 0,\n            \"deliveredThisMonth\": 0\n        }\n    ]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","projects",""],"host":["localhost"],"query":[{"key":"consultantName","value":"Avery"}],"variable":[]}},"response":[],"_postman_id":"d2930830-936a-46d0-a63c-d702a644a5d6"},{"name":"Add hours to a project","id":"e1cfceab-700c-4955-83cd-cd184eae0452","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"projectName\": \"Woodgrove\",\n  \"hours\": 2\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:7071/api/me/chargeTime","description":"<p>This API endpoint is a POST request that allows users to log hours spent on a project. The request body must be in JSON format and include the <code>projectName</code> and <code>hours</code> fields.</p>\n<p>When a client makes a POST request to this endpoint with the appropriate JSON body, they should expect a 200 Created status code upon successful creation of the log entry.</p>\n<p>The JSON request body should look like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"projectName\": \"Woodgrove\",\n\"hours\": 2\n}\n\n</code></pre>\n<p>And its sample response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": {\n        \"status\": 200,\n        \"clientName\": \"Woodgrove Bank\",\n        \"projectName\": \"Financial data plugin for Microsoft Copilot\",\n        \"remainingForecast\": 96,\n        \"message\": \"Charged 2 hours to Woodgrove Bank on project \\\"Financial data plugin for Microsoft Copilot\\\". You have 96 hours remaining this month.\"\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","me","chargeTime"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1cfceab-700c-4955-83cd-cd184eae0452"},{"name":"Assign a consultant to a project","id":"c47edd3e-5f43-4c38-ae8f-fb5bc8c73105","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"projectName\": \"CRM Cloud Migration\",\n    \"consultantName\": \"Lois\",\n    \"role\": \"project lead\",\n    \"forecast\": 10\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:7071/api/projects/assignConsultant","description":"<p>This API endpoint is a POST request that assigns a consultant to a project with some forcast alloted.</p>\n<p>When a client makes a POST request to this endpoint with the appropriate JSON body, they should expect a 200 Created status code upon successful creation of the log entry.</p>\n<p>The JSON request body should look like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"projectName\": \"CRM Cloud Migration\",\n    \"consultantName\": \"Lois\",\n    \"role\": \"project lead\",\n    \"forecast\": 10\n}\n\n</code></pre>\n<p>And its sample response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"results\": {\n        \"status\": 200,\n        \"clientName\": \"Adatum Corporation\",\n        \"projectName\": \"CRM Cloud Migration\",\n        \"consultantName\": \"Lois Wyn\",\n        \"remainingForecast\": 10,\n        \"message\": \"Added consultant Lois Wyn to Adatum Corporation on project \\\"CRM Cloud Migration\\\" with 10 hours forecast this month.\"\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"7071","path":["api","projects","assignConsultant"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c47edd3e-5f43-4c38-ae8f-fb5bc8c73105"}]}