API for Techfesia.
curl -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/users/test_user_001/auth_modes"
GET /users/test_user_001/auth_modes HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"password":"Hello World"
}' "http://localhost:8000/users/test_user_001/password/"
POST /users/test_user_001/password/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
{
"password":"Hello World"
}
Status | 201 Created |
---|---|
|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"oldPassword":"old_passord",
"newPassword":"new_password"
}' "http://localhost:8000/users/test_user_001/password/"
PUT /users/test_user_001/password/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
{
"oldPassword":"old_passord",
"newPassword":"new_password"
}
curl -X PATCH -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"resetToken":"sampled_reset_token",
"newPassword":"password"
}' "http://localhost:8000/users/test_user_001/password/"
PATCH /users/test_user_001/password/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"resetToken":"sampled_reset_token",
"newPassword":"password"
}
Status | 200 OK |
---|---|
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/users?limit=10"
GET /users?limit=10 HTTP/1.1
Host: localhost:8000
Accept: application/json
Content-Type: application/json
Authorization: Bearer sample_staff_token
Status | 400 Bad Request |
---|---|
Content-Type | application/json |
|
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/users/test_user_001"
GET /users/test_user_001 HTTP/1.1
Host: localhost:8000
Accept: application/json
Content-Type: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/users/test_user_001/privileges"
GET /users/test_user_001/privileges HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
Status | 200 OK |
---|---|
Content-Type | application/json |
|
Status | 200 OK |
---|---|
|
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"username":"test_user_001",
"firstName":"Test",
"lastName":"User",
"email":"test_user_001@testers.techfesia.iiits.in",
"password":"Hello World",
"phoneNumber":"+911234567890",
"collegeName":"Test College 123",
"profilePicture":"url_to_profile_pic"
}' "http://localhost:8000/users/"
POST /users/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"username":"test_user_001",
"firstName":"Test",
"lastName":"User",
"email":"test_user_001@testers.techfesia.iiits.in",
"password":"Hello World",
"phoneNumber":"+911234567890",
"collegeName":"Test College 123",
"profilePicture":"url_to_profile_pic"
}
Status | 201 Created |
---|---|
Content-Type | application/json |
|
Status | 400 Bad Request |
---|---|
Content-Type | application/json |
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
curl -X PUT -H "Content-Type: application/json" -H "accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"username":"test_user_001",
"firstName":"Test",
"lastName":"User",
"email":"test_user_001@testers.techfesia.iiits.in",
"phoneNumber":"+911234567890",
"collegeName":"Test College 123",
"profilePicture":"url_to_profile_pic"
}' "http://localhost:8000/users/test_user_001?="
PUT /users/test_user_001?= HTTP/1.1
Host: localhost:8000
Content-Type: application/json
accept: application/json
Authorization: Bearer sample_token
{
"username":"test_user_001",
"firstName":"Test",
"lastName":"User",
"email":"test_user_001@testers.techfesia.iiits.in",
"phoneNumber":"+911234567890",
"collegeName":"Test College 123",
"profilePicture":"url_to_profile_pic"
}
Status | 200 OK |
---|---|
|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"provider":"google"
}' "http://localhost:8000/users/test_user_001/picture"
PUT /users/test_user_001/picture HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
{
"provider":"google"
}
Status | 200 OK |
---|---|
|
curl -X PUT -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/users/test_user_001/disable"
PUT /users/test_user_001/disable HTTP/1.1
Host: localhost:8000
Authorization: Bearer sample_staff_token
curl -X DELETE -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/users/test_user_001/"
DELETE /users/test_user_001/ HTTP/1.1
Host: localhost:8000
Authorization: Bearer sample_staff_token
Status | 200 OK |
---|
curl -X PUT -H "Accept: application/json" -H "Content-Type: multipart/form-data" -H "Authorization: Bearer sample_token" "http://localhost:8000/users/test_user_001/pictureupload"
PUT /users/test_user_001/pictureupload HTTP/1.1
Host: localhost:8000
Accept: application/json
Content-Type: multipart/form-data
Authorization: Bearer sample_token
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Status | 202 Accepted |
---|---|
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"username":"test_user_001",
"password":"Hello World"
}' "http://localhost:8000/auth/token/"
POST /auth/token/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"username":"test_user_001",
"password":"Hello World"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"refresh":"sample_token"
}' "http://localhost:8000/auth/token/refresh/"
POST /auth/token/refresh/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"refresh":"sample_token"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"username":"test_staff_user_001",
"password":"Hello Staff Password"
}' "http://localhost:8000/auth/token/"
POST /auth/token/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"username":"test_staff_user_001",
"password":"Hello Staff Password"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"refresh":"sample_staff_token"
}' "http://localhost:8000/auth/token/refresh/"
POST /auth/token/refresh/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"refresh":"sample_staff_token"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"username":"sample_superuser_001",
"password":"Hello Superuser Password"
}' "http://localhost:8000/auth/token/"
POST /auth/token/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"username":"sample_superuser_001",
"password":"Hello Superuser Password"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"refresh":"sample_superuser_token"
}' "http://localhost:8000/auth/token/refresh/"
POST /auth/token/refresh/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"refresh":"sample_superuser_token"
}
Status | 0 |
---|---|
|
curl -X DELETE -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/auth/token/"
DELETE /auth/token/ HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"token":"sample_token"
}' "http://localhost:8000/auth/token/"
PUT /auth/token/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
{
"token":"sample_token"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
Category: Every event is associated with a category. For Example: Hackathon, Workshop, Coding, Designing, Exhibition.
curl -X GET -H "Accept: application/json" "http://localhost:8000/events/category"
GET /events/category HTTP/1.1
Host: localhost:8000
Accept: application/json
Status | 0 |
---|---|
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -d '{
"name": "Name of Category",
"description": "Description about the Category (Optional)"
}' "http://localhost:8000/events/category"
POST /events/category HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
{
"name": "Name of Category",
"description": "Description about the Category (Optional)"
}
Status | 201 Created |
---|---|
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -d '{
"description": "Update the description for this category."
}' "http://localhost:8000/events/tags/sample_category_name"
PUT /events/tags/sample_category_name HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
{
"description": "Update the description for this category."
}
Status | 202 Accepted |
---|---|
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
curl -X DELETE -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdHVkZW50SUQiOiJ0aGlzaWQiLCJzdHVkZW50RW1haWwiOiJyYW1kQGdtYWlsLmNvbSIsImlhdCI6MTU1NDM5NzYyMiwiZXhwIjoxNTU0NDA0ODIyfQ.bfmiEvKyoqP_y0R1yxYHXHWZIduYlyAKRJWHgQt-hM0" "http://localhost:8000/events/category/sample_category_name"
DELETE /events/category/sample_category_name HTTP/1.1
Host: localhost:8000
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdHVkZW50SUQiOiJ0aGlzaWQiLCJzdHVkZW50RW1haWwiOiJyYW1kQGdtYWlsLmNvbSIsImlhdCI6MTU1NDM5NzYyMiwiZXhwIjoxNTU0NDA0ODIyfQ.bfmiEvKyoqP_y0R1yxYHXHWZIduYlyAKRJWHgQt-hM0
Status | 204 No Content |
---|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Tags: A small highlight about a event. For Example: Free, Difficult, Special. It is optional.
curl -X GET -H "Accept: application/json" "http://localhost:8000/events/tags"
GET /events/tags HTTP/1.1
Host: localhost:8000
Accept: application/json
Status | 0 |
---|---|
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -d '{
"name": "Name of Tag",
"description": "Description about use of Tag (Optional)"
}' "http://localhost:8000/events/tags"
POST /events/tags HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
{
"name": "Name of Tag",
"description": "Description about use of Tag (Optional)"
}
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Status | 201 Created |
---|---|
|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -d '{
"description": "Update the description for this tag."
}' "http://localhost:8000/events/tags/sample_tags_name"
PUT /events/tags/sample_tags_name HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
{
"description": "Update the description for this tag."
}
Status | 202 Accepted |
---|---|
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
curl -X DELETE -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/events/tags/sample_tags_name"
DELETE /events/tags/sample_tags_name HTTP/1.1
Host: localhost:8000
Authorization: Bearer sample_staff_token
Status | 204 No Content |
---|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Event Endpoints. Allow to create new Events, Delete them and update details.
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/events?limit&page&category&order&tags"
GET /events?limit&page&category&order&tags HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -d '{
"name": "Name of the Event",
"description": "Event Description",
"date": "YYYY-MM-DD",
"time": "HH:MM",
"venue": "Event Venue",
"fees": "Participation Fee",
"prize": ["First Prize", "Second Prize", "Prize for innovation"],
"teamEvent": true,
"minSize": 3,
"maxSize": 8,
"rules": [
"Everyone should Participate",
"Good Work etc etc"
],
"faq": [
[
"Question with multiple Answers",
"Answer"
],
[
"Put Question 2",
"Put Answer here"
]
],
"category": [
"Defaults to Others",
"Can be an array of valid categories"
],
"tags": [
"Optional",
"Can be an array of valid tags"
]
}' "http://localhost:8000/events"
POST /events HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
{
"name": "Name of the Event",
"description": "Event Description",
"date": "YYYY-MM-DD",
"time": "HH:MM",
"venue": "Event Venue",
"fees": "Participation Fee",
"prize": ["First Prize", "Second Prize", "Prize for innovation"],
"teamEvent": true,
"minSize": 3,
"maxSize": 8,
"rules": [
"Everyone should Participate",
"Good Work etc etc"
],
"faq": [
[
"Question with multiple Answers",
"Answer"
],
[
"Put Question 2",
"Put Answer here"
]
],
"category": [
"Defaults to Others",
"Can be an array of valid categories"
],
"tags": [
"Optional",
"Can be an array of valid tags"
]
}
Status | 201 Created |
---|---|
|
curl -X DELETE -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/events/sample_event_id"
DELETE /events/sample_event_id HTTP/1.1
Host: localhost:8000
Authorization: Bearer sample_staff_token
Status | 200 OK |
---|
curl -X GET -H "Accept: application/json" "http://localhost:8000/events/sample_event_id"
GET /events/sample_event_id HTTP/1.1
Host: localhost:8000
Accept: application/json
Status | 200 OK |
---|---|
|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -d '{
"name": "Name of the Event",
"description": "Event Description",
"date": "YYYY-MM-DD",
"time": "HH:MM",
"venue": "Event Venue",
"fees": "Participation Fee",
"prize": ["First Prize", "Second Prize", "Prize for innovation"],
"teamEvent": true,
"teamProperties":{
"minSize": 3,
"maxSize": 8
},
"rules": [
"Everyone should Participate",
"Good Work etc etc"
],
"faq": [
[
"Question with multiple Answers",
"Answer1"
],
[
"Put Question 2",
"Put Answer here"
]
],
"category": [
"Defaults to Others",
"Can be an array of valid categories"
],
"tags": [
"Optional",
"Can be an array of valid tags"
]
}' "http://localhost:8000/events/sample_event_id"
PUT /events/sample_event_id HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
{
"name": "Name of the Event",
"description": "Event Description",
"date": "YYYY-MM-DD",
"time": "HH:MM",
"venue": "Event Venue",
"fees": "Participation Fee",
"prize": ["First Prize", "Second Prize", "Prize for innovation"],
"teamEvent": true,
"teamProperties":{
"minSize": 3,
"maxSize": 8
},
"rules": [
"Everyone should Participate",
"Good Work etc etc"
],
"faq": [
[
"Question with multiple Answers",
"Answer1"
],
[
"Put Question 2",
"Put Answer here"
]
],
"category": [
"Defaults to Others",
"Can be an array of valid categories"
],
"tags": [
"Optional",
"Can be an array of valid tags"
]
}
Status | 202 Accepted |
---|---|
|
curl -X POST -H "Content-Type: multipart/form-data" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/events/sample_event_id/photo"
POST /events/sample_event_id/photo HTTP/1.1
Host: localhost:8000
Content-Type: multipart/form-data
Accept: application/json
Authorization: Bearer sample_staff_token
Status | 200 OK |
---|
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/events/sample_event_id/registrations"
GET /events/sample_event_id/registrations HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_staff_token
Status | 0 |
---|---|
|
Status | 200 OK |
---|---|
|
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer sample_token" -d '{
"teamId": "2"
}' "http://localhost:8000/events/sample_event_id/register/"
POST /events/sample_event_id/register/ HTTP/1.1
Host: localhost:8000
Accept: application/json
Content-Type: application/json
Authorization: Bearer sample_token
{
"teamId": "2"
}
Status | 201 Created |
---|---|
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
curl -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/events/sample_event_id/registrations/sample_registration_id"
GET /events/sample_event_id/registrations/sample_registration_id HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
|
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" "http://{{hostname}}/teams?limit&page&event&user"
failed to parse url
parse http://{{hostname}}/teams?limit&page&event&user: invalid character "{" in host name
Status | 200 OK |
---|---|
|
Status | 200 OK |
---|---|
|
curl -X POST -H "Accept: application/json" -H "Authorization: Bearer sample_token" -H "Content-Type: application/json" -d '{
"name":"The Gingers"
}' "http://localhost:8000/teams/"
POST /teams/ HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Content-Type: application/json
{
"name":"The Gingers"
}
Status | 201 Created |
---|---|
|
curl -X DELETE -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/teams/sample_team_id"
DELETE /teams/sample_team_id HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 204 No Content |
---|
curl -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer sample_token" -d '{
"name": "The Flockers"
}' "http://localhost:8000/teams/sample_team_id"
PUT /teams/sample_team_id HTTP/1.1
Host: localhost:8000
Accept: application/json
Content-Type: application/json
Authorization: Bearer sample_token
{
"name": "The Flockers"
}
Status | 200 OK |
---|---|
|
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/teams/sample_team_id"
GET /teams/sample_team_id HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
|
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/users/test_user_001/invitation"
GET /users/test_user_001/invitation HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
|
curl -X PUT -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/users/test_user_001/invitation/sample_team_id/accept/"
PUT /users/test_user_001/invitation/sample_team_id/accept/ HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Status | 200 OK |
---|---|
|
curl -X PUT -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/users/test_user_001/invitation/sample_team_id/reject/"
PUT /users/test_user_001/invitation/sample_team_id/reject/ HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
|
curl -X POST -H "Authorization: Bearer sample_token" -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"username": "test_user_001"
}' "http://{{hostname}}/teams/sample_team_id/invitations"
failed to parse url
parse http://{{hostname}}/teams/sample_team_id/invitations: invalid character "{" in host name
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Status | 201 Created |
---|---|
|
curl -X DELETE -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/teams/sample_team_id/test_user_001"
DELETE /teams/sample_team_id/test_user_001 HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 204 No Content |
---|
curl -X DELETE -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/teams/sample_team_id/invitations/test_user_001"
DELETE /teams/sample_team_id/invitations/test_user_001 HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Status | 204 No Content |
---|
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/ticket?limit&page&user&topic&status"
GET /ticket?limit&page&user&topic&status HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_staff_token
Status | 200 OK |
---|---|
|
curl -X GET -H "Accept: application/json" "http://localhost:8000/ticket/public?limit&page&status=&topic"
GET /ticket/public?limit&page&status=&topic HTTP/1.1
Host: localhost:8000
Accept: application/json
Status | 200 OK |
---|---|
Accept | application/json |
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/ticket/test_user_001"
GET /ticket/test_user_001 HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"title": "Another Issue",
"description": "Fix it Faster",
"view": "public or private"
}' "http://localhost:8000/ticket/"
POST /ticket/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
{
"title": "Another Issue",
"description": "Fix it Faster",
"view": "public or private"
}
Status | 201 Created |
---|---|
|
curl -X PUT -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -H "Content-Type: application/json" -d '{
"content": "This is my solution"
}' "http://localhost:8000/ticket/sample_ticket_id/close"
PUT /ticket/sample_ticket_id/close HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_staff_token
Content-Type: application/json
{
"content": "This is my solution"
}
Status | 200 OK |
---|---|
|
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/events/sample_event_id/organisers"
GET /events/sample_event_id/organisers HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -d '{
"username": "user_001",
"role": "role"
}' "http://localhost:8000/events/sample_event_id/organisers"
POST /events/sample_event_id/organisers HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
{
"username": "user_001",
"role": "role"
}
Status | 0 |
---|---|
|
curl -X DELETE -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/events/sample_event_id/organisers/test_user_001"
DELETE /events/sample_event_id/organisers/test_user_001 HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_staff_token
Status | 204 No Content |
---|
curl -X GET -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/events/sample_event_id/volunteers"
GET /events/sample_event_id/volunteers HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -d '{
"username": "user_5",
"task": ["Arrange Rooms", "Take Attendence"]
}' "http://localhost:8000/events/sample_event_id/volunteers"
POST /events/sample_event_id/volunteers HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
{
"username": "user_5",
"task": ["Arrange Rooms", "Take Attendence"]
}
Status | 0 |
---|---|
|
curl -X DELETE -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/events/sample_event_id/volunteers/test_user_001"
DELETE /events/sample_event_id/volunteers/test_user_001 HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_staff_token
Status | 204 No Content |
---|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" -d '{
"task": ["Task1", "Task2"]
}' "http://localhost:8000/events/sample_event_id/volunteers/test_user_001"
PUT /events/sample_event_id/volunteers/test_user_001 HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
{
"task": ["Task1", "Task2"]
}
Status | 0 |
---|---|
|