REST API Backend for 18Biotro
- Authentication: JSON Webtoken (See authentication section)
- Return: JSON with a product attributes
- Authentication: JSON Webtoken (See authentication section)
- Request Headers: Content-Type:application/json
- Body: JSON containing product attributes
- Return: JSON with the new product inserted
- Authentication: JSON Webtoken (See authentication section)
- Return: JSON with the product id provided
- Authentication: JSON Webtoken (See authentication section)
- Request Headers: Content-Type:application/json
- Body: JSON containing product attributes to be modified
- Return: JSON with the new product modified
- Authentication: JSON Webtoken (See authentication section)
- Return: JSON with the product removed
- Authentication: JSON Webtoken (See authentication section)
- Return: JSON with a veille attributes
- Authentication: JSON Webtoken (See authentication section)
- Request Headers: Content-Type:application/json
- Body: JSON containing product attributes
- Return: JSON with the new veille inserted
- Authentication: JSON Webtoken (See authentication section)
- Return: JSON with the veille id provided
- Authentication: JSON Webtoken (See authentication section)
- Request Headers: Content-Type:application/json
- Body: JSON containing product attributes to be modified
- Return: JSON with the veille modified
- Authentication: JSON Webtoken (See authentication section)
- Return: JSON with the veille removed
The Authentication is based on JSON WEB TOKENS. Upon sign in, every user is given a seperate JSON token that need to be inserted in the header attribute called "Authorization".
Example: Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJiMDhmODZhZi0zNWRhLTQ4ZjItOGZhYi1jZWYzOTA0NjYwYmQifQ.-xN_h82PHVTCMA9vdoHrcZxH-x5mb11y1537t3rGzcM
- Authentication: NO AUTH
- Request Headers: Content-Type:application/json
- Body: JSON containing user attributes
- Return: JSON with the new user inserted
- Request Headers: Content-Type:application/json
- Body: JSON containing user credentials
- Return: WEBTOKEN
- Return: Verification Status
- Authentication: JSON Webtoken (See authentication section)
- Return: JSON with the user requested
- denomination_commune
- denomination_commerciale
- code_nomenclature
- code_LPPR
- classe_DM
- directive_UE
- num_org_notified
- date_first_market
- fabricant_DM
- composition_dispo
- domaine_indications
- DM_steril
- mode_steril
- cons_stock_condition
- tech_sec
- bio_sec
- mode_emploi
- indications
- precautions
- contre_indications
- extra_info
- username
- password HASH THE PASSWORD IN SHA256 BEFORE SUBMITTING REQUESTS
- phone
- website
- address
- first_name
- last_name
- is_verified
- title
- body
- image