Skip to content

duaneandrea/symfony_api_tutorial

 
 

Repository files navigation

How to build simple CRUD API service with Symfony 5 (for beginners)

Please watch the whole video tutorial here

Create a customer:

curl --location --request POST 'http://localhost:8080/api/v1/customers' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "test.email@gmail.com",
    "phoneNumber": "+49116012345678"
}'

Create a product:

curl --location --request POST 'http://localhost:8080/api/v1/products' \
--header 'Content-Type: application/json' \
--data-raw '{
    "code": "test_code",
    "title": "Test title",
    "price": 1234
}'

Create a cart:

curl --location --request POST 'http://localhost:8080/api/v1/customers/cart' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customer": 1,
    "products": [
        1
    ],
    "dateTime": "2020-08-05 12:15:00"
}'

Other video tutorials

Code faster with Github Copilot

There is a video

Create a classic website using Symfony 5

There is a video

Delay "heavy" tasks in Symfony with component Messenger

There is a video

Delay heavy tasks in Symfony with kernel.terminate event to decrease response time

There is a video

Create Symfony 5 project with Docker and Postgres

There is a video

Design pattern "Chain of responsibility" (Symfony implementation)

There is a video

How to use data transfer objects (DTO) in Symfony API application

There is a branch and here is a video

How to build simple CRUD API service with Symfony 5 (for beginners)

There is a branch and here is a video

How to use Symfony Form Events in API service

There is a video

How to use object factories with Symfony Forms

There is a video

Dockerize WordPress

There is a video

Get trusted SSL certificate (https) for free with Let's Encrypt and Certbot

There is a video

About

Simple CRUD API service based on Symfony 5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.7%
  • Shell 6.2%
  • Twig 1.1%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy