An open API service indexing awesome lists of open source software.

https://github.com/migueldcdev/endpoints-app

A simple Elixir application featuring Plug.
https://github.com/migueldcdev/endpoints-app

Last synced: about 1 year ago
JSON representation

A simple Elixir application featuring Plug.

Awesome Lists containing this project

README

          

# Elixir Application with HTTP Endpoints Using Plug

A simple Elixir application with a couple of HTTP endpoints using Plug.

This app provides the following HTTP routes:

- `GET /ping`: Returns a simple pong message.
- `GET /number/:number`: Returns a random even or odd number depending on whether the parameter `number` is even or odd.
- `GET /_`: Returns a 404 error for any undefined routes.