Skip to content

Doubtfire API Documentation

API: Admin

admin : Operations about admin This markdown document provides detailed documentation for the “admin” API endpoints, including their URLs, methods, parameters (if any), responses, and example requests using curl

This “admin” API has the following operations.

  • PUT: /api/admin/overseer_images/{id}/pull_image
  • GET: /api/admin/overseer_images
  • POST: /api/admin/overseer_images
  • DELETE: /api/admin/overseer_images/{id}
  • PUT: /api/admin/overseer_images/{id}

PUT: Pull Overseer Image

PUT /api/admin/overseer_images/{id}/pull_image

  • URL: /api/admin/overseer_images/{id}/pull_image

  • Method: PUT

  • Parameters:

    ParameterDescriptionParameter TypeData TypeMandatory
    idOverseer image IDpathintegerYes
    UsernameUser usernameheaderstringYes
    Auth_TokenAuthentication tokenheaderstringYes
  • Response: 200 OK

  • Example Request:

    Terminal window
    curl -X PUT --header 'Accept: application/json' --header 'Username: admin' --header 'Auth_Token: rrK8BdRfxof9RrJGuk5n' 'http://localhost:3000/api/admin/overseer_images/1/pull_image'
  • Response body:

    {
    "id": 1,
    "name": "Example Image",
    "tag": "example/tag",
    "status": "pulled"
    }

GET: Retrieve All Overseer Images

GET /api/admin/overseer_images

  • URL: /api/admin/overseer_images

  • Method: GET

  • Parameters:

    ParameterDescriptionParameter TypeData TypeMandatory
    UsernameUser usernameheaderstringYes
    Auth_TokenAuthentication tokenheaderstringYes
  • Response: 200 OK

  • Example Request:

    Terminal window
    curl -X GET --header 'Accept: application/json' --header 'Username: admin' --header 'Auth_Token: rrK8BdRfxof9RrJGuk5n' 'http://localhost:3000/api/admin/overseer_images'
  • Response Body:

    [
    {
    "id": 1,
    "name": "Example Image",
    "tag": "example/tag"
    },
    {
    "id": 2,
    "name": "Another Image",
    "tag": "another/tag"
    }
    ]

POST: Add an Overseer Image

POST /api/admin/overseer_images

  • URL: /api/admin/overseer_images

  • Method: POST

  • Parameters:

    ParameterDescriptionParameter TypeData TypeMandatory
    overseer_imageThe overseer image objectbodyhashYes
    overseer_image.nameThe name to display for this imagebodystringYes
    overseer_image.tagThe tag used to retrieve from container repobodystringYes
    UsernameUser usernameheaderstringYes
    Auth_TokenAuthentication tokenheaderstringYes
  • Response: 201

  • Example Request:

    Terminal window
    curl -X POST --header 'Content-Type: application/json' --header 'Username: admin' --header 'Auth_Token: rrK8BdRfxof9RrJGuk5n'-d '{
    "overseer_image": {
    "name": "Example Image",
    "tag": "example/tag"
    }
    }' 'http://localhost:3000/api/admin/overseer_images'
  • Response Body:

    {
    "id": 1,
    "name": "Example Image",
    "tag": "example/tag"
    }

DELETE: Delete an Overseer Image

DELETE /api/admin/overseer_images/{id}

  • URL: /api/admin/overseer_images/{id}

  • Method: DELETE

  • Parameters:

    ParameterDescriptionParameter TypeData TypeMandatory
    idOverseer image IDpathintegerYes
    UsernameUser usernameheaderstringYes
    Auth_TokenAuthentication tokenheaderstringYes
  • Response:

    • 204
  • Example Request:

    Terminal window
    curl -X DELETE --header 'Username: admin' --header 'Auth_Token: rrK8BdRfxof9RrJGuk5n' 'http://localhost:3000/api/admin/overseer_images/1'
  • Response Body: Overseer image deleted


PUT: Update an Overseer Image

PUT /api/admin/overseer_images/{id}

  • URL: /api/admin/overseer_images/{id}

  • Method: PUT

  • Parameters:

    ParameterDescriptionParameter TypeData TypeMandatory
    idOverseer image IDpathintegerYes
    overseer_imageThe overseer image objectbodyhashYes
    overseer_image.nameThe name to display for this imagebodystringNo
    overseer_image.tagThe tag used to retrieve from container repobodystringNo
    UsernameUser usernameheaderstringYes
    Auth_TokenAuthentication tokenheaderstringYes
  • Response: 200 OK

  • Example Request:

    Terminal window
    curl -X PUT --header 'Content-Type: application/json' --header 'Username: admin' --header 'Auth_Token: rrK8BdRfxof9RrJGuk5n'
    -d '{
    "overseer_image": {
    "name": "Updated Example Image",
    "tag": "updated/tag"
    }
    }' 'http://localhost:3000/api/admin/overseer_images/1'
  • Response Body:

    {
    "id": 1,
    "name": "Updated Example Image",
    "tag": "updated/tag"
    }