Skip to content

Commit

Permalink
Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonne-kovacs committed Apr 1, 2022
1 parent 6cf3cec commit 33231af
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 406 deletions.
2 changes: 0 additions & 2 deletions src/.npmrc

This file was deleted.

254 changes: 6 additions & 248 deletions src/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ info:
version: 1.0.0
servers:
- url: /
- url: http://95.211.3.244:3333
- url: http://95.211.3.249:3333
- url: http://95.211.3.250:3333
- url: http://95.211.3.251:3333
- url: process.env.BACKPLANE_URL0
- url: process.env.BACKPLANE_URL
- url: process.env.BACKPLANE_URL2
- url: process.env.BACKPLANE_URL3
variables: {}
security:
- bearerAuth: []
Expand Down Expand Up @@ -251,7 +251,7 @@ paths:
/deploy_signed_transaction:
post:
tags:
- Deploy signed Transaction
- Agreement
summary: Deploy signed transaction
requestBody:
content:
Expand All @@ -268,26 +268,6 @@ paths:
$ref: '#/components/schemas/transaction_object'
security:
- bearerAuth: []
/provide_signed_resolution:
post:
tags:
- Conflict Resolutionn
summary: Verify a signed resolution
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/signed_resolution'
required: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/transaction_object'
security:
- bearerAuth: []
components:
schemas:
state:
Expand Down Expand Up @@ -433,7 +413,7 @@ components:
type: object
properties:
IntendedUse:
type: boolean
type: object
properties:
processData:
type: boolean
Expand Down Expand Up @@ -519,13 +499,6 @@ components:
type: integer
issuerId:
type: string
signed_resolution:
type: object
properties:
proof:
type: string
example:
proof: 'eyJhbGciOiJFUzI1NiJ9.eyJwcm9vZlR5cGUiOiJyZXNvbHV0aW9uIiwiZGF0YUV4Y2hhbmdlSWQiOiJTTmg5eUtYYjJlaGxWSFJZQkllay16Z1pVaDJtU1NvMWpwbGg3SWEtNHlRIiwiaWF0IjoxNjQ2OTUxNjM1LCJpc3MiOiJ7XCJhbGdcIjpcIkVTMjU2XCIsXCJjcnZcIjpcIlAtMjU2XCIsXCJkXCI6XCJ1Z1NpSTlJTEdnTWM1TmMwbkFhM3FGTjNBTjBvR2JhMzNJQWFrSHFkdm1nXCIsXCJrdHlcIjpcIkVDXCIsXCJ4XCI6XCJMNldmVlhHYkgwaW82SnBtOTRTMWxwZGk2eUd0VDFPbVo2NUFfa1NfaGs4XCIsXCJ5XCI6XCI2WUUwb1BPcFdCcUM3NURfanRKVWZ5NWxzWGxHak81ZzZRWGl2RHdNREtjXCJ9Iiwic3ViIjoie1wiYWxnXCI6XCJFUzI1NlwiLFwiY3J2XCI6XCJQLTI1NlwiLFwia3R5XCI6XCJFQ1wiLFwieFwiOlwiVlhzQnVPWndWamhvZkpWNGtBaGJhNnduMUVZRHdVSWtnWGIyZlZuTDh4Y1wiLFwieVwiOlwiaDRmTDVRdjRFWXQ3WGRLcWRJeTFaSnM0X1FXWURrWTF6VXpTb0k2MU43WVwifSIsInJlc29sdXRpb24iOiJkZW5pZWQiLCJ0eXBlIjoiZGlzcHV0ZSJ9.TtxUm3E6LfmwEI74cr6RO4-nw-xcFaeARYOZ4z1dBVlc_JU0mCv0Ftr9tCDhggfLiJqb4RIPiNfIytFZMUbx-g'
active_agreements:
type: array
items:
Expand All @@ -537,218 +510,3 @@ components:
bearerFormat: JWT


# /create_agreement:
# post:
# tags:
# - Agreement
# summary: Create agreement
# requestBody:
# content:
# application/json:
# schema:
# $ref: '#/components/schemas/template'
# required: true
# responses:
# '200':
# description: OK
# content:
# application/json:
# schema:
# $ref: '#/components/schemas/agreement_id'
# security:
# - bearerAuth: []
# /update_agreement/{agreement_id}:
# post:
# tags:
# - Agreement
# summary: Update agreement
# parameters:
# - name: agreement_id
# in: path
# required: true
# style: simple
# explode: false
# schema:
# type: string
# requestBody:
# content:
# application/json:
# schema:
# $ref: '#/components/schemas/template'
# required: true
# responses:
# '200':
# description: OK
# content:
# application/json:
# schema:
# $ref: '#/components/schemas/update_msg'
# security:
# - bearerAuth: []
# /sign_agreement/{agreement_id}/{consumer_id}/{provider_id}:
# get:
# tags:
# - Agreement
# summary: Sign agreement
# parameters:
# - name: agreement_id
# in: path
# required: true
# style: simple
# explode: false
# schema:
# type: string
# - name: consumer_id
# in: path
# required: true
# style: simple
# explode: false
# schema:
# type: string
# - name: provider_id
# in: path
# required: true
# style: simple
# explode: false
# schema:
# type: string
# responses:
# '200':
# description: OK
# content:
# application/json:
# schema:
# $ref: '#/components/schemas/sign_msg'
# security:
# - bearerAuth: []
# --------------------------------------------------------openapi.json
# "/create_agreement": {
# "post": {
# "tags": [
# "Agreement"
# ],
# "summary": "Create agreement",
# "requestBody": {
# "content": {
# "application/json": {
# "schema": {
# "$ref": "#/components/schemas/template"
# }
# }
# },
# "required": true
# },
# "responses": {
# "200": {
# "description": "OK",
# "content": {
# "application/json": {
# "schema": {
# "$ref": "#/components/schemas/agreement_id"
# }
# }
# }
# }
# },
# "security": [
# {
# "bearerAuth": []
# }
# ]
# }
# },
# "/update_agreement/{agreement_id}": {
# "post": {
# "tags": [
# "Agreement"
# ],
# "summary": "Update agreement",
# "parameters": [
# {
# "name": "agreement_id",
# "in": "path",
# "required": true,
# "style": "simple",
# "explode": false,
# "schema": {
# "type": "string"
# }
# }
# ],
# "requestBody": {
# "content": {
# "application/json": {
# "schema": {
# "$ref": "#/components/schemas/template"
# }
# }
# },
# "required": true
# },
# "responses": {
# "200": {
# "description": "OK",
# "content": {
# "application/json": {
# "schema": {
# "$ref": "#/components/schemas/update_msg"
# }
# }
# }
# }
# },
# "security": [
# {
# "bearerAuth": []
# }
# ]
# }
# },
# ,
# "/sign_agreement/{agreement_id}/{consumer_id}": {
# "get": {
# "tags": [
# "Agreement"
# ],
# "summary": "Sign agreement",
# "parameters": [
# {
# "name": "agreement_id",
# "in": "path",
# "required": true,
# "style": "simple",
# "explode": false,
# "schema": {
# "type": "string"
# }
# },
# {
# "name": "consumer_id",
# "in": "path",
# "required": true,
# "style": "simple",
# "explode": false,
# "schema": {
# "type": "string"
# }
# }
# ],
# "responses": {
# "200": {
# "description": "OK",
# "content": {
# "application/json": {
# "schema": {
# "$ref": "#/components/schemas/sign_msg"
# }
# }
# }
# }
# },
# "security": [
# {
# "bearerAuth": []
# }
# ]
# }
# }
Loading

0 comments on commit 33231af

Please sign in to comment.