8000 GitHub - gistol/symfony_api at 3108318e348a5d1fbd4a85820851964d3dba0ae4
[go: up one dir, main page]

Skip to content

gistol/symfony_api

Repository files navigation

Symfony 5 CRUD API service

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"
}'

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%
0