Skip to content

gregumo/icaque-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icaque-api

INSTALL

sh install.sh

php -d memory_limit=-1 composer.phar install
bin/console doctrine:database:create
bin/console doctrine:schema:update --force
mkdir -p var/jwt
openssl genrsa -out var/jwt/private.pem -aes256 4096
openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem

SIGN IN

url: /login_check

requirements:

  • _username
  • _password

responses:

  • 200: OK
    • token: a Json Web Token
  • 401: Bad credentials
    • message

SIGN UP

url: /register/

requirements:

  • fos_user_registration_form[username]
  • fos_user_registration_form[email]
  • fos_user_registration_form[plainPassword][first]
  • fos_user_registration_form[plainPassword][second]
  • callback: the url to given in the email to confirm it.

optionals:

  • pattern: default :token. The pattern of the string to replace with the token in the callback url

responses:

  • 200: OK user is created but not enable yet. Need email confirmation.
    • no data
  • 201: CREATED user is created and enabled
    • token: a Json Web Token
  • 400: Bad credentials
    • global => array of global form errors
    • fields => object of fields errors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages