All Projects → konshensx16 → symfony-todo-backend

konshensx16 / symfony-todo-backend

Licence: other
This is the result of all the videos that were created in the series that i published on the playlist. LINK BELOW

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to symfony-todo-backend

Sickchill
Less rage, more chill.
Stars: ✭ 2,166 (+1159.3%)
Mutual labels:  series, videos
response
Response HTTP package for Simfony, Laravel, Lumen and PHP 7 with standard REST API
Stars: ✭ 14 (-91.86%)
Mutual labels:  restful-api, symfony-api
restgoose
Model-driven REST API framework using decorators
Stars: ✭ 28 (-83.72%)
Mutual labels:  restful-api
vbo365-rest
Unofficial Self-Service Web Portal for Veeam Backup for Microsoft Office 365
Stars: ✭ 44 (-74.42%)
Mutual labels:  restful-api
rack-cargo
🚚 Batch requests for Rack apps (works with Rails, Sinatra, etc)
Stars: ✭ 17 (-90.12%)
Mutual labels:  restful-api
airad
Beego based Restful API service
Stars: ✭ 63 (-63.37%)
Mutual labels:  restful-api
wine
A lightweight and flexible framework to help build elegant web API
Stars: ✭ 39 (-77.33%)
Mutual labels:  restful-api
cpp-rest-api
RESTFul Web service by C++, implemented basic REST endpoints and RESTVerbs (GET,POST,PUT,DELETE).
Stars: ✭ 13 (-92.44%)
Mutual labels:  restful-api
papermerge-core
Papermerge RESTful backend structured as reusable Django app
Stars: ✭ 103 (-40.12%)
Mutual labels:  restful-api
public
BitDust project source codes : official Public Git repository (mirror on GitHub) : https://bitdust.io
Stars: ✭ 19 (-88.95%)
Mutual labels:  restful-api
swagger-brake
Swagger contract checker for breaking API changes
Stars: ✭ 49 (-71.51%)
Mutual labels:  restful-api
FeedSDK
Java SDK for downloading large gzipped (tsv) item feed files and applying filters for curation
Stars: ✭ 20 (-88.37%)
Mutual labels:  restful-api
daany
Daany - .NET DAta ANalYtics .NET library with the implementation of DataFrame, Time series decompositions and Linear Algebra routines BLASS and LAPACK.
Stars: ✭ 49 (-71.51%)
Mutual labels:  series
HttpServerLite
TCP-based simple HTTP and HTTPS server, written in C#.
Stars: ✭ 44 (-74.42%)
Mutual labels:  restful-api
Serverless-Saturdays
A repo that contains all the resources from the Serverless Saturdays series
Stars: ✭ 16 (-90.7%)
Mutual labels:  series
gorest
Go RESTful API starter kit with Gin, JWT, GORM (MySQL, PostgreSQL, SQLite), Redis, Mongo, 2FA, email verification, password recovery
Stars: ✭ 135 (-21.51%)
Mutual labels:  restful-api
youtube-downloader-python
You can download the YouTube video for free and convert it to any extension you want.
Stars: ✭ 20 (-88.37%)
Mutual labels:  videos
springboot-rest-api-angularjs-https
REST API https with Spring Boot and Angular JS. Use MySQL, Hibernate and Spring Security.
Stars: ✭ 38 (-77.91%)
Mutual labels:  restful-api
djburger
Framework for safe and maintainable web-projects.
Stars: ✭ 75 (-56.4%)
Mutual labels:  restful-api
apex-rest-route
A simple framework for building Restful API on Salesforce
Stars: ✭ 75 (-56.4%)
Mutual labels:  restful-api

Symfony Todo API


About the series

Playlist to all the videos This series goes over how to create a really BASIC Symfony API, yeah i didn't use API platform but that's okay, Below is a list of all the libraries that were used in the series.

Libraries

Mistakes were made

I admit that a lot of the time i either said something that was misleading or i used the incorrect thing, let me explain.

  • Sometimes i returned a status code of 200 instead of 201 when CREATING.
  • CLARIFICATION: PATCH vs PUT, i said that PATCH is used to update a part of the document, i might have said it's used to update just one field or property but that's not true, it's used to update multiple parts but not the entire document, otherwise why you would use PATCH instead of PUT, thign mistake happened because the example i was looking had just one property and i said it used to update just one.

Create a user manually (for testing)

This is a complete section by itself because it seems like couple of people have had their share of headaches because of this, to create a user manually and save it in the dabase here's what i personally do, IT WORKS

Encode the password using the symfony command

This is extremely important especially if you have no idea what the hell is happening, use the following command to generate a hashed version of your password and then jut copy the value that was printed to you and put in your database. Command: php bin/console security:encode-password You will be prompted to enter the plaintext password that you want to be hashed, after clicking the return key (enter key) the hashed key will be generated for you.

Fields that i care about in the database

There are three main fields that i care about, and they are the email, password, roles. Theses are the value that i enter for my testing user just to make sure that my authentication system works.

  • email: [email protected]
  • roles: ["ROLE_USER"]
  • password: $2y$13$XPRUnZV1V9NI7Tya/a7fh.8/86VIZTA3LIA.4mKeuadnFDy2HqFNu

NOTE ABOUT THE PASSWORD: This password is the hashed version of [000000], just six zeros, and i got this result because the algorithm in the security file is set to auto, if you have bcrypt it could be different if you have a2rgony or whatever the hell that one is called, you will get something different

Troubleshooting and stuff

Bad credentials error

This one error could happen because of multiple error due to the very bad error reporting of this library or whatever is responsible for that, the main thing to keep in mind is anything could lead to this type of problems

Examples

  • Database server not running will throw this error.
  • The password is not encoded in the correct way.
  • You didn't generate the public and private keys files correctly.
  • The passphrase used during public and private key generation does not match the one used in the configuration file.
  • TODO (Add more as more emails come in)

Contributing

This project is open for everyone, if you notice anything wrong with my code, or even this readme, any mistakes are welcome.

Questions

Maybe this should've been above with the Contribution section but doesn't matter, if you have any question i think it would be nice to create an issue (Please open an issue no matter how trivial you think the question is, no one will charge you money for it) that way people with similar questions can look them up.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].