Getting Started with CodeDepot GraphQL API

To begin leveraging the full power of the CodeDepot GraphQL API, follow these initial steps:

  • GraphQL Endpoint:
https://api.codedepot.ai/graphql
  • Documentation: Familiarize yourself with the GraphQL API documentation for detailed information on available queries, mutations, and subscriptions.

  • Tools and Libraries: Consider using popular GraphQL clients like Apollo or Relay to simplify the development process and enhance your API interactions.

Example Query:

You can get the metrics of the model Megatron with all the information about the model like permissions, the last date that it was updated and furthermore.

query GetRepoModel($login: String!, $modelName: String!) {
    repository(login: $login, name: $modelName) {
        id
        name
        permissions
        isPrivate
        updatedAt
        defaultBranchRef {
            name
            target {
                metrics(first: 10) {
                    edges {
                        node {
                            ... on UnidentifiedError {
                                __typename
                            }
                            ... on MetricNotFound {
                                __typename
                                label
                                message
                            }
                            ... on Metric {
                                __typename
                                label
                                value {
                                    valueString
                                }
                                unit
                            }
                        }
                    }
                    metricCount
                }
            }
        }
    }
}

Further documentation on queries is forthcoming. Stay tuned for updates.

The CodeDepot Public GraphQL API is your gateway to advancing AI development through powerful, flexible data access and management. Explore the endless possibilities and start building more dynamic, efficient, and integrated AI solutions today.

CodeDepot GraphQL API