Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

API‐Docs

Leonard Huth edited this page Jul 19, 2023 · 2 revisions

This a Markdown version of our swagger doc. You can find the real-deal here

REST API

Version: 1.0.0

/payment/create-payment-intent

POST

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK
400 Bad Request
401 Unauthorized

/payment/create-checkout-session

POST

Description:
Parameters
Name Located in Description Required Schema
authorization header No string
body body No object
Responses
Code Description
200 OK
401 Unauthorized
404 Not Found
500 Internal Server Error

/payment/get-charges/{stripe_id}

GET

Description:
Parameters
Name Located in Description Required Schema
stripe_id path Yes string
Responses
Code Description
200 OK
400 Bad Request

/payment/checkout

POST

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK
400 Bad Request
401 Unauthorized
404 Not Found

/payment/prepare-checkout

GET

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK
401 Unauthorized
404 Not Found

/payment/webhook

POST

Description:
Parameters
Name Located in Description Required Schema
stripe-signature header No string
body body No object
Responses
Code Description
200 OK
400 Bad Request
404 Not Found

/events/get/all

GET

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK

/events/get/{id}

GET

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK

/events/filter

GET

Description:
Parameters
Name Located in Description Required Schema
name query No string
description query No string
Responses
Code Description
200 OK
500 Internal Server Error

/events/get/category/{id}

GET

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
500 Internal Server Error

/events/create

POST

Description:
Parameters
Name Located in Description Required Schema
Authorization header No string
body body No object
Responses
Code Description
201 Created
400 Bad Request
401 Unauthorized
500 Internal Server Error

/events/update/{id}

PATCH

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Authorization header No string
Responses
Code Description
200 OK
401 Unauthorized
500 Internal Server Error

/events/delete/{id}

DELETE

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Authorization header No string
Responses
Code Description
200 OK
401 Unauthorized
500 Internal Server Error

/users/user/signup

POST

Description:
Parameters
Name Located in Description Required Schema
body body No object
Responses
Code Description
201 Created
400 Bad Request
500 Internal Server Error

/users/user/login

POST

Description:
Parameters
Name Located in Description Required Schema
body body No object
Responses
Code Description
200 OK
400 Bad Request
500 Internal Server Error

/users/user/{id}

GET

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
400 Bad Request
404 Not Found
500 Internal Server Error

PUT

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
body body No object
Responses
Code Description
200 OK
400 Bad Request
404 Not Found
500 Internal Server Error

DELETE

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
404 Not Found
500 Internal Server Error

/users/users

GET

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK
500 Internal Server Error

/users/user

POST

Description:
Parameters
Name Located in Description Required Schema
body body No object
Responses
Code Description
201 Created
400 Bad Request
500 Internal Server Error

/users/get-order-history/{user_id}

GET

Description:
Parameters
Name Located in Description Required Schema
user_id path Yes string
Responses
Code Description
200 OK
400 Bad Request
404 Not Found
500 Internal Server Error

/users/send-mail

POST

Description:
Parameters
Name Located in Description Required Schema
host header No string
Responses
Code Description
200 OK

/users/confirmation/{token}

GET

Description:
Parameters
Name Located in Description Required Schema
token path Yes string
Responses
Code Description
200 OK
404 Not Found

/users/my/orders

GET

Description:
Parameters
Name Located in Description Required Schema
authorization header No string
Responses
Code Description
200 OK
401 Unauthorized
500 Internal Server Error

/event-locations/

GET

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK
500 Internal Server Error

/event-locations/get/{id}

GET

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
500 Internal Server Error

/event-locations/create

POST

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
201 Created
500 Internal Server Error

/event-locations/update/{id}

PUT

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
500 Internal Server Error

/event-locations/delete/{id}

DELETE

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
500 Internal Server Error

/event-locations/filter

GET

Description:
Parameters
Name Located in Description Required Schema
name query No string
Responses
Code Description
200 OK
500 Internal Server Error

/tags/

GET

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK

/cart/get/{user_uuid}

GET

Description:
Parameters
Name Located in Description Required Schema
user_uuid path Yes string
Responses
Code Description
200 OK
401 Unauthorized
404 Not Found

/cart/add/{user_uuid}

POST

Description:
Parameters
Name Located in Description Required Schema
user_uuid path Yes string
Responses
Code Description
200 OK
400 Bad Request
401 Unauthorized

/cart/remove/{user_uuid}

DELETE

Description:
Parameters
Name Located in Description Required Schema
user_uuid path Yes string
Responses
Code Description
200 OK
401 Unauthorized
404 Not Found

/cart/update-item/{event_id}

POST

Description:
Parameters
Name Located in Description Required Schema
event_id path Yes string
amount query No string
Responses
Code Description
200 OK
400 Bad Request
401 Unauthorized
404 Not Found

/categories/get/all

GET

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK
404 Not Found

/categories/get/active/

GET

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK
404 Not Found

/tickets/create

POST

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
201 Created
500 Internal Server Error

/tickets/get/review-ready

POST

Description:
Parameters
Name Located in Description Required Schema
authorization header No string
body body No object
Responses
Code Description
200 OK
401 Unauthorized

/tickets/delete/{id}

DELETE

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
500 Internal Server Error

/tickets/validate/{uuid}

POST

Description:
Parameters
Name Located in Description Required Schema
uuid path Yes string
Responses
Code Description
200 OK
404 Not Found
409 Conflict
500 Internal Server Error

/reviews/get/all

GET

Description:
Parameters
Name Located in Description Required Schema
Responses
Code Description
200 OK
404 Not Found

/reviews/get/event/{id}

GET

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
404 Not Found

/reviews/get/user/{id}

GET

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
404 Not Found

/reviews/create

POST

Description:
Parameters
Name Located in Description Required Schema
authorization header No string
body body No object
Responses
Code Description
201 Created
401 Unauthorized
404 Not Found

/reviews/delete/{id}

DELETE

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
404 Not Found

/reviews/my/{id}

GET

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
authorization header No string
Responses
Code Description
200 OK
401 Unauthorized

/reviews/all/{id}

GET

Description:
Parameters
Name Located in Description Required Schema
id path Yes string
Responses
Code Description
200 OK
404 Not Found
Clone this wiki locally