...

Source file src/github.com/sigstore/timestamp-authority/pkg/generated/restapi/embedded_spec.go

Documentation: github.com/sigstore/timestamp-authority/pkg/generated/restapi

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // Copyright 2022 The Sigstore Authors.
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //     http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  //
    17  
    18  package restapi
    19  
    20  // This file was generated by the swagger tool.
    21  // Editing this file might prove futile when you re-run the swagger generate command
    22  
    23  import (
    24  	"encoding/json"
    25  )
    26  
    27  var (
    28  	// SwaggerJSON embedded version of the swagger document used at generation time
    29  	SwaggerJSON json.RawMessage
    30  	// FlatSwaggerJSON embedded flattened version of the swagger document used at generation time
    31  	FlatSwaggerJSON json.RawMessage
    32  )
    33  
    34  func init() {
    35  	SwaggerJSON = json.RawMessage([]byte(`{
    36    "schemes": [
    37      "http"
    38    ],
    39    "swagger": "2.0",
    40    "info": {
    41      "description": "Timestamp Authority provides an RFC3161 timestamp authority.",
    42      "title": "Timestamp Authority",
    43      "version": "0.0.1"
    44    },
    45    "host": "timestamp.sigstore.dev",
    46    "paths": {
    47      "/api/v1/timestamp": {
    48        "post": {
    49          "consumes": [
    50            "application/timestamp-query",
    51            "application/json"
    52          ],
    53          "produces": [
    54            "application/timestamp-reply"
    55          ],
    56          "tags": [
    57            "timestamp"
    58          ],
    59          "summary": "Generates a new timestamp response and creates a new log entry for the timestamp in the transparency log",
    60          "operationId": "getTimestampResponse",
    61          "parameters": [
    62            {
    63              "name": "request",
    64              "in": "body",
    65              "required": true,
    66              "schema": {
    67                "type": "string",
    68                "format": "binary"
    69              }
    70            }
    71          ],
    72          "responses": {
    73            "201": {
    74              "description": "Returns a timestamp response and the location of the log entry in the transprency log",
    75              "schema": {
    76                "type": "string",
    77                "format": "binary"
    78              }
    79            },
    80            "400": {
    81              "$ref": "#/responses/BadContent"
    82            },
    83            "501": {
    84              "$ref": "#/responses/NotImplemented"
    85            },
    86            "default": {
    87              "$ref": "#/responses/InternalServerError"
    88            }
    89          }
    90        }
    91      },
    92      "/api/v1/timestamp/certchain": {
    93        "get": {
    94          "description": "Returns the certificate chain for timestamping that can be used to validate trusted timestamps",
    95          "consumes": [
    96            "application/json"
    97          ],
    98          "produces": [
    99            "application/pem-certificate-chain"
   100          ],
   101          "tags": [
   102            "timestamp"
   103          ],
   104          "summary": "Retrieve the certificate chain for timestamping that can be used to validate trusted timestamps",
   105          "operationId": "getTimestampCertChain",
   106          "responses": {
   107            "200": {
   108              "description": "The PEM encoded cert chain",
   109              "schema": {
   110                "type": "string"
   111              }
   112            },
   113            "404": {
   114              "$ref": "#/responses/NotFound"
   115            },
   116            "default": {
   117              "$ref": "#/responses/InternalServerError"
   118            }
   119          }
   120        }
   121      }
   122    },
   123    "definitions": {
   124      "Error": {
   125        "type": "object",
   126        "properties": {
   127          "code": {
   128            "type": "integer"
   129          },
   130          "message": {
   131            "type": "string"
   132          }
   133        }
   134      }
   135    },
   136    "responses": {
   137      "BadContent": {
   138        "description": "The content supplied to the server was invalid",
   139        "schema": {
   140          "$ref": "#/definitions/Error"
   141        }
   142      },
   143      "InternalServerError": {
   144        "description": "There was an internal error in the server while processing the request",
   145        "schema": {
   146          "$ref": "#/definitions/Error"
   147        }
   148      },
   149      "NotFound": {
   150        "description": "The content requested could not be found"
   151      },
   152      "NotImplemented": {
   153        "description": "The content requested is not implemented"
   154      }
   155    }
   156  }`))
   157  	FlatSwaggerJSON = json.RawMessage([]byte(`{
   158    "schemes": [
   159      "http"
   160    ],
   161    "swagger": "2.0",
   162    "info": {
   163      "description": "Timestamp Authority provides an RFC3161 timestamp authority.",
   164      "title": "Timestamp Authority",
   165      "version": "0.0.1"
   166    },
   167    "host": "timestamp.sigstore.dev",
   168    "paths": {
   169      "/api/v1/timestamp": {
   170        "post": {
   171          "consumes": [
   172            "application/json",
   173            "application/timestamp-query"
   174          ],
   175          "produces": [
   176            "application/timestamp-reply"
   177          ],
   178          "tags": [
   179            "timestamp"
   180          ],
   181          "summary": "Generates a new timestamp response and creates a new log entry for the timestamp in the transparency log",
   182          "operationId": "getTimestampResponse",
   183          "parameters": [
   184            {
   185              "name": "request",
   186              "in": "body",
   187              "required": true,
   188              "schema": {
   189                "type": "string",
   190                "format": "binary"
   191              }
   192            }
   193          ],
   194          "responses": {
   195            "201": {
   196              "description": "Returns a timestamp response and the location of the log entry in the transprency log",
   197              "schema": {
   198                "type": "string",
   199                "format": "binary"
   200              }
   201            },
   202            "400": {
   203              "description": "The content supplied to the server was invalid",
   204              "schema": {
   205                "$ref": "#/definitions/Error"
   206              }
   207            },
   208            "501": {
   209              "description": "The content requested is not implemented"
   210            },
   211            "default": {
   212              "description": "There was an internal error in the server while processing the request",
   213              "schema": {
   214                "$ref": "#/definitions/Error"
   215              }
   216            }
   217          }
   218        }
   219      },
   220      "/api/v1/timestamp/certchain": {
   221        "get": {
   222          "description": "Returns the certificate chain for timestamping that can be used to validate trusted timestamps",
   223          "consumes": [
   224            "application/json"
   225          ],
   226          "produces": [
   227            "application/pem-certificate-chain"
   228          ],
   229          "tags": [
   230            "timestamp"
   231          ],
   232          "summary": "Retrieve the certificate chain for timestamping that can be used to validate trusted timestamps",
   233          "operationId": "getTimestampCertChain",
   234          "responses": {
   235            "200": {
   236              "description": "The PEM encoded cert chain",
   237              "schema": {
   238                "type": "string"
   239              }
   240            },
   241            "404": {
   242              "description": "The content requested could not be found"
   243            },
   244            "default": {
   245              "description": "There was an internal error in the server while processing the request",
   246              "schema": {
   247                "$ref": "#/definitions/Error"
   248              }
   249            }
   250          }
   251        }
   252      }
   253    },
   254    "definitions": {
   255      "Error": {
   256        "type": "object",
   257        "properties": {
   258          "code": {
   259            "type": "integer"
   260          },
   261          "message": {
   262            "type": "string"
   263          }
   264        }
   265      }
   266    },
   267    "responses": {
   268      "BadContent": {
   269        "description": "The content supplied to the server was invalid",
   270        "schema": {
   271          "$ref": "#/definitions/Error"
   272        }
   273      },
   274      "InternalServerError": {
   275        "description": "There was an internal error in the server while processing the request",
   276        "schema": {
   277          "$ref": "#/definitions/Error"
   278        }
   279      },
   280      "NotFound": {
   281        "description": "The content requested could not be found"
   282      },
   283      "NotImplemented": {
   284        "description": "The content requested is not implemented"
   285      }
   286    }
   287  }`))
   288  }
   289  

View as plain text