We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Endpoints are used to handle requests; they specify what http verbs and paths are exposed by your API.
To create a new one:
$ pliny-generate endpoint todos
Each endpoint is implemented as a standard Sinatra app:
module Endpoints class Todos < Base namespace "/todos" do get do serialize Todo.all end post do status 201 serialize Todo.create(params) end end end end
Further reading:
Home
Basics
Diving in
Guides