-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from githubuniverseworkshops/arilivigni/self-s…
…ervice-prompting Refactor README and documentation structure
- Loading branch information
Showing
26 changed files
with
65 additions
and
18 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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
Binary file added
BIN
+115 KB
docs/6_CodespaceDjangoRESTFramework/6_1_CopilotPromptCodespaceEndpoint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+185 KB
docs/6_CodespaceDjangoRESTFramework/6_2_CopilotPromptCodespaceEndpointStep1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+126 KB
...6_CodespaceDjangoRESTFramework/6_2_CopilotPromptCodespaceEndpointStep2Step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Using the Codespace endpoint to access the Django REST Framework | ||
|
||
> NOTE: Skip this step if not using codespaces | ||
Type the following prompt in GitHub Copilot Chat: | ||
|
||
```text | ||
Let's do the following step by step | ||
- update #file:views.py to replace the return for the rest api url endpiints with the codespace url http://upgraded-space-happiness-959pr7vpgw3p7vv.github.dev/-8000.app.github.dev for django | ||
- Replace <codespace-name> with [REPLACE-THIS-WITH-YOUR-CODESPACE-NAME] | ||
- Run the Django server | ||
HTTP 200 OK | ||
Allow: GET, HEAD, OPTIONS | ||
Content-Type: application/json | ||
Vary: Accept | ||
{ | ||
"users": "http://localhost:8000/api/users/?format=api", | ||
"teams": "http://localhost:8000/api/teams/?format=api", | ||
"activities": "http://localhost:8000/api/activities/?format=api", | ||
"leaderboards": "http://localhost:8000/api/leaderboards/?format=api", | ||
"workouts": "http://localhost:8000/api/workouts/?format=api" | ||
} | ||
becomes | ||
HTTP 200 OK Allow: GET, HEAD, OPTIONS Content-Type: application/json Vary: Accept | ||
{ | ||
"users": "http://<codespace-name>-8000.app.github.dev/users/api/users/?format=api", | ||
"teams": "http://<codespace-name>-8000.app.github.dev/api/teams/?format=api", | ||
"activities": "http://<codespace-name>-8000.app.github.dev/api/activities/?format=api", | ||
"leaderboards": "http://<codespace-name>-8000.app.github.dev/api/leaderboards/?format=api", | ||
"workouts": "http://<codespace-name>-8000.app.github.dev/api/workouts/?format=api" | ||
} | ||
``` | ||
|
||
[Back :: Previous: Getting started - app frontend and backend creation](../4_BackendSettings/README.md | [Next :: Using the Codespace endpoint to access the Django REST Framework](../6_CodesapceDjangoRESTFramework/) |
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