Skip to content

Conversation

@inaki321
Copy link
Collaborator

No description provided.

@inaki321 inaki321 requested a review from Erugand November 18, 2025 15:40
@inaki321 inaki321 changed the title add which function to keep in WebAPIs docs: add which function to keep in WebAPIs Nov 18, 2025
@inaki321 inaki321 changed the title docs: add which function to keep in WebAPIs [website] add which function to keep in WebAPIs Nov 18, 2025
@inaki321 inaki321 changed the title [website] add which function to keep in WebAPIs [website] Add function to save on WebAPIs Nov 18, 2025
Copy link
Collaborator

@Erugand Erugand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we want to change the example to show that the recommended practice is to have a non-functional / endpoint like

@app.get("/")
def base():
return {"ok": True}

@app.get("/roll")
async def roll():
return f"You rolled a {random.randint(1, 6)}!"

Also, now that I read the section at the bottom deploying with --type flask it's less clear to me why I deploy with --type uvicorn, and yesterday you said we could also do --type fastapi and here --flask for a fastapi API

@inaki321 inaki321 requested a review from Erugand November 18, 2025 19:35
@inaki321 inaki321 merged commit 814f013 into main Nov 19, 2025
@inaki321 inaki321 deleted the getwebapi branch November 19, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants