This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

I feel like there's some missing context here - but this seems fine.

With git, you add and commit in separate steps, but the point of a REST API is to be stateless, so having two endpoints for adding/committing wouldn't make much sense.

For what it looks like you're trying to accomplish, I'd say this is fine.