server-simulator's Introduction
TEMA3 - PCOM - BIVOLARU ANDRA TEODORA 323CA - README -- parson.c si parson.h Used for the parsing of JSON objects the parson library, got from the link in the homework. Used the JSON value and object to create the object sent to the server and also used a serilizes string to send the json object as a string to the server. -- request.c request.h Used the request files from the 10th laboratory, also adding the DELETE command , which is exactly the GET function, changed the get request to a delete one. -- helpers.c helpers.h buffer.c buffer.h Helpers and buffer files from the 10th laboratory. -- Makefile Compiles the client and all the other files needed for the client, also having a clean command. --client.c Code's source main where the commands are given from stdin and the requests to the server are made. -- registerClient() This function makes the POST request to register the client with a username and a password into the system. At the end, it prints if the command had any errors or not. -- login() This function sends a POST request to the server for a client to login, and at the end prints a message if the command had any errors or not. Also, it extracts the cookie from the server's response. -- enter_library() This function sends a GET command to the server and extracts from the server's response the token to be used for next commands. -- get_books() Sends a get request with the parameters mentioned in the assignment and prints all the books -- get_book() Same as get_books, but gets the id and puts in the requests. -- add_book() applies a put request on the server, parsing the JSON -- delete_book() applies a delete request on the id. -- logout() also a get request.
server-simulator's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.