Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thibaut Felten
projet-cdaw
Commits
e08affb8
Commit
e08affb8
authored
Nov 22, 2020
by
thibaut-felten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc
parent
363f3b3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
57 deletions
+0
-57
README.md
backend/MVC/README.md
+0
-57
No files found.
backend/MVC/README.md
View file @
e08affb8
...
...
@@ -17,60 +17,3 @@ request.
*
Update data :
`PUT /api.php/user/{id}`
<!-- LOGIN -->
# Login
Used to collect a Token for a registered User.
**URL**
:
`/api/login/`
**Method**
:
`POST`
**Auth required**
: NO
**Data constraints**
```
json
{
"username"
:
"[valid email address]"
,
"password"
:
"[password in plain text]"
}
```
**Data example**
```
json
{
"username"
:
"iloveauth@example.com"
,
"password"
:
"abcd1234"
}
```
## Success Response
**Code**
:
`200 OK`
**Content example**
```
json
{
"token"
:
"93144b288eb1fdccbe46d6fc0f241a51766ecd3d"
}
```
## Error Response
**Condition**
: If 'username' and 'password' combination is wrong.
**Code**
:
`400 BAD REQUEST`
**Content**
:
```
json
{
"non_field_errors"
:
[
"Unable to login with provided credentials."
]
}
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment