Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
2 Hrs
14 Min
41 Seg
Curso de API REST con Laravel

Curso de API REST con Laravel

Profesor Italo Morales F

Profesor Italo Morales F

Lo que aprenderás sobre API REST con Laravel

1/18
Resources
Transcript

What is an API and what is it used for?

The world of web development is constantly evolving, and one of the most relevant skills is the use and creation of APIs. APIs, or application programming interfaces, are tools that allow different systems to communicate with each other. Thanks to them, we can make mobile applications connect to a server to provide the necessary data in an organized and efficient way. In the context of web development, an API makes it easier for different devices to interact with applications developed on a server, obtaining or sending information as needed.

Why is API versioning important?

API versioning plays a crucial role, especially when upgrades or changes are made to server-side code. By creating a new version of an API, we allow older applications to continue working with the original version, while updated versions can benefit from the latest enhancements. This approach is essential to avoid breakage in applications that depend on specific API versions.

What is a private API?

During development, the need may arise to create private APIs, which restrict access to data and require a login in order to consume the information. These interfaces ensure that only authorized users can access sensitive data, increasing security and control over how data is handled and distributed.

Types of access to an application

There are several methods for accessing an application developed in Laravel:

  1. Web access: This is the most common method, where users interact with the application through a browser.

  2. API access: This type of access is essential for mobile applications and other systems that do not operate directly in a browser, allowing them to consume the necessary information directly from the server.

  3. Terminal access: Tools such as PHP Artisan are examples of terminal access, mainly used by developers to perform configuration and internal operations on the application.

What is a resource and how is it managed in an API?

In the context of APIs, a resource is the structured representation of a data entity in the application. For example, a blog post could be considered a resource, including its title, content, and publication date. APIs organize and provision these resources so that other systems can efficiently consume them. In addition, when dealing with multiple resources, we talk about collections, where for example, a collection of ten posts can be paginated for ease of management and presentation.

Preview and practice

This course on building APIs with Laravel is designed to take you step-by-step through the process, from basic concepts to more complex implementations. We encourage you to continue learning, immersing yourself in the world of APIs and applying this knowledge in your personal or professional projects. See you in the next lessons!

Contributions 30

Questions 8

Sort by:

Want to see more contributions, questions and answers from the community?

Se oye genial ;casi un mes esperando estos cursos del profe italomorales

Mucho éxito

Ufff sí, este curso lo estaba esperando mucho, siempre quise aprender bien a hacer API’s con Laravel, así que allá vamos!
.
Les recomiendo mucho que se tomen el Curso de Postman porque les puede dar más información a detalle sobre qué es un API y cómo se interactua con ella 😄

Por suerte lo da Italo agradecido con el de arriba

<h3>Versionado:</h3>

Tenemos un API en el servidor y esta API es consumida por ciertos dispositivos, cuando hay necesidad de incrementar la info con la que cuenta la API se crea una versión nueva para agregar esa info y conectar nuevos dispositivos a la API sin desconectar los dispositivos de la anterior versión que ya la estaba consumiendo.

<h3>API Privada</h3>

Todo lo anterior mencionado solo se agrega un login para acceder a la API

Existen varias formas de acceder a la información la que hemos usado hasta ahora es por un sistema web, en la cual el navegador es el que nos ayuda a mostrar la info, en una API es diferente puesto que esta misma sera consumida por otros sistemas.
Las diferenes forma de acceder a un sistema son

Por medio de un sistema web (la que hemos aprendido hasta ahora en los cursos)
Acceso por medio de una API
Comandos en terminal

Un recurso es la información estructurada de una base de datos (como ya hemos visto en los JSON)
Colección de datos
Es muchos registros agrupados, por ejemplo podemos tener una coleccion de post agrupados y todo mediante una consulta.

Italomorales mi profesor preferido 😄

Creo que es mejor usar una api en vez de livewire

Un recurso es la información estructurada de cualquier registro en nuestra base de datos.
Colección de datos: muchos datos / conjunto de recursos .

Hola, utilizando ajax javascript + php + mysql; un número de consultas ( utilizando ajax, con llamadas a un controlador php que devuelve un JSON) que se encuentran dentro de un ciclo se realizan sin problema, pero de repente aparecen errores 403 y me cierra la sesión; he revisado los permisos de la carpeta donde se encuentra el archivo que contiene la consulta, al igual que los permisos sobre este archivo (.htaccess), he añadido en el archivo php controlador lo necesario para CORS, he revisado my.cnf. Nada ha funcionado … por favor AYUDA!!!

Al fiiiin! 🎉🎉🎉

Esta genial!
Buena

(Y)

No puede ser que le entendí más Italo que a mi profe de carrera, wow

Italo es un realmente un muy buen profesor.

Emocionado para iniciar este curso de API con Lararel!

¿De dónde me suena su voz?

A iniciar el curso para mejorar conocimientos con este gran profesor!

Uff me encanta la elegancia y simplicidad de laravel por eso me emociona este curso. El profe se viste para la ocación 😂

10 de 10 👌

Italo es un crack

Se puso bueno el curso que tal explicacion grande profe

Lo sigo desde mucho, paisano y me alegro verlo

iniciando este tan ansiado curso

a comienzo de este año no sabia nada de laravel, ahorita ya estoy haciendo cosas que me ayudan a optimizar mi trabajo, gracias profe y a los compañeros que con sus aportes ayudan a solucionar dudas.

profe muchas gracias por sus cursos. realmente he avanzado mucho.

Iniciando este curso con gran expectativa. Amo a Laravel y respeto mucho a Italo Morales.

Ya hacia falta un curso así 😃

Muy buen curso, gracias Italo Morales!! Muy claro y muy bien explicado.

Un mes esperando que estuviera disponible y hoy por fin…