swagger-api / swagger-api/swagger-codegen

[Elixir] Add server generator for Phoenix

Open
#7,104 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: New generator Server: Elixir
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

We would like to add a new server generator for Elixir Phoenix

Similar to what we've done for PowerShell, Rust and other generators, we can first create a Petstore Phoenix server app with 3 endpoints listed below:

Then based on the Elixir Phoenix code, we'll start the reverse engineering process to create the generator and templates.

cc @mbuhot

Swagger-codegen version

Latest master

Suggest a fix/enhancement

If anyone wants to help out on this, please reply to let us know.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the analogous PowerShell and Rust generators, then inspect the Petstore definition in modules/swagger-codegen/src/test/resources/2_0/petstore.yaml and its three linked endpoint ranges. Done means a Phoenix server generator can produce a Petstore Phoenix app covering the listed GET, form POST, and JSON-body POST endpoints.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.