> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/programming/python/frameworks/fastapi/creating-http-operation-paths.md).

# Creating HTTP Operation paths

### GET request:

```python
@app.get("/")
def root():
    return {"message": "Hello World"}
```

### POST request:

```python
@app.post("/createpost")
def create_posts():
    return {"message": "successfully created post"}
```
