Skip to content

FeMicheletti/Back-FavoriteMusic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

API-Laravel

Information

This API is just for training and learning about Laravel.
All of this is documented in OpenAPI (located in the root).

Methods

GET

  • List all favorite music

POST

  • Create a new favorite music

PUT

  • Update all of an existing music

PATCH

  • Update a part of an existing music

DELETE

  • Delete a music

To test, it is necessary to create the table

You can use php artisan migrate or:

MySQL Query
CREATE TABLE `favorite_music` (
    `id` BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    `name` VARCHAR(255) NOT NULL,
    `artist` VARCHAR(255) NOT NULL,
    `tier` INT NOT NULL
);

⚠️Ensure your testing environment is configured in the .env file.

About

My first API in Laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published