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

Add post endpoint #18

Merged
merged 5 commits into from
May 13, 2020
Merged

Add post endpoint #18

merged 5 commits into from
May 13, 2020

Conversation

maxnovak
Copy link
Owner

@maxnovak maxnovak commented May 13, 2020

Description

Creates a post endpoint where users can make requests to the server. The request shape looks like this:

curl -X POST -d "{\"name\":\"foo\", \"email\":\"bar\", \"pattern\":\"word\", \"word\":\"bar\", \"year\":2000, \"repoName\":\"somesuch\"}" localhost:8080/make-art

and it will create a git repository on the server with the given word that the user passes in.

Related issue: #9

Context

Intentionally does not include matrix as a valid pattern, because that requires sending a file as well as a json payload and want to punt on that for now. 🤔 Although could just have the json payload be really big with there being a field for matrix link there is for word... Will do that in a new PR either way.

@maxnovak maxnovak linked an issue May 13, 2020 that may be closed by this pull request
2 tasks
@maxnovak maxnovak merged commit c63c9f7 into master May 13, 2020
@maxnovak maxnovak deleted the add-post-endpoint branch May 16, 2020 16:52
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.

Create REST endpoint for requests that accept fields
1 participant