---
agentTools:
  projectIndex: https://devmatch.readme.io/llms.txt
---

# Get details about a project in the context of a candidate

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "DevMatch",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://94s1zv81nb.execute-api.us-west-2.amazonaws.com",
      "description": ""
    }
  ],
  "paths": {
    "/api/projects/{projectId}/users/{userId}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "userId",
            "description": "Id of the DevMatch user to get context about",
            "schema": {
              "type": "string"
            },
            "in": "path",
            "required": true
          },
          {
            "name": "projectId",
            "description": "Id of the project to get details about",
            "schema": {
              "type": "integer"
            },
            "in": "path",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResultsForUser"
                }
              }
            },
            "description": "Get the details for this user on this particular project."
          }
        },
        "operationId": "getProjectDetailsForUser",
        "summary": "Get details about a project in the context of a candidate"
      },
      "parameters": [
        {
          "name": "projectId",
          "schema": {
            "type": "integer"
          },
          "in": "path",
          "required": true
        },
        {
          "name": "userId",
          "schema": {
            "type": "string"
          },
          "in": "path",
          "required": true
        }
      ]
    }
  },
  "components": {
    "schemas": {
      "ProjectResultsForUser": {
        "title": "Root Type for ProjectDetailsForUser",
        "description": "The results of a candidate participating in a project.",
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "timestamp": {
                  "format": "date-time",
                  "type": "string"
                },
                "ip": {
                  "type": "string"
                }
              }
            }
          },
          "problems": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "problem_id": {
                  "format": "int32",
                  "type": "integer"
                },
                "score": {
                  "format": "int32",
                  "type": "integer"
                },
                "configuration": {
                  "type": "object"
                },
                "databag": {
                  "type": "object"
                },
                "title": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "time_limit": {
                  "format": "int32",
                  "type": "integer"
                },
                "open_time": {
                  "type": "string"
                },
                "ip": {
                  "type": "string"
                }
              }
            }
          },
          "results": {
            "type": "object",
            "properties": {
              "rank": {
                "format": "int32",
                "type": "integer"
              },
              "quartiles": {
                "type": "array",
                "items": {}
              }
            }
          },
          "submissions": {
            "description": "",
            "type": "array",
            "items": {}
          }
        },
        "example": {
          "events": [
            {
              "type": "PROJECT_OPEN",
              "timestamp": "2023-07-18T23:19:46Z",
              "ip": "67.161.114.113"
            }
          ],
          "problems": [
            {
              "problem_id": 1,
              "title": "a problem title",
              "description": "a problem description",
              "time_limit": 60,
              "open_time": "",
              "ip": "127.0.0.1",
              "score": 100,
              "databag": {},
              "configuration": {}
            }
          ],
          "results": {
            "rank": 1,
            "quartiles": []
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Projects",
      "description": ""
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 201,
      "2": 145,
      "3": 145,
      "4": 247,
      "5": 207,
      "6": 158,
      "7": 9,
      "8": 107,
      "9": 28,
      "10": 194,
      "11": 55
    }
  }
}
```