Skip to content

Latest commit

 

History

History
88 lines (83 loc) · 1.04 KB

DOCS.md

File metadata and controls

88 lines (83 loc) · 1.04 KB

Main link - ///

All requests are POST (JSON)

ROUTE:

/registration

Input:

{
'data':
	 {
     'name': 't1e2st',
	 'password': 'test',
	 'contraindications': 'testing, tree ewfw ef wef we f we f'
	 }
 }

Output

{
'status': 'success' or 'errore'
'message': 'User created' or 'User with this name already exist'
}

/edit

Input:

{
'data':
	 {
     'name': 't1e2st',
	 'password': 'test',
	 'contraindications': 'tree chocolate'
	 }
 }

Output

{
'status': 'success' or 'errore'
'message': True or False
}

/get

Input:

{
'data':
	{
    'name': 't1e2st',
	'password': 'test'
	}
 }

Output

{
'status': 'success' or 'errore'
'message': 'tree chocolate' or False
}

/upload (Delays may occur during execution)

Input:

{
'data':
    {
    'name': 'te2st',
    'password': 'test',
    'image': image_base64
    }
}

Output

{
'status': 'success' or 'errore'
'message': TrueAnswer or 'No image data provided'
}

It's all.