Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial openapi.yaml #1

Merged
merged 5 commits into from
Mar 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
swagger: '2.0'
info:
version: '1.0.0'
title: Fulcio
schemes: [http, https]
host: fulcio.sigstore.dev
basePath: /api/v1
securityDefinitions:
JWT:
type: apiKey
name: Authorization
in: header
paths:
/signingCert:
post:
security:
- JWT: []
description: 'create a cert, return content with a location header (with URL to CTL entry)'
operationId: signingCert
consumes:
lukehinds marked this conversation as resolved.
Show resolved Hide resolved
- "application/json"
produces:
- "application/json"
parameters:
- name: 'submitcsr'
in: 'body'
required: true
description: 'Submit CSR JWT Payload'
schema:
$ref: '#/definitions/Submit'
responses:
201:
description: Successful CSR Submit
schema:
$ref: '#/definitions/SubmitSuccess'
400:
description: Bad Request
401:
schema:
type: string
description: Unauthorized
500:
lukehinds marked this conversation as resolved.
Show resolved Hide resolved
schema:
type: string
description: Server error
definitions:
Submit:
type: string
format: byte
SubmitSuccess:
type: object
properties:
certificate:
type: string