API Platform Crash Course - Complete 3 Hour Course

preview_player
Показать описание
ℹ This is a 3 hour crash course on the API Platform which is intended to get you writing your own API's as quickly as possible.

💻Source code here:

👇Follow me on Social Media:

💕Show support:

Chapters:
0:00 Introduction
6:09 Creating API Resources
14:33 Persisting Data
26:51 Related Resources
41:51 Validation
49:05 Introducing Postman
56:07 API Meaning and Context
1:00:06 Operations
1:08:35 Filtering and Ordering
1:16:45 Pagination
1:25:21 Serialization
1:33:56 Sub-Resources
1:37:18 Testing
2:00:04 API Token Authentication
2:16:16 API Token Authenticator
2:35:30 Add Authentication to Tests
2:51:26 Role-base Access Control
2:57:24 Permissions

💻If you are just consuming your own API and you want traditional session authentication then check out this Symfonycasts tutorial:
Рекомендации по теме
Комментарии
Автор

Your voice is clearer than your previous videos. I was scared of watching it at first but it turned out great. Good job man.

mosesegboh
Автор

Great course, thank you very much Gary. But there's one thing missing for me. Secure settings for API documentation.

pavelpejsek
Автор

Thanks to Gary Clarke for providing the API platform tutorial, but I have a question, how to return the normal array composed of errno, errmsg, data?

markshope-mx
Автор

Gary, thanks always for these amazing videos. They always come at the right time.

olasunkanmiadeniji
Автор

Hi Gary, really love these videos, they are easy to follow and gets you up to speed quickly. Any chance the API-Platform Crash Course could be updated for version 3?

robkgilchrist
Автор

Great content, Gary, I am really enjoying your tutorials. Keep going!

abdelilahaassou
Автор

When I implement CsutomAuthentication, it works, but as soon az I uncheck the x-api-token or return false in Supports method, I still get the result of the api and the authentication is not checked. How can I do so, that always when client want to send request has to set header x-api-token ?

professor_baltazar
Автор

Thank you for the video! Could you record some lessons about GraphQl based on Api-Platform?

solvex
Автор

Hello Gary, I have a question, I'm not sure if you or someone else will respond since the video was released over a year ago. I have a question regarding SubResources. I've just migrated from API Platform v2.6 to 3.2. I can apply filters to, for example, /services/leads but I can't figure out how to create filters for my route /services/leads/{id}. If you could tell me how you managed to apply filters, I saw that you were able to do it. Thank you.

Alexandre-itgz
Автор

Gary, thank you for ths great content i hope you keep up

boughanmiseifeddine
Автор

Hello, great video ! i liked the "API Token Authentication" part, i'm tired with JWT on all tutorial . i have just 2 questions, when you set the token to a user after he create a account? and make a realtion oneToOne between user and apiToken is a good ideal? like we update the token in the same field etc... thank you ;)

mickaellutin
Автор

Brilliant Gary.Btw is it possible to write tests for my API using Symfony API platform?

tanzimibthesam
Автор

@Gary Clarke, operationCollections is not working in the latest API version. Now it's using #[ApiResource(operations:[new GetCollection(), ...])]

chrobaks
Автор

Hi Gary. I'm struggling a bit with the versions. How much differs the actual version of the api-platform with the one you are showing? As always thank you so much for the sharing of your knowledge and time.

Marco_Ris
Автор

Well thought out, nice pace and very nice intro to api platform. many thanks!

garethfuller
Автор

Hi Gary, please is there a tutorial for creating a custom endpoint and controller for performing custom operations?

mosesegboh
Автор

I'm not really sure why, but I can't seem to get my OrderFilter to work. Any clues?

vanthachhorn
Автор

Very good lessons, thanks a lot for this. One Question: Why you don't use "symfony console make:entity" instead of writing the entity code per hand? You are explaining every line in the code, what is very usefull, but is there a reason you don't use the command line from symfony for this?

chrobaks
Автор

Hi.
Can i also integrate API Platform into an existing API ?
And if yes... how?

benefiting_the_believer
Автор

i got this error : " "detail": "Unable to call method \"getOwner\" of object \"ApiPlatform\\Doctrine\\Orm\\Paginator\".", "

darkside