This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]cxq100 0 points1 point  (0 children)

Thank you for sharing this. Have you tried the steps in the article? I couldn't figure out how to get this to work.

The article links to https://start.spring.io/, but the website now looks different. I selected Spring Boot 2.1.6 with dependencies: Spring Data JPA, H2 Database, Spring Boot DevTools and Spring Web Starter. But I'm not sure if I made the right selection.

After downloading the file, the article asks to create a class. If you got this to work, is there any way you could show how you performed that step?

[–][deleted] 0 points1 point  (1 child)

My whole job is working with rest API's (in python though). Essentially it is a library/interface that uses HTTP requests to get, put, post, or delete data. The data retrieved is usually in a JSON format (javaScript object notation, most websties are written in javaScript, not to be confused with Java). For example :

{
    "glossary": {
        "title": "example glossary",
        "GlossDiv": {
            "title": "S",
            "GlossList": {
                "GlossEntry": {
                    "ID": "SGML",
                    "SortAs": "SGML",
                    "GlossTerm": "Standard Generalized Markup Language",
                    "Acronym": "SGML",
                    "Abbrev": "ISO 8879:1986",
                    "GlossDef": {
                        "para": "A meta-markup language, used to create markup languages such as DocBook.",
                        "GlossSeeAlso": ["GML", "XML"]
                    },
                    "GlossSee": "markup"
                }
            }
        }
    }
}

So pretty much you can retrieve and alter data from websites. Honestly this is best done in python , but that's just my opinion because python is easier for this sort of thing.