Skip to content

boosuro/upwork_api_test

Repository files navigation

Upwork Laravel /submit Endpoint API Test

API Endpoint Documentation with Swagger

Submission

Endpoint Validation Check

Submission

Developed with Laravel 10 and PHP 8.1

How to Setup

  1. Open your terminal and Clone the repository
   git clone https://github.com/boosuro/upwork_api_test.git
  1. Switch to the repo folder
    cd upwork_api_test
  1. Install all the dependencies using composer
    composer install
  1. Copy the example env file and make the required configuration changes in the .env file like Database Connection details
    cp .env.example .env
  1. Generate a new application key
    php artisan key:generate
  1. Run the database migrations (Set the database connection in .env before migrating)
    php artisan migrate
  1. Start the local development server
    php artisan serve
  1. Start the queue worker in new terminal tab to process the jobs that will be dispatched
    php artisan queue:work
  1. Open another terminal tap and generate the Swagger API documentation view
    php artisan l5-swagger:generate

After running the command above the Swagger API documentation server will be accessible at http://127.0.0.1:8000/api/documentation

The whole application runs at http://127.0.0.1:8000

  1. Run the unit tests with
    php artisan test

Make sure you set the correct database connection information before running the migrations

php artisan migrate
php artisan serve

Swagger API Testing

The /submit api can now be accessed at

http://127.0.0.1:8000/api/documentation

About

API test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published