Well, I want the URL to be /register. Does it have to be "/registerUser"?
I currently have @Post("/register") in the AbstractHOASession, which is never explicitly included by main(), but only implicitly via HOAUserSessionImpl, which extends it. Does that put it at "/user/register"? When I try posting to that, I get 405 Method Not Allowed:
$ curl -vv -X POST "
http://localhost:8080/user/register" -H "Content-Type: application/json" --data '{"first":"First","last":"Last","email":"m@m.c","password":"foo","login":"first"}'
* Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> POST /user/register HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 80
>
* upload completely sent off: 80 out of 80 bytes
< HTTP/1.1 405 Method Not Allowed
< server: Baratine/1.0.1
< content-length: 0
< date: Thu, 13 Oct 2016 02:45:21 GMT
<
* Connection #0 to host localhost left intact
--
Rick Mann
rm...@latencyzero.com