Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating basic REST resource file(s) #406

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tugcanonbas
Copy link

I would like to offer a solution for issue #397 "Entity Generation" as much as I can.

I wanted to make a simple generator since I was tired of constantly creating files one by one since I was interested in Vapor.

As a developer who always aims to learn, I am open to improvement suggestions. I will continue to work to develop and improve the resource argument.

Simple usage for the feature for creating these files to:
./Sources/App/Models/User.swift
./Sources/App/Controllers/UserController.swift
./Sources/App/Migrations/CreateUser.swift

vapor resource User

Or overriding the existing files:

vapor resource User --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant