-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopulateDB
executable file
·20 lines (17 loc) · 2.94 KB
/
populateDB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Add words
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"aberration", "definition":"A deviation from what is considered proper or normal."}' http://localhost:8083/words/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"abondon", "definition":"To leave somebody, especially somebody you are responsible for, with no intention of returning"}' http://localhost:8083/words/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"abondoned", "definition":"left and no longer wanted, used or needed"}' http://localhost:8083/words/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"ability", "definition":"ability to do something the fact that somebody/something is able to do something"}' http://localhost:8083/words/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"bear", "definition":"(used with can/could in negative sentences and questions) to be able to accept and deal with something unpleasant"}' http://localhost:8083/words/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"beard", "definition":"[countable, uncountable] hair that grows on the chin and cheeks of a man’s face; similar hair that grows on some animals"}' http://localhost:8083/words/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"beat", "definition":"[transitive] beat somebody (at something) to defeat somebody in a game or competition"}' http://localhost:8083/words/add
# Add comments
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"aberration", "creator": "Steve", "content":"This is aberrant."}' http://localhost:8083/comments/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"aberration", "creator": "Frank", "content":"No it is not."}' http://localhost:8083/comments/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"word":"abondon", "creator": "Pascal", "content":"I abondon commenting."}' http://localhost:8083/comments/add
# Add users
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"email":"[email protected]", "username":"steve", "password": "123"}' http://localhost:8083/users/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"email":"[email protected]", "username":"frank", "password": "123"}' http://localhost:8083/users/add
curl --insecure -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"email":"[email protected]", "username":"pascal", "password": "123"}' http://localhost:8083/users/add