{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"780eccfb-241d-43a4-b6a4-f2a9df26224f","name":"Simple CRUD","description":"# Thought For The Developer\r\nThe purpose of this project is to allow users to create an account, then, drop a comment or more for the developer.\r\nI like to call them **thoughts**.\r\n\r\n# Table of Content\r\n1. [Development](#development)\r\n\t- [Setup](#setup)\r\n2. [How It Works](#how-it-works)\r\n\r\n# Development\r\nThis project is developed using Symfony (4).\r\n\r\n## Setup\r\n1. Install dependencies\r\n```bash\r\ncomposer install\r\n```\r\n\r\n2. Database configuration\r\n\t- Configure your **.env**: `DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name`\r\n\t- Create the database: `php bin/console doctrine:database:create`\r\n\t- Create the database schema: `php bin/console doctrine:schema:create`\r\n\r\n3. Generate the SSH keys (for JWT Token Configuration):\r\n```bash\r\n$ mkdir -p config/jwt\r\n$ openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096\r\n$ openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout\r\n```\r\n*In my case, I used **PuttyGen** to generate a key and saved the private key as `private.pem`. Then, ran the second command:\r\n`openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout`*.\r\n\r\n4. Start your server\r\n```bash\r\nsymfony serve:start --no-tls`\r\n```\r\n\r\n# How It Works\r\n## Authentication\r\n- Create an account (`first_name`, `last_name`, `email`, `password`, `created_at`, `updated_at`)\r\n- Login (`email`, `password`)\r\n\r\n## Main Operation\r\n**Thought::entity** - `id`, `user_id`, `comment`, `created_at`, `updated_at`\r\n\r\n- List all your thoughts (GET `/thoughts`)\r\n- Store a thought (POST `/thoughts`)\r\n- Show a thought (GET `/thoughts/{thought}`)\r\n- Edit a thought (PUT `/thoughts/{thought}`)\r\n- Delete a thought (DELETE `/thoughts/{thought}`)\r\n","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"7154640","collectionId":"780eccfb-241d-43a4-b6a4-f2a9df26224f","publishedId":"TVKBXHZa","public":true,"publicUrl":"https://documenter-api.postman.tech/view/7154640/TVKBXHZa","privateUrl":"https://go.postman.co/documentation/7154640-780eccfb-241d-43a4-b6a4-f2a9df26224f","customColor":{"top-bar":"FFFFFF","right-sidebar":"003F30","highlight":"41B883"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2020-09-18T09:53:41.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"Simple CRUD","id":"6fdb5d8f-7b65-412f-a5f1-b6c3927dabf0","owner":"7154640","values":[{"key":"baseUrl","value":"127.0.0.1:8000/api","enabled":true},{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2MDAzNzU1NTksImV4cCI6MTYwMDM3OTE1OSwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoiQmVzc2llLkxlbWtlQGdtYWlsLmNvbSJ9.FmQA9Ogyre8PXh8NWgMEcshjV-Iz-pb90GDrSp7hCmSgtRd8dU6E52I8LrEktqgKeMpfVmlx8zEkxs0wZTZ_EbHEtNUKvMr3_8mtLcB1i0nBAnqyJzecpXLkjgQBdXER3O7b6P-N8P6wQdH2M6kui0Ftv7qWhKQ4mJXKCfFkBniWFm8MpRHgn8ip4LQD_kXZ4OTe05vSyzHadWBLZbDDWG5nZOfkZn-JDUOphEVn6iUp_voye5iTXzyVKBxaBAgp1-bb4eccw4kmG635Ly5PJb7ZNBlLJpZpg-7fBtoiWGdjyc6RyZ8xB6X5VI-e8suI_wui2QT1fvCA9AJgVdJ16MJ4oR7RkpGtIyTabk1c27mo_0CG2JsLyyf28NdffxBk7hfgeH7kPWnkjWMmn9HnSY6xlOI6xwC3B2_rM7uVEckuZaSPkk8vQru7AojXj_B8H4DDyIpVWVWTstrlICp4YqhHA6S-uljWO2dU1IAJctS2a-unAXgO7ozwoiCZEebXrKcPPe1r0r-1gcp8N2p1885S_5Nfqi4AMf7Jslfcq2RtFK5H5R6jUBN6VRemWDskXVxvnlMRQFdSz6jYSp4vnFJ7uHqZt4DcmmZiHkMQdDGz9K78hN2ASasnmKB2kz7h-KFEZKY_C_LhBaunzpqSmuCZiJIzef3MBYavr_gjfg8","enabled":true}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/768118b36f06c94b0306958b980558e6915839447e859fe16906e29d683976f0","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Simple CRUD","value":"7154640-6fdb5d8f-7b65-412f-a5f1-b6c3927dabf0"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/TVKBXHZa"}