{"info":{"_postman_id":"e84fd45a-e55e-42df-91a2-2d439cca37a3","name":"Degree For Me","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>This api provides information for degrees, colleges, and cities across the United States.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>The given endpoints provide either a list of the degrees, colleges, or cities along with their Id's. These Id's can be used with the endpoints to obtain further information on the given instance.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>There is no required authentication for this API.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>The error codes follow the standard schema for what they mean.</p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>There isn't a rate limit for number of requests.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"7931031","collectionId":"e84fd45a-e55e-42df-91a2-2d439cca37a3","publishedId":"S1a4Z84y","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"C39B00"},"publishDate":"2019-06-27T01:19:57.000Z"},"item":[{"name":"Help","id":"53475266-f77f-42dc-a52d-efd2b7592c3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"api.degreeforme.me","description":"<p>Returns a list of enpoints along with the link to the document page.</p>\n","urlObject":{"host":["api.degreeforme.me"],"query":[],"variable":[]}},"response":[],"_postman_id":"53475266-f77f-42dc-a52d-efd2b7592c3b"},{"name":"College List","event":[{"listen":"test","script":{"id":"9fb9728c-04c2-493d-8913-760d78d30550","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","let jsonData = pm.response.json();","","pm.test(\"Check values in page\", function () {","    pm.expect(jsonData.page).to.eql(1);","    pm.expect(jsonData.objects[0].city).to.eql(\"Birmingham\");","    pm.expect(jsonData.objects[3].name).to.contain(\"Alabama\");","    pm.expect(jsonData.objects[7].top_program).to.contain(\"Business\")","});"],"type":"text/javascript"}}],"id":"e05cf497-7274-42cc-8055-607330e0715b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"api.degreeforme.me/api/colleges?q={\"filters\":[{\"name\":\"id\",\"op\":\"ge\",\"val\":\" \"}]}&page=1","description":"<p>Provides a list of all available colleges. Change the value for page to get a different page number.</p>\n","urlObject":{"path":["api","colleges"],"host":["api.degreeforme.me"],"query":[{"key":"q","value":"{\"filters\":[{\"name\":\"id\",\"op\":\"ge\",\"val\":\" \"}]}"},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"e05cf497-7274-42cc-8055-607330e0715b"},{"name":"College Info","event":[{"listen":"test","script":{"id":"a6645ad0-c52d-4efe-8711-ab18e87bbba5","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","let jsonData = pm.response.json();","","pm.test(\"Check Univ. Alabama Birmingham stats\", function () {","    pm.expect(jsonData.id).to.eq(100663);","    pm.expect(jsonData.in_state).to.lt(jsonData.out_of_state);","    pm.expect(jsonData.city).to.eq(\"Birmingham\");","    pm.expect(jsonData.top_program).to.eq(\"Health\");","    pm.expect(jsonData.hispanic).to.eq(0.0333);","    pm.expect(typeof(jsonData.photo_url)).to.eq(\"string\");","});"],"type":"text/javascript"}}],"id":"340ebe63-d1f6-4dc5-b5ee-75f48291c355","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"","value":"","type":"text"}],"url":"api.degreeforme.me/api/colleges/100663","description":"<p>Provides information for a given college. This includes tuition, acceptance rate, graduation rate, location, demographics, and ranking for degrees.</p>\n","urlObject":{"path":["api","colleges","100663"],"host":["api.degreeforme.me"],"query":[],"variable":[]}},"response":[],"_postman_id":"340ebe63-d1f6-4dc5-b5ee-75f48291c355"},{"name":"City List","event":[{"listen":"test","script":{"id":"da996ccd-9086-46ad-9a28-042bd4a12440","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","let jsonData = pm.response.json();","","pm.test(\"Check city page 1\", function () {","    pm.expect(jsonData.page).to.eq(1);","    pm.expect(jsonData.objects[7].name).to.eq(\"Dallas\");","    pm.expect(jsonData.objects[0].state).to.eq(\"new_york\");","    pm.expect(jsonData.objects[0].median_home_cost).to.eq(693900);","})"],"type":"text/javascript"}}],"id":"13b1e0d0-aefb-4035-a49b-89603ca6fb46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"api.degreeforme.me/api/cities?q={\"filters\":[{\"name\":\"id\",\"op\":\"ge\",\"val\":\" \"}]}&page=1","description":"<p>Provides a list of all available cities. Change the value for page to get a different page number.</p>\n","urlObject":{"path":["api","cities"],"host":["api.degreeforme.me"],"query":[{"key":"q","value":"{\"filters\":[{\"name\":\"id\",\"op\":\"ge\",\"val\":\" \"}]}"},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"13b1e0d0-aefb-4035-a49b-89603ca6fb46"},{"name":"City Info","event":[{"listen":"test","script":{"id":"ce80dff1-d938-466b-aa52-cce7ad7cd7d1","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","let jsonData = pm.response.json();","","pm.test(\"Check New York data\", function () {","    pm.expect(jsonData.id).to.eq(1);","    pm.expect(jsonData.name).to.eq(\"New York\");","    pm.expect(jsonData.college).to.contain(\"Ace\");","    pm.expect(jsonData.health).to.eq(4658);","    pm.expect(jsonData.population).to.gt(8000000);","    pm.expect(typeof(jsonData.photo_url)).to.eq(\"string\");","})"],"type":"text/javascript"}}],"id":"542ecfb6-1ae4-412a-9f57-4cc216496648","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"api.degreeforme.me/api/cities/1","description":"<p>Provides information for a given city. This includes cost of Living, nearby colleges, and the best degrees for the given colleges.</p>\n","urlObject":{"path":["api","cities","1"],"host":["api.degreeforme.me"],"query":[],"variable":[]}},"response":[],"_postman_id":"542ecfb6-1ae4-412a-9f57-4cc216496648"},{"name":"Degree List","event":[{"listen":"test","script":{"id":"313d768a-7d93-4082-bd86-2c615b9010f5","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","let jsonData = pm.response.json();","","pm.test(\"Check degree page\", function () {","   pm.expect(jsonData.page).to.eq(1);","   pm.expect(jsonData.objects[1].degree).to.eq(\"Architecture\");","   pm.expect(jsonData.objects[3].rank).to.eq(40);","});"],"type":"text/javascript"}}],"id":"5d4191e4-64d7-46e8-981c-d8c46fccd2c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"api.degreeforme.me/api/degrees?q={\"filters\":[{\"name\":\"degree\",\"op\":\"ge\",\"val\":\" \"}]}&page=1","description":"<p>Provides a list of all available degrees. Change the value for page to get a different page number.</p>\n","urlObject":{"path":["api","degrees"],"host":["api.degreeforme.me"],"query":[{"key":"q","value":"{\"filters\":[{\"name\":\"degree\",\"op\":\"ge\",\"val\":\" \"}]}"},{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"5d4191e4-64d7-46e8-981c-d8c46fccd2c8"},{"name":"Degree Info","event":[{"listen":"test","script":{"id":"451ecf63-9b1a-46b7-b2c0-89a3843600e2","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","let jsonData = pm.response.json();","","pm.test(\"Check comm stats\", function () {","   pm.expect(jsonData.degree).to.eq(\"Communication\");","   pm.expect(jsonData.meaningful_work).to.eq(44);","   pm.expect(jsonData.pay_mid).to.eq(72300);","   pm.expect(jsonData.rank).to.eq(167);","   pm.expect(jsonData.job2).to.eq(\"Public relations specialist\");","   pm.expect(typeof(jsonData.photo_url)).to.eq(\"string\");","});"],"type":"text/javascript"}}],"id":"5a99af70-1fd3-49d6-b2b1-a7ccecb9b715","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"api.degreeforme.me/api/degrees/communication","description":"<p>Provides information for a given degree. This includes early career pay, mid career pay, percentage of graduates in meaningful work, top schools, and the location of the top schools.</p>\n","urlObject":{"path":["api","degrees","communication"],"host":["api.degreeforme.me"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a99af70-1fd3-49d6-b2b1-a7ccecb9b715"}],"event":[{"listen":"prerequest","script":{"id":"980c1645-eb0e-479b-9b25-a201c8b91622","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"84987e9f-8b6f-4e82-adba-5fbca60833f1","type":"text/javascript","exec":[""]}}],"variable":[{"key":"url","value":"api.degreeforme.me"}]}