List of libraries
GET/libraries
The operation allows you to retrieve a collection of all available libraries. A library constitutes a collection of pre-written and reusable code components, functions, and modules that enhance software development efficiency.
Request
Query Parameters
Header Parameters
CodeNOW API Key
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
List of libraries
- application/vnd.codenow.v1+json
- Schema
- Example (from schema)
Schema
Array [
]
The unique identifier of the library. Based on the user-defined library name.
The user-friendly name of the library. It allows users to provide a clear and descriptive name that helps in identifying and distinguishing different libraries easily. The field accepts free text with alphanumeric and special characters.
The detailed textual description of the library. Allows users to add additional context, notes, or any relevant information about the purpose, usage, or characteristics of the library.
Possible values: [CREATING
, READY
, FAILED
, DELETING
]
State of the library
CREATING - Library is being created
READY - Library is ready
FAILED - Library creation failed
DELETING - Library is being deleted
The name of the build system used for compiling, testing, and packaging code within the library.
error
object
nullable
Error details, if any, encountered during the library creation process.
scm
object
required
An object containing Source Code Management (SCM) information, including provider, repository/project ID, HTTP clone URL, and SSH clone URL.
The name of the SCM provider associated with the library, facilitating version control and collaborative software development.
CI Provider type (gihub, codenow, etx)
The unique identifier of the library repository or project within the SCM system.
The SSH address string required for performing a Git clone operation on the repository linked to the library.
The HTTP address string required for performing a Git clone operation on the repository linked to the library.
template
object
required
Template specification for the library.
Possible values: non-empty
An internal identifier of the scaffold selected for library creation.
It includes information about the selected language, build tool and framework, if specified.
Available templates can be obtained through the:
/templates/application_components
endpoint for application component or
/templates/libraries
endpoint for library
Possible values: non-empty
The desired version of the selected template.
Available templates can be obtained through the:
/templates/application_components
endpoint for application component or
/templates/libraries
endpoint for library
properties
object
A map of properties ("key": "value") required for proper template configuration.
Available templates can be obtained through the:
/templates/application_components
endpoint for application component or
/templates/libraries
endpoint for library
settings
object
Basic settings for the component
ciSettings
object
CI settings for the component
Associated CI provider
codenow - uses CodeNow CI
external - uses external CI
A boolean flag indicating whether pipeline settings are globally configured for the entire repository. If set to false, the pipeline settings are independently customized for individual branches.
[
{
"id": "string",
"name": "string",
"description": "string",
"state": "CREATING",
"buildSystem": "string",
"error": {
"code": "string",
"message": "string"
},
"scm": {
"provider": "string",
"providerType": "string",
"id": "string",
"sshAddress": "string",
"httpAddress": "string"
},
"template": {
"id": "string",
"version": "string",
"properties": {}
},
"settings": {
"contextPath": "string",
"maxQueueSize": 0
},
"ciSettings": {
"provider": "string",
"globalPipelinesConfiguration": true
}
}
]
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
Resource not found.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.