GithubHelp home page GithubHelp logo

mariazevedo88 / travels-java-api Goto Github PK

View Code? Open in Web Editor NEW
245.0 9.0 122.0 317 KB

An API for travel management. It is built with Java, Spring Boot, and Spring Framework. A toy-project to serve as a theoretical basis for the Medium series of articles I wrote about Java+Spring.

Home Page: https://medium.com/@mari_azevedo/construindo-uma-api-restful-com-java-e-spring-framework-46b74371d107

License: MIT License

Java 100.00%
java java11 java-11 api api-service api-restful rest-api rest medium-article http

travels-java-api's Issues

401:Unauthorized Error

Dear @mariazevedo88,

Thanks for making this API!

I'm interested in using this API for a test. I followed the instructions in README.md to have the API installed. After I started the Spring Boot server and made a post request through the Swagger UI, however, I got a 401 response with an “unauthorized” error. Please see the figure below for details.

20220102182912

I can tell this error has something to do with the authentication, but I don't know how to fix it. Could you help me? Thanks in advance!

Estrutura do README.md

Descrição

@mariazevedo88 , olhando a documentação descrita no repositório, notei que os campos que estão estruturados como código não possuem a definição da linguagem.

Utilizando markdown é possível informar qual a linguagem do código e com isso deixar a documentação melhor visivelmente.

Exemplos

{
  "nsu": "123456",
  "authorizationNumber": "010203",
  "amount": "22.88",
  "transactionDate": "2020-04-05T09:59:51.312Z",
  "type": "CARD",
}
mvn package
CREATE database financial;
if ( StringUtils.isEmpty(coffee)) {
  return "I WANT MORE!!!!!!";
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.