Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • F FastAPI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Sitemule
  • Public
  • workshops
  • open source on IBM i
  • FastAPI
  • Wiki
  • Part 3b. Connecting my first service

Part 3b. Connecting my first service · Changes

Page history
Update Part 3b. Connecting my first service authored Oct 31, 2021 by Jens Melgard Churchill's avatar Jens Melgard Churchill
Hide whitespace changes
Inline Side-by-side
Part-3b.-Connecting-my-first-service.md
View page @ 9c7102e2
...@@ -26,7 +26,7 @@ Still, we shouldn't distribute valid credentials, so create a file called _confi ...@@ -26,7 +26,7 @@ Still, we shouldn't distribute valid credentials, so create a file called _confi
In vim type \`:e config.py\` - it will create a new empty buffer to wok with. In vim type \`:e config.py\` - it will create a new empty buffer to wok with.
``` ```plaintext
DB2_HOST= DB2_HOST=
DB2_USER= DB2_USER=
DB2_PASS= DB2_PASS=
...@@ -96,4 +96,14 @@ Save, and press **F5** in vim, just in case. ...@@ -96,4 +96,14 @@ Save, and press **F5** in vim, just in case.
## Good things to those who wait. ## Good things to those who wait.
Let's test if that works, switch to your browser, and head into the docs endpoint... Let's test if that works, switch to your browser, and head into the docs endpoint...
\ No newline at end of file
Seems our endpoint has appeared at least
![image](uploads/b8bccf8c57e94b05ecb5df2b2e52a784/image.png)
And clicking Execute, the database response!\
\
![image](uploads/c3834e661b6cd8d736ad1e28f9cfe297/image.png)
Awesome, now our service is talking with our database.
\ No newline at end of file
Clone repository
  • Part 1a. My first service
  • Part 1b. Testing my first service
  • Part 2a. Extending my first service
  • Part 2b. Organise my first service
  • Part 3a. Review my first service
  • Part 3b. Connecting my first service
  • Home