tinance2-doorbot/Insomnia-local-acl-api-spec.yaml

386 lines
11 KiB
YAML

_type: export
__export_format: 4
__export_date: 2023-06-14T07:17:18.440Z
__export_source: insomnia.desktop.app:v2023.2.0
resources:
- _id: req_dc09d3be399d4ef5be7264beec433bc8
parentId: fld_aa9bbbd53f414ce0a178a447d75b4283
modified: 1686678950521
created: 1686668861396
url: http://{{ _.url }}/state/relay1
name: Door - State
description: ""
method: GET
body:
mimeType: application/json
text: "\n"
parameters: []
headers:
- id: pair_cf9752f319fc4ce2bbc5c1d802d7a82b
name: Content-Type
value: application/json
description: ""
authentication:
type: basic
useISO88591: false
disabled: false
username: "{{ _.username }}"
password: "{{ _.password }}"
metaSortKey: -1679616163608.75
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: fld_aa9bbbd53f414ce0a178a447d75b4283
parentId: wrk_5b99c929e230492d9da3ab8c43602701
modified: 1686677030616
created: 1686677030616
name: door / relay1
description: ""
environment: {}
environmentPropertyOrder: null
metaSortKey: -1686677030616
_type: request_group
- _id: wrk_5b99c929e230492d9da3ab8c43602701
parentId: null
modified: 1686673742300
created: 1686673742300
name: Card Reader API
description: ""
scope: design
_type: workspace
- _id: req_84fb14db5570434bb244a18fe7eded4d
parentId: fld_aa9bbbd53f414ce0a178a447d75b4283
modified: 1686678956145
created: 1686666065894
url: http://{{ _.url }}/gpio?output=relay1&state=0
name: Door - Unlock
description: ""
method: GET
body:
mimeType: application/json
text: "\n"
parameters: []
headers:
- id: pair_cf9752f319fc4ce2bbc5c1d802d7a82b
name: Content-Type
value: application/json
description: ""
authentication:
type: basic
useISO88591: false
disabled: false
username: "{{ _.username }}"
password: "{{ _.password }}"
metaSortKey: -1679616163571.25
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_ca730b46474f4fdaae25aa07c64aaec1
parentId: fld_aa9bbbd53f414ce0a178a447d75b4283
modified: 1686678971440
created: 1686657865280
url: http://{{ _.url }}/gpio?output=relay1&state=1
name: Door - Lock
description: ""
method: GET
body:
mimeType: application/json
text: "\n"
parameters: []
headers:
- id: pair_cf9752f319fc4ce2bbc5c1d802d7a82b
name: Content-Type
value: application/json
description: ""
authentication:
type: basic
useISO88591: false
disabled: false
username: "{{ _.username }}"
password: "{{ _.password }}"
metaSortKey: -1679616163521.25
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_f2278f225ebe46409ee02f168da9edb4
parentId: fld_4344c65132674719831f9ef4fcd55cc4
modified: 1686677015417
created: 1686523684626
url: http://{{ _.url }}/users/create
name: Create Card ACL
description: ""
method: POST
body:
mimeType: multipart/form-data
params:
- id: pair_9a5eca8b66424013bc891f6bbfe6aa66
name: cardId
value: ""
description: ""
- id: pair_5ceef17886e44a3785d8007e39aaac1a
name: desc
value: ""
description: ""
parameters: []
headers:
- id: pair_cf9752f319fc4ce2bbc5c1d802d7a82b
name: Content-Type
value: multipart/form-data
description: ""
authentication:
type: basic
useISO88591: false
disabled: false
username: "{{ _.username }}"
password: "{{ _.password }}"
metaSortKey: -1678709813012.5
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: fld_4344c65132674719831f9ef4fcd55cc4
parentId: wrk_5b99c929e230492d9da3ab8c43602701
modified: 1686677012414
created: 1686677012414
name: acls
description: ""
environment: {}
environmentPropertyOrder: null
metaSortKey: -1686677012414
_type: request_group
- _id: req_e00a6efca48546e7982bc417d1d7036c
parentId: fld_4344c65132674719831f9ef4fcd55cc4
modified: 1686677016937
created: 1686527136306
url: http://{{ _.url }}/users/update
name: Update Card ACL
description: ""
method: POST
body:
mimeType: multipart/form-data
params:
- name: cardId
value: ""
id: pair_601e929fe2cf4f35a8fef542dbdff232
- id: pair_fb6e32685ee1484da24a96d5a445dab5
name: newCardId
value: ""
description: ""
- id: pair_688c548f6db94924be254a3b4593862c
name: desc
value: ""
description: ""
parameters: []
headers:
- id: pair_cf9752f319fc4ce2bbc5c1d802d7a82b
name: Content-Type
value: multipart/form-data
description: ""
authentication:
type: basic
useISO88591: false
disabled: false
username: "{{ _.username }}"
password: "{{ _.password }}"
metaSortKey: -1678709812962.5
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_ab4edf71a18543e2aabd2e40e704b765
parentId: fld_4344c65132674719831f9ef4fcd55cc4
modified: 1686677018916
created: 1686526808857
url: http://{{ _.url }}/users/remove
name: Remove Card ACL
description: ""
method: POST
body:
mimeType: multipart/form-data
params:
- name: cardId
value: ""
id: pair_601e929fe2cf4f35a8fef542dbdff232
parameters: []
headers:
- id: pair_cf9752f319fc4ce2bbc5c1d802d7a82b
name: Content-Type
value: multipart/form-data
description: ""
authentication:
type: basic
useISO88591: false
disabled: false
username: "{{ _.username }}"
password: "{{ _.password }}"
metaSortKey: -1678709812912.5
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_6512ec9f76814b2181703b074553b67e
parentId: fld_4344c65132674719831f9ef4fcd55cc4
modified: 1686677053597
created: 1680522514230
url: http://{{ _.url }}/users
name: Get Card ACL's
description: ""
method: GET
body:
mimeType: application/json
text: "\n "
parameters: []
headers:
- id: pair_cf9752f319fc4ce2bbc5c1d802d7a82b
name: Content-Type
value: application/json
description: ""
authentication:
type: basic
useISO88591: false
disabled: false
username: "{{ _.username }}"
password: "{{ _.password }}"
metaSortKey: -1678709812862.5
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_6bb012113ee640bdb3b5259fdc333277
parentId: fld_fa644d484dd64e78b90e3df0c486e7d6
modified: 1686678985051
created: 1686676992334
url: http://{{ _.url }}/settings/get/getDoorDisabled
name: settings - get - getDoorDisabled
description: ""
method: GET
body:
mimeType: application/json
text: "\n"
parameters: []
headers:
- id: pair_cf9752f319fc4ce2bbc5c1d802d7a82b
name: Content-Type
value: application/json
description: ""
authentication:
type: basic
useISO88591: false
disabled: false
username: "{{ _.username }}"
password: "{{ _.password }}"
metaSortKey: -1679446222882.1094
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: fld_fa644d484dd64e78b90e3df0c486e7d6
parentId: wrk_5b99c929e230492d9da3ab8c43602701
modified: 1686677001223
created: 1686677001223
name: Settings
description: ""
environment: {}
environmentPropertyOrder: null
metaSortKey: -1686677001223
_type: request_group
- _id: req_5681a54a0b7f4109ad50da6cce36cc65
parentId: fld_fa644d484dd64e78b90e3df0c486e7d6
modified: 1686690326021
created: 1686676506109
url: http://{{ _.url }}/settings/set/getDoorDisabled?value=1
name: settings - set - getDoorDisabled
description: ""
method: GET
body:
mimeType: application/json
text: ""
parameters: []
headers:
- id: pair_cf9752f319fc4ce2bbc5c1d802d7a82b
name: Content-Type
value: application/json
description: ""
authentication:
type: basic
useISO88591: false
disabled: false
username: "{{ _.username }}"
password: "{{ _.password }}"
metaSortKey: -1679446222832.1094
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: env_22c2e08cc6484cf48f51f396216b2589
parentId: wrk_5b99c929e230492d9da3ab8c43602701
modified: 1686673750409
created: 1680522505349
name: Base Environment
data:
username: admin
password: admin
url: reader-hostname-or-ip
dataPropertyOrder:
"&":
- username
- password
- url
color: null
isPrivate: false
metaSortKey: 1680522505349
_type: environment
- _id: jar_ec61023b847c4a93b0a913359b84575e
parentId: wrk_5b99c929e230492d9da3ab8c43602701
modified: 1680522505350
created: 1680522505350
name: Default Jar
cookies: []
_type: cookie_jar
- _id: spc_5485b8347b134baaa02ea692d9dcc01d
parentId: wrk_5b99c929e230492d9da3ab8c43602701
modified: 1686673742300
created: 1686673742300
fileName: Card Reader API
contents: ""
contentType: yaml
_type: api_spec