Skip to content

Latest commit

 

History

History
89 lines (70 loc) · 3.15 KB

header.md

File metadata and controls

89 lines (70 loc) · 3.15 KB

For more info about the project, please visit the Cagliari Port 2020 official website

Security & Authentication

All API endpoints use HTTPS protocol.

All API endpoints require authentication.

Thus, you MUST obtain an API token and use it in HTTP header, as in:

Authentication: Bearer <API_TOKEN>

or appending a URL parameter as in:

/apps?access_token=<API_TOKEN>

or appending in body request as in:

    {access_token=<API_TOKEN>}

Pagination

All endpoints providing a listing functionality, like /apps, returns paginated responses. Pagination information is always provided using the following format:

...
"_metadata":{
                "skip":10,
                "limit":50,
                "totalCount":1500
            }

Access_Token to try API

<style type="text/css"> .tg {border-collapse:collapse;border-spacing:0;} .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;} .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;} .tg .tg-baqh{text-align:center;vertical-align:top} </style>
Token Type access_token
User Token Type eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
eyJtb2RlIjoidXNlciIsImlzcyI6IjU4YmRhNWMxMzk1YTNkMjdhYmVjMzQ5YiIsImVtY
WlsIjoiYWRtaW5AYWRtaW4uY29tIiwidHlwZSI6ImFkbWluIiwiZW5hYmxlZCI6dHJ1ZSwiZXhwIjoxNDkwMDE3MDcyNDY4fQ.
NS0B-MnuMensDhLBe13I3dxzKWvqQeKQ5Z49cqmIeXs
Application Token Type eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
eyJtb2RlIjoiZGV2ZWxvcGVyIiwiaXNzIjoiNThjNmQyNGMxMWFmMTA4MWY2OTYwZTE3I
iwiZW1haWwiOiJwaXBwbzZAcGlwcG8uaXQiLCJ0eXBlIjoiYWRtaW5BcHAiLCJlbmFibGVkIjp0cnVlLCJleHAiOjE0OTAwMjk3NzMwNzh9.
jXivXxjnOlbFVBiLpdS1em2__EvS08Ms4pf5jtVz9Mo

Username to login and get Token to try API

<style type="text/css"> .tg {border-collapse:collapse;border-spacing:0;} .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;} .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;} .tg .tg-baqh{text-align:center;vertical-align:top} </style>
Login Type Username password
User Login [email protected] admin
Application Login [email protected] admin