Giter Site home page Giter Site logo

api-case's Introduction

API CASE Installation Steps

  • Clone Project
  • Copy .env.example as .env and edit it according to your needs
  • composer install
  • php artisan key:generate
  • composer update
  • php artisan migrate
  • php artisan passport:install
  • php artisan db:seed
  • php artisan spotify:cron
  • php artisan l5-swagger:generate
  • Documentation URL /api/documentation

User Authentication

Register User

Endpoint: /api/auth/register
Method: POST
Request Body:
Name (string)
Email (string)
Phone (string)
Password (string)
Description: Register a new user with the provided information.

User Login

Endpoint: /api/auth/login
Method: POST
Request Body:
Email (string)
Password (string)
Description: Authenticate the user and provide an access token for future API requests.

User Profile Management

My Profile

Endpoint: /api/user/my-profile
Method: GET
Authentication: Bearer Token
Description: Retrieve the user profile information.

Change Profile Photo

Endpoint: /api/user/update/image
Method: POST
Authentication: Bearer Token
Request Body: Multipart Form Data (Image Upload)
Description: Allow users to update their profile photo.

Spotify Integration

Get Artist's Tracks

Endpoint: /api/artist/{artistID}/tracks
Method: GET
Authentication: Bearer Token
Path Parameter: artistID (string)
Query Parameter: per_page (integer, optional)
Description: Retrieve a paginated list of tracks by a specific artist.

Get Artist's Albums

Endpoint: /api/artist/{artistID}/albums
Method: GET
Authentication: Bearer Token
Path Parameter: artistID (string)
Query Parameter: per_page (integer, optional)
Description: Retrieve a paginated list of albums by a specific artist.

Get Genres by Artist

Endpoint: /api/artist/{artistID}/genres
Method: GET
Authentication: Bearer Token
Path Parameter: artistID (string)
Query Parameter: genre (string, optional) (e.g., "Turkish Rap")
Query Parameter: per_page (integer, optional) (default: 10)
Description: Retrieve a paginated list of genres associated with a specific artist. Optionally filter by genre name.

Cron Job

Track Count Change Notification

Cron Schedule: Every 30 minutes
Command: php artisan php artisan spotify:cron
Description: Run a cron job to check if the number of tracks for an artist has changed on Spotify. If a change is detected, send an email notification or log the change.

api-case's People

Contributors

abdullahzubeyiryildiz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.