Compare commits

..

No commits in common. "9f47d9840c32f13920b304d314234e5711608c3f" and "7947b5234bffbcd003c42668382d0b6c6694d3b8" have entirely different histories.

7 changed files with 43 additions and 75 deletions

View File

@ -1,7 +1,7 @@
_id: spc_df2177e61a724e24bc4fc1796d631d51
type: ApiSpec
parentId: wrk_0627d19078e64bb7877a6c1703c0fab8
modified: 1703520317303
modified: 1703326273885
created: 1703261567280
fileName: member-spec-sample.yaml
contents: "openapi: 3.0.0
@ -31,16 +31,20 @@ contents: "openapi: 3.0.0
\ description: \"OmegaV API server\"
\ - url: \"http://127.0.0.1:8000\"
\ description: \"Local test\"
tags:
\ - name: member
\ description: \"Operations about a member\"
\ - name: money
\ description: \"Operations about money\"
\ - name: RFID
\ description: \"Operations about a member's RFID card\"
paths:
@ -97,7 +101,7 @@ contents: "openapi: 3.0.0
\ schema:
\ $ref: \"#/components/schemas/minimalMemberWithoutId\"
\ $ref: \"#/components/schemas/minimalMember\"
\ required: true
@ -160,7 +164,7 @@ contents: "openapi: 3.0.0
\ schema:
\ $ref: '#/components/schemas/member'
\ $ref: '#/components/schemas/members'
\ '404':
@ -186,7 +190,7 @@ contents: "openapi: 3.0.0
\ in: path
\ description: \"ID of the user's who's info that will be updated\"
\ description: \"ID of the user's who's balance will be fetched\"
\ required: true
@ -204,7 +208,7 @@ contents: "openapi: 3.0.0
\ schema:
\ $ref: '#/components/schemas/minimalMemberWithoutId'
\ $ref: '#/components/schemas/minimalMember'
\ responses:
@ -218,7 +222,7 @@ contents: "openapi: 3.0.0
\ schema:
\ $ref: '#/components/schemas/member'
\ $ref: '#/components/schemas/members'
\ '404':
@ -238,6 +242,8 @@ contents: "openapi: 3.0.0
\ - member
\ - money
\ summary: \"Get a member's balance\"
\ description: \"Get a member's balance\"
@ -288,6 +294,8 @@ contents: "openapi: 3.0.0
\ - member
\ - money
\ summary: \"Change a member's balance\"
\ description: \"Add to a member's balance\"
@ -474,6 +482,8 @@ contents: "openapi: 3.0.0
\ - member
\ - RFID
\ summary: \"Get a member's RFID cards\"
\ description: \"Get all of a member's RFID cards\"
@ -524,6 +534,8 @@ contents: "openapi: 3.0.0
\ - member
\ - RFID
\ summary: \"Add RFID card\"
\ description: \"Add an RFID card to a member\"
@ -605,57 +617,13 @@ contents: "openapi: 3.0.0
\ $ref: '#/components/schemas/member'
\\
\ minimalMemberWithoutId:
\ type: object
\ description: \"The minimal values needed to create a member\"
\ properties:
\ ntnuUsername:
\ type: string
\ description: \"The NTNU username of the member\"
\ example: \"sebasthg\"
\ firstName:
\ type: string
\ description: \"First name of the member\"
\ example: \"Sebastian\"
\ lastName:
\ type: string
\ description: \"Last name of the member\"
\ example: \"Gabrielli\"
\ email:
\ type: string
\ description: \"The member's non-ntnu e-mail\"
\ example: \"sebastian@fastmail.mx\"
\ \
\ \
\ minimalMember:
\ type: object
\ description: \"The minimal values returned when createing a member\"
\ description: \"The minimal values needed to create a member\"
\ properties:
@ -669,7 +637,7 @@ contents: "openapi: 3.0.0
\ example: 1337
\ ntnuUsername:
\ ntnuBrukernavn:
\ type: string
@ -722,7 +690,7 @@ contents: "openapi: 3.0.0
\ example: 1337
\ ntnuUsername:
\ ntnuBrukernavn:
\ type: string
@ -820,7 +788,7 @@ contents: "openapi: 3.0.0
\ example: \"0364249683\"
\ cardComment:
\ cardDomment:
\ type: string

View File

@ -1,9 +1,9 @@
_id: req_0dbc0849841c4537a7ba56051747ad9b
type: Request
parentId: fld_1f771e8034294c2a9c6396fd6787b6af
modified: 1703519866807
modified: 1703325211504
created: 1703325202646
url: 127.0.0.1:8000/member/1/balance
url: "{{ _.base_url }}/members/{{ _.memberId }}/balance"
name: Change a member's balance
description: ""
method: PUT
@ -11,7 +11,7 @@ body:
mimeType: application/json
text: |-
{
"balance": -50
"balance": 1337
}
parameters: []
headers:

View File

@ -1,9 +1,9 @@
_id: req_38c60dbc1949493fa350f316027aa30e
type: Request
parentId: fld_1f771e8034294c2a9c6396fd6787b6af
modified: 1703519813169
modified: 1703325202644
created: 1703325202644
url: 127.0.0.1:8000/member/1/balance
url: "{{ _.base_url }}/members/{{ _.memberId }}/balance"
name: Get a member's balance
description: ""
method: GET

View File

@ -1,9 +1,9 @@
_id: req_6d5655cd78fd4d05a2c06b5bc443c3fa
type: Request
parentId: fld_1f771e8034294c2a9c6396fd6787b6af
modified: 1703505568127
modified: 1703325202640
created: 1703325202640
url: 127.0.0.1:8000/members
url: "{{ _.base_url }}/members"
name: Get a list of all members
description: ""
method: GET

View File

@ -1,9 +1,9 @@
_id: req_87b162ac1d564368a8933372f62f6437
type: Request
parentId: fld_1f771e8034294c2a9c6396fd6787b6af
modified: 1703508166488
modified: 1703325202641
created: 1703325202641
url: 127.0.0.1:8000/member
url: "{{ _.base_url }}/members"
name: Add a new member
description: ""
method: POST
@ -11,7 +11,8 @@ body:
mimeType: application/json
text: |-
{
"ntnuUsername": "definitely-not-sebasthg",
"id": 1337,
"ntnuBrukernavn": "sebasthg",
"firstName": "Sebastian",
"lastName": "Gabrielli",
"email": "sebastian@fastmail.mx"
@ -21,7 +22,6 @@ headers:
- name: Content-Type
disabled: false
value: application/json
id: pair_97cb010b74c0417da634ed9d7ef8dd77
authentication: {}
metaSortKey: -1703325202641
isPrivate: false

View File

@ -1,9 +1,9 @@
_id: req_98985848bfd3459c9961a645b9048841
type: Request
parentId: fld_1f771e8034294c2a9c6396fd6787b6af
modified: 1703518570913
modified: 1703325202643
created: 1703325202643
url: 127.0.0.1:8000/member/1
url: "{{ _.base_url }}/members/{{ _.memberId }}"
name: Get a member
description: ""
method: GET

View File

@ -1,9 +1,9 @@
_id: req_c599698644fa45dd8f6a72424695130c
type: Request
parentId: fld_1f771e8034294c2a9c6396fd6787b6af
modified: 1703518818144
modified: 1703325202644
created: 1703325202644
url: 127.0.0.1:8000/member/1
url: "{{ _.base_url }}/members/{{ _.memberId }}"
name: Update a member's details
description: ""
method: PUT
@ -11,8 +11,8 @@ body:
mimeType: application/json
text: |-
{
"id": 1,
"ntnuUsername": "sebasthg2",
"id": 1337,
"ntnuBrukernavn": "sebasthg",
"firstName": "Sebastian",
"lastName": "Gabrielli",
"email": "sebastian@fastmail.mx"