Skip to content

worlanyodamalie/spacex-php-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpaceX PHP REST API

This API returns data on SpaceX capsules and launches

To test API:

  • Run composer install

     composer install
    
  • Create a .env file and add the following variable

 TOKEN_ISSUER=YOURVARIABLE

Start php server:

 php -S 127.0.0.1:8000 -t public

To test on Postman:

Generate Token by sending a GET request to this endpoint: http://127.0.0.1:8000/generateToken

Get capsule data by sending a POST request to this endpoint: http://127.0.0.1:8000/capsules

About

php rest api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages