Skip to content

iamkhusainov7/iPresso-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Junior PHP developer task

Running and usage

  • step 1: in the command line run:
composer install
php bin/console doctrine:migrations:migrate
  • step 5: open postman or anyother tool for making REST API queries.
  • step 6. create your first user
  • step 7: check your email to verify the user
  • step 8: the command to run the checker via command line is:
php bin/console app:check_currency

API endpoints

POST

any client [/auth/user/registration]
has auth middleware [/currency/create]
must have header X-AUTH-TOKEN

POST /auth/user/registration

Create the user and subscribe for the currencies

Parameters

Name Required Type Description
firstname required string User firstname.
surname required string User lastname.
email required string User email.
phone_number required string User phone number. Can not start with 0 and must have 9 digits
bday required date Must have the format YYYY-MM-DD.
currencies optional array Array of currencies.

POST /currency/create

Parameters Parameters also applies to the previous endpoint param of currency. Must have header "X-AUTH-TOKEN" with a given token that was sent while email verification.

Name Required Type Description
currency-name required string curency code.
min required float Min value of the currency.
max required float Max value of the currency
bday required date Must have the format YYYY-MM-DD.
currencies optional array Array of currencies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published