-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,14 +181,14 @@ That's it, we're done! | |
|
||
./manage.py runserver | ||
|
||
You can now open the API in your browser at `http://127.0.0.1:8000/`, and view your new 'users' API. If you use the `Login` control in the top right corner you'll also be able to add, create and delete users from the system. | ||
You can now open the API in your browser at `http://3.26.21.10:8000/`, and view your new 'users' API. If you use the `Login` control in the top right corner you'll also be able to add, create and delete users from the system. | ||
|
||
You can also interact with the API using command line tools such as [`curl`](https://curl.haxx.se/). For example, to list the users endpoint: | ||
|
||
$ curl -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/ | ||
$ curl -H 'Accept: application/json; indent=4' -u admin:password http://3.26.21.10:8000/users/ | ||
[ | ||
{ | ||
"url": "http://127.0.0.1:8000/users/1/", | ||
"url": "http://3.26.21.10:8000/users/1/", | ||
"username": "admin", | ||
"email": "[email protected]", | ||
"is_staff": true, | ||
|
@@ -197,9 +197,9 @@ You can also interact with the API using command line tools such as [`curl`](htt | |
|
||
Or to create a new user: | ||
|
||
$ curl -X POST -d username=new -d [email protected] -d is_staff=false -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/ | ||
$ curl -X POST -d username=new -d [email protected] -d is_staff=false -H 'Accept: application/json; indent=4' -u admin:password http://3.26.21.10:8000/users/ | ||
{ | ||
"url": "http://127.0.0.1:8000/users/2/", | ||
"url": "http://3.26.21.10:8000/users/2/", | ||
"username": "new", | ||
"email": "[email protected]", | ||
"is_staff": false, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,14 +181,14 @@ That's it, we're done! | |
|
||
./manage.py runserver | ||
|
||
You can now open the API in your browser at `http://127.0.0.1:8000/`, and view your new 'users' API. If you use the `Login` control in the top right corner you'll also be able to add, create and delete users from the system. | ||
You can now open the API in your browser at `http://3.26.21.10:8000/`, and view your new 'users' API. If you use the `Login` control in the top right corner you'll also be able to add, create and delete users from the system. | ||
|
||
You can also interact with the API using command line tools such as [`curl`](https://curl.haxx.se/). For example, to list the users endpoint: | ||
|
||
$ curl -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/ | ||
$ curl -H 'Accept: application/json; indent=4' -u admin:password http://3.26.21.10:8000/users/ | ||
[ | ||
{ | ||
"url": "http://127.0.0.1:8000/users/1/", | ||
"url": "http://3.26.21.10:8000/users/1/", | ||
"username": "admin", | ||
"email": "[email protected]", | ||
"is_staff": true, | ||
|
@@ -197,9 +197,9 @@ You can also interact with the API using command line tools such as [`curl`](htt | |
|
||
Or to create a new user: | ||
|
||
$ curl -X POST -d username=new -d [email protected] -d is_staff=false -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/ | ||
$ curl -X POST -d username=new -d [email protected] -d is_staff=false -H 'Accept: application/json; indent=4' -u admin:password http://3.26.21.10:8000/users/ | ||
{ | ||
"url": "http://127.0.0.1:8000/users/2/", | ||
"url": "http://3.26.21.10:8000/users/2/", | ||
"username": "new", | ||
"email": "[email protected]", | ||
"is_staff": false, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
BACKEND_API=http://127.0.0.1:9000 | ||
BACKEND_API=http://3.26.21.10:9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters