Method: Archangel::Backend::ProfilesController#edit

Defined in:
app/controllers/archangel/backend/profiles_controller.rb

#editObject

Edit backend profile

Formats

HTML, JSON

Request

GET /backend/profile
GET /backend/profile.json

Response

{
  "id": 123,
  "site_id": 123,
  "name": "First Last",
  "username": "my_username"
  "role": "admin",
  "avatar": {
    "url": "/uploads/file.png",
    "large": {
      "url": "/uploads/large_file.png"
    },
    "medium": {
      "url": "/uploads/medium_file.png"
    },
    "small": {
      "url": "/uploads/small_file.png"
    },
    "tiny": {
      "url": "/uploads/tiny_file.png"
    }
  },
  "email": "[email protected]",
  "invitation_token": null,
  "invitation_created_at": null,
  "invitation_sent_at": null,
  "invitation_accepted_at": null,
  "invitation_limit": null,
  "invited_by_type": null,
  "invited_by_id": null,
  "invitations_count": 0,
  "deleted_at": null,
  "created_at": "YYYY-MM-DDTHH:MM:SS.MSZ",
  "updated_at": "YYYY-MM-DDTHH:MM:SS.MSZ"
}


112
113
114
115
116
# File 'app/controllers/archangel/backend/profiles_controller.rb', line 112

def edit
  profile = resource_content

  respond_with profile
end