Skip to content

Commit

Permalink
Changed from template to final
Browse files Browse the repository at this point in the history
  • Loading branch information
DevNull-00 authored Apr 16, 2019
1 parent 5b79354 commit d76d25e
Showing 1 changed file with 11 additions and 48 deletions.
59 changes: 11 additions & 48 deletions Documents/check document.md
Original file line number Diff line number Diff line change
@@ -1,67 +1,30 @@
# Enter Resource Name
# Document check

POST **endpoint name**
POST **rest/v1/students/{studentId}/documents/check/{hash}**

## Description
Enter description of resource
This endpoint checks the status of a certain documet

## Required Header
* Z-Dev-ApiKey
* Z-Auth-Token
* ...
* User-Agent: zorro/1.0
* Z-Auth-Token: token

## Parameters
- **type** _(required)_*type* is an example parameter which is required:
- **active** _(required)_*active* is an example parameter which is *default:false*:

## Response
- **success** — Boolean value.
- **studentId** _(required)_ — your student id obtained with the login
- **hash** _(required)_ — the hash code of the document

## Example
**Request**

https://web.spaggiari.eu/rest/v1/students/{studentId}/noticeboard
https://web.spaggiari.eu/rest/v1/students/{studentId}/documents/check/{hash}

**Return** __shortened response__
``` json
{
"items": [
{
"pubId": 799423,
"pubDT": "2017-09-24T17:09:45+02:00",
"readStatus": false,
"evtCode": "CF",
"cntId": 351708,
"cntValidFrom": "2017-09-24",
"cntValidTo": "2017-10-31",
"cntValidInRange": true,
"cntStatus": "active",
"cntTitle": "VACCINI E SCUOLA: COSA FARE ",
"cntCategory": "Scuola\/famiglia",
"cntHasChanged": false,
"cntHasAttach": true,
"needJoin": false,
"needReply": false,
"needFile": false
},
{
"pubId": 796212,
"pubDT": "2017-09-24T15:49:59+02:00",
"readStatus": false,
"evtCode": "CF",
"cntId": 351672,
"cntValidFrom": "2017-09-24",
"cntValidTo": "2017-09-30",
"cntValidInRange": true,
"cntStatus": "active",
"cntTitle": "VARIAZIONE ORARIO PROVVISORIO - LIEVI MODIFICHE",
"cntCategory": "Scuola\/famiglia",
"cntHasChanged": false,
"cntHasAttach": true,
"needJoin": false,
"needReply": false,
"needFile": false
},
]
"document":{
"available":true
}
}
```

0 comments on commit d76d25e

Please sign in to comment.