added getBoxProfile action

This commit is contained in:
Pacien Boisson
2020-07-13 11:57:53 +02:00
committed by Hammad Jutt
parent 8c4df7e547
commit f79e8cd261
2 changed files with 32 additions and 8 deletions

View File

@@ -1,3 +1,10 @@
type Query {
getBoxProfile (
address: String
): BoxProfile
}
type Mutation {
updateBoxProfile : UpdateBoxProfileResponse
}
@@ -10,3 +17,12 @@ type UpdateBoxProfileResponse {
updatedProfiles : [String!]!
}
type BoxProfile {
name : String
description : String
location : String
job : String
emoji : String
imageUrl : String
}

View File

@@ -1,14 +1,22 @@
actions:
- name: updateBoxProfile
definition:
kind: synchronous
handler: '{{ACTION_BASE_ENDPOINT}}/updateBoxProfile'
forward_client_headers: true
permissions:
- role: player
- name: getBoxProfile
definition:
kind: ""
handler: '{{ACTION_BASE_ENDPOINT}}/getBoxProfile'
permissions:
- role: player
- role: public
- name: updateBoxProfile
definition:
kind: synchronous
handler: '{{ACTION_BASE_ENDPOINT}}/updateBoxProfile'
forward_client_headers: true
permissions:
- role: player
custom_types:
enums: []
input_objects: []
objects:
- name: UpdateBoxProfileResponse
- name: UpdateBoxProfileResponse
- name: BoxProfile
scalars: []