# YYiki Interface

## Interface (behaviors)

### Transitive actions

#### /wiki/PAGEPATH

If the page at PAGEPATH exists, it renders the wiki page stored in the PAGEPATH. The PAGEPATH may contain subdirectories.

If the page does not exist, it redirects to /search/PAGEPATH

#### /edit/PAGEPATH

If the page exists, it shows the editing form pre-filled with the page stored in the PAGEPATH.

If it does not, it redirects to /create/PAGEPATH.

#### /create/PAGEPATH

If the page exists, it redirects to /edit/PAGEPATH.

If it does not, it creates a new page (file) and then redirects to /edit/PAGEPATH.

#### /search/PAGEPATH

If the exact match exists, it shows the link to it. Otherwise, show a hyperlink to /create/PAGEPATH.

At the same time, always show the fuzzy matches.

### Intransitive actions

#### /list/

It shows the list of pages in reverse chronological order.