Create a user
Time to create a user account, eh?
curl -X POST "https://galaxy.scalar.com/user/signup" \  -H "Content-Type: application/json" \  -d '{    "name": "Marc",    "email": "marc@scalar.com",    "password": "i-love-scalar"  }'{
  "id": 1,
  "name": "Marc"
}{
  "type": "https://example.com/errors/bad-request",
  "title": "Bad Request",
  "status": 400,
  "detail": "The request was invalid."
}{
  "type": "https://example.com/errors/not-found",
  "title": "Unauthorized",
  "status": 401,
  "detail": "You are not authorized to access this resource."
}{
  "type": "https://example.com/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "You are not authorized to access this resource."
}{
  "type": "https://example.com/errors/conflict",
  "title": "Conflict",
  "status": 409,
  "detail": "The resource you are trying to access is in conflict."
}{
  "type": "https://example.com/errors/unprocessable-entity",
  "title": "Unprocessable Entity",
  "status": 422,
  "detail": "The request was invalid."
}Create a planet POST
Time to play god and create a new planet. What do you think? Ah, don’t think too much. What could go wrong anyway?
Delete a planet DELETE
This endpoint was used to delete planets. Unfortunately, that caused a lot of trouble for planets with life. So, this endpoint is now deprecated and should not be used anymore.
