Apache/CXF: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Versioning==
<source lang="bash">
curl http://api.chorke.org/academia/v1.0.00/api/projects
curl http://api.chorke.org/academia/v1.0.01/api/projects
curl http://api.chorke.org/academia/v1.1.00/api/projects
curl http://api.chorke.org/academia/v1.1.10/api/projects
</source>
<source lang="bash">
curl http://api.chorke.org/academia/v1.1.10/app/projects
curl http://api.chorke.org/academia/v1.1.10/doc/projects
curl http://api.chorke.org/academia/v1.1.10/gui/projects
</source>
==JAX-RS==
<source lang="bash">
# find all
curl --request GET \
--url http://api.chorke.org/academia/v1.0.00/api/projects \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache'
</source>
<source lang="bash">
# find by id
curl --request GET \
--url http://api.chorke.org/academia/v1.0.00/api/projects/1 \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache'
</source>
<source lang="bash">
# create/save
curl --request POST \
--url http://api.chorke.org/academia/v1.0.00/api/projects \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--data '{"name": "Academia"}'
</source>
<source lang="bash">
# update by id
curl --request PUT \
--url http://api.chorke.org/academia/v1.0.00/api/projects/1 \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--data '{"id": "1", "name": "Academia"}'
</source>
<source lang="bash">
# delete by id
curl --request DELETE \
--url http://api.chorke.org/academia/v1.0.00/api/projects/1 \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--data '{"id": "1", "name": "Academia"}'
</source>
==References==
==References==
* [https://code.massoudafrashteh.com/spring-boot-cxf-jaxrs-hibernate-maven-swagger-ui Spring Boot, Apache CXF, Swagger under JAX-RS]
* [https://code.massoudafrashteh.com/spring-boot-cxf-jaxrs-hibernate-maven-swagger-ui Spring Boot, Apache CXF, Swagger under JAX-RS]
* [https://www.opencodez.com/java/soap-web-services-with-apache-cxf-spring-boot.htm Soap Web Services with Apache CXF and Spring]
* [https://www.opencodez.com/java/soap-web-services-with-apache-cxf-spring-boot.htm Soap Web Services with Apache CXF and Spring]
* [https://stackoverflow.com/questions/42054384 Configure oAuth2 with password flow Swagger]
* [https://tassioauad.com/2018/01/03/simple-project-spring-boot-apache-cxf-jax-ws Spring Boot and Apache CXF (JAX-WS)]
* [https://tassioauad.com/2018/01/03/simple-project-spring-boot-apache-cxf-jax-ws Spring Boot and Apache CXF (JAX-WS)]
* [https://github.com/codecentric/cxf-spring-boot-starter Enterprise & production ready SOAP]
* [https://github.com/codecentric/cxf-spring-boot-starter Enterprise & production ready SOAP]
Line 7: Line 72:
* [http://cxf.apache.org/docs/springboot.html Spring Boot CXF JAX-WS Starter]
* [http://cxf.apache.org/docs/springboot.html Spring Boot CXF JAX-WS Starter]
* [https://blog.codecentric.de/2016/02/spring-boot-apache-cxf Spring Boot and Apache CXF]
* [https://blog.codecentric.de/2016/02/spring-boot-apache-cxf Spring Boot and Apache CXF]
* [https://howtodoinjava.com/spring-boot/spring-boot-jersey-example/ Spring Boot Jersey Example]

Latest revision as of 23:18, 23 November 2019

Versioning

curl http://api.chorke.org/academia/v1.0.00/api/projects
curl http://api.chorke.org/academia/v1.0.01/api/projects
curl http://api.chorke.org/academia/v1.1.00/api/projects
curl http://api.chorke.org/academia/v1.1.10/api/projects
curl http://api.chorke.org/academia/v1.1.10/app/projects
curl http://api.chorke.org/academia/v1.1.10/doc/projects
curl http://api.chorke.org/academia/v1.1.10/gui/projects

JAX-RS

# find all
curl --request GET \
--url http://api.chorke.org/academia/v1.0.00/api/projects \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache'
# find by id
curl --request GET \
--url http://api.chorke.org/academia/v1.0.00/api/projects/1 \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache'
# create/save
curl --request POST \
--url http://api.chorke.org/academia/v1.0.00/api/projects \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--data '{"name": "Academia"}'
# update by id
curl --request PUT \
--url http://api.chorke.org/academia/v1.0.00/api/projects/1 \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--data '{"id": "1", "name": "Academia"}'
# delete by id
curl --request DELETE \
--url http://api.chorke.org/academia/v1.0.00/api/projects/1 \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--data '{"id": "1", "name": "Academia"}'


References