Giter VIP home page Giter VIP logo

velents-task's Introduction

Laravel User Management API

This project is a Laravel API that provides functionalities to list, create, update, and delete users. It also includes authentication endpoints using OAuth2, allowing secure access to the API. The main purpose of this project is to assess your Laravel code structure and knowledge.

Getting Started To get started with this project, follow the instructions below:

Prerequisites :

  • PHP (>= 8.1)
  • Composer

Installation

Clone the repository to your local machine:

git clone https://github.com/harby-hub/Velents-Task.git
cd Velents-Task

Install the dependencies using Composer:

composer install

Configure the environment variables by copying the .env.example file:

cp .env.example .env

Update the .env file with your database

Generate the application key:

php artisan key:generate

Run the database migrations:

php artisan migrate

Start the development server:

php artisan serve

API Endpoints Authentication Endpoints

POST /oauth/token: Generate an access token by providing valid credentials.

User Endpoints

GET /api/Users: Retrieve a list of all users.

GET /api/Users/{id}: Retrieve a specific user by ID.

POST /api/Users: Create a new user.

PUT /api/Users/{id}: Update an existing user.

DELETE /api/Users/{id}: Delete a user.

Please note that the create, update, and delete methods are protected, and the user must be logged in to access them. The show endpoint is public and can be accessed by guest users.

Rate Usage Limit All endpoints have a rate usage limit of 20 requests per minute. If the limit is exceeded, the API will respond with an appropriate error message.

CORS Configuration Cross-Origin Resource Sharing (CORS) is enabled in this API, allowing requests from different origins to access the resources. This ensures that the API can be consumed by clients hosted on different domains.

Thank you!

Best regards, Mahmoud

velents-task's People

Contributors

harby-hub 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.