createTicket working, solves #3
This commit is contained in:
+10
-8
@@ -3,20 +3,22 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <curl/curl.h>
|
||||
#include <curl/easy.h>
|
||||
#include <iostream>
|
||||
|
||||
#include "ticket.h"
|
||||
|
||||
using namespace std;
|
||||
#include "json_serializer.h"
|
||||
|
||||
class Dao {
|
||||
public:
|
||||
string api_key;
|
||||
string db_url;
|
||||
void populate_env();
|
||||
std::string api_key;
|
||||
std::string base_url;
|
||||
|
||||
ticket_t fetch_ticket_create(string title, string description);
|
||||
vector<ticket_t> fetch_ticket_get_all();
|
||||
vector<ticket_t> fetch_ticket_get_by_status(string status);
|
||||
Dao();
|
||||
ticket_t fetch_ticket_create(std::string title, std::string description);
|
||||
std::vector<ticket_t> fetch_ticket_get_all();
|
||||
std::vector<ticket_t> fetch_ticket_get_by_status(std::string status);
|
||||
ticket_t fetch_ticket_get_by_id(unsigned long id);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user